logo       

Re: Deleting InPlaceEditor: msg#00104

lang.ruby.rails.spinoffs

Subject: Re: Deleting InPlaceEditor

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>
Google Custom Search

News | FAQ | advertise