[Seaside] jQuery widget >> destroy

Robert Sirois watchlala at hotmail.com
Tue Oct 27 16:22:35 UTC 2009


Cool that works, but it didn't fix my problem... was hoping it might.

When I close the dialog and open it back up then the jQuery doesn't change elements on the dialog anymore, however the callbacks are still working, because if I close it and open it again the correct value is there (it just doesn't re-render when I do a jQuery: #blah html: [:r | r render: 'blah'].

RS

> From: renggli at gmail.com
> Date: Mon, 26 Oct 2009 16:47:02 +0100
> Subject: Re: [Seaside] jQuery widget >> destroy
> To: seaside at lists.squeakfoundation.org
> 
> Aha, sorry I didn't see the error in your code. You need to write:
> 
>     html jQuery new dialog onClose: html jQuery this dialog destroy
> 
> Cheers,
> Lukas
> 
> 2009/10/26 Robert Sirois <watchlala at hotmail.com>:
> > I keep getting aJQueryInstance does not understand #destroy or something
> > like that. The method is on jQueryWidget I think.
> >
> > RS
> >
> >> From: renggli at gmail.com
> >> Date: Mon, 26 Oct 2009 08:29:07 +0100
> >> Subject: Re: [Seaside] jQuery widget >> destroy
> >> To: seaside at lists.squeakfoundation.org
> >>
> >> If you want to reset the DOM to its state before the dialog, then yes.
> >> See the documentation at:
> >> <http://jqueryui.com/demos/dialog/#method-destroy>.
> >>
> >> Cheers,
> >> Lukas
> >>
> >> 2009/10/25 Robert Sirois <watchlala at hotmail.com>:
> >> > A dialog is a widget so I should be able to call 'destroy' on it, right?
> >> >
> >> > script: (html jQuery new dialog onClose: html jQuery this destroy);
> >> >
> >> > or something like that.
> >> >
> >> > RS
> >> >
> >> > ________________________________
> >> > New Windows 7: Find the right PC for you. Learn more.
> >> > _______________________________________________
> >> > seaside mailing list
> >> > seaside at lists.squeakfoundation.org
> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Lukas Renggli
> >> http://www.lukas-renggli.ch
> >> _______________________________________________
> >> seaside mailing list
> >> seaside at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> > ________________________________
> > Windows 7: I wanted more reliable, now it's more reliable. Wow!
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> 
> 
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
 		 	   		  
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=wl&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:102009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091027/f768be89/attachment.htm


More information about the seaside mailing list