[Seaside] jQuery <'onLoad:'> event

Robert Sirois watchlala at hotmail.com
Wed Jun 17 04:03:24 UTC 2009


Based on the jQuery examples on their website, it appears that the .load() function can be used in the document body. For whatever reason, I cannot emulate that function using the jQuery Seaside method <'onLoadL'> in this context:
	self resultList do: [:each | 		html div			id: each question;                        onLoad: (html jQuery this hide);			style: 'width: 200px; height: 200px; background: blue; position: absolute; top: 10px; left: 10px';			with: [				html text: each option1; break.				html text: each option2; break.				html text: each option3; break.				html text: each option4.			].	].
What I am trying to do is iterate through a survey's questions, but use jQuery effects to transition between the questions. As far as I know, you can't reload the component (as in transitioning to the next question) or jQuery essentially becomes useless. What I ended up doing is stacking all the questions as hidden divs on the page and going through them like a deck of cards.
I would appreciate any advice/direction for this application :)
Thanks,RS
_________________________________________________________________
Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090616/4ff246eb/attachment.htm


More information about the seaside mailing list