|
Re: Deleting InPlaceEditor: msg#00104lang.ruby.rails.spinoffs
The method is called "dispose": var ipe = {}; ipe["menuItem1"] = new Ajax.InPlaceEditor( 'name, 'link', {} ); ipe["menuItem1"].dispose(); On 11/21/05, Jono Young <cowlauncher9-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> wrote: > Howdy, > > I have created several InPlaceEditor's for each of my menu items. This way i > can easily rename them, however when i rename a menu item, it renames > several id's in the document. > I then need to adjust an InPlaceEditor to point to the new id. It seems an > inplaceeditor cannot be changed, so i have been tryiny to delete it, then > create a new one. > > How do i delete an InPlaceEditor? I thought it would be something simple > like: > > var ipe["menuItem1"] = new Ajax.InPlaceEditor( 'name, 'link', {} ); > delete ipe["menuItem1"]; > > or ipe["menuItem1"] = null; > > but no luck... I end up with two inplaceeditors showing up when i've only > clicked once. > > Thanks. > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: rounded corners in rails apps ?: 00104, Tench |
|---|---|
| Next by Date: | Ajax.InPlaceEditor questions / suggestions: 00104, John Lam |
| Previous by Thread: | Deleting InPlaceEditori: 00104, Jono Young |
| Next by Thread: | rounded corners in rails apps ?: 00104, Roberto Saccon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |