[Seaside] Re: I reported an error in error list - it was incorrectly classified as 'ignored'

Fritz Schenk intrader.intrader at gmail.com
Sat Feb 12 19:36:32 UTC 2011


Lukas, Bob and Avi

I have simplified the test
<code>
renderContentOn: html
	| x |
	x := 100.
	(html div)
		id: 'external_links';
		with: [ 
					(html anchor)
						callback: [ x inspect ];
						with: x ].
	(html div)
		id: 'external_links';
		with: 'just some content'.
	(html button)
		onClick:
		((html jQuery expression: '#external_links a') onClick: 'return 
confirm("You are going to visit: "+ this.href)');
		with: 'Attach Click'
</code>

Lukas, the duplicated ids are intentional to test the selection <a> from all the 
'#external_links'. 
Multiple selections of id work just fine in jQuery as well as for JavaScript 
getElementsByTagName. You just get an array - jQuery handles this filter 
beautifully.
Using the console of your browser you can see that $('#external_links') returns 
an array with two elements.

The example code works as expected;
I thank you for your trouble and help.








More information about the seaside mailing list