[Seaside] Strange script behavior

Robert Sirois watchlala at hotmail.com
Fri Feb 18 05:51:19 UTC 2011


Has anyone had a problem where you load a script like this...
renderMeOn: html
	self renderPlatformOn: html.
	html div		script: ((self renderObjectsOn: html) timeout: 1 second).
renderObjectsOn: html	| js | js := OrderedCollection new.		self class objects do: [:o |				js add: ((html jQuery: o cssSelector) html: o).			].
	^js javascriptItemsConcatenated.

... and the first query never selects an id? Oddly enough, if I add a meaningless item first:
renderObjectsRevisedOn: html	| js | js := OrderedCollection with: (html jQuery: 'blah').		self class objects do: [:o |				js add: ((html jQuery: o cssSelector) html: o).			].	^js javascriptItemsConcatenated.
It works just fine?
RS 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110217/521a8c4a/attachment.htm


More information about the seaside mailing list