[Seaside] jQuery html replace

Julian Fitzell jfitzell at gmail.com
Mon Jul 20 15:12:05 UTC 2009

I may be misunderstanding your problem but shouldn't that be:

(html jQuery: '#display') html: [:r | self renderResultsOn: r]


It looks pretty weird to me that you are trying to render the return
value of a rendering method...


On Sun, Jul 19, 2009 at 7:57 PM, Robert Sirois<watchlala at hotmail.com> wrote:
> I wish there was an easy way to show this, but I'll try to describe it
> well...
> I'm using this statement...
> (html jQuery: '#display') html: [:r | r render: (self renderResultsOn:
> html)].
> ... in order to render the results of a survey. On the page I have a simple
> select menu and a button that let's you pick between the available surveys.
> What is happening is the page is being loaded fine, I can select the survey
> fine, hit the button, the results display fine, but then the original div
> with the dropdown and button is also added to the bottom of the #display div
> (see above). The display div is simply:
> html div
>     id: 'display'.
> I've tried taking the div out of the #with: statement where the select box
> and button are also in, but that does not seem to help. There are a couple
> other places I have been using the jQuery replace code, and it appears to be
> working correctly in those instances.
> Thanks,
> RS
> ________________________________
> Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list