[Seaside] jQuery/Comet issue

John Toohey jt at parspro.com
Mon Mar 15 21:06:30 UTC 2010


I have a question about the normal Canvas passed to #renderContentOn
etc., and one created via a jQuery #script.

In my normal rendering code, I get output for one of my TDs in a table
that looks like this, and works :-

<button class="button ui-button ui-widget ui-state-default
ui-corner-all ui-button-text-only" type="button"
onclick="$.jGrowl(&quot;12 ddddd is paused&quot;,{header:&quot;Market
Update&quot;});$.ajax({url:&quot;/Juliet-Live&quot;,data:[&quot;_s=q6d68gEmmAAqXEpB&quot;,&quot;_k=ihxTwJ42ZyxphnO2&quot;,&quot;1895&quot;].join(&quot;&amp;&quot;)})"
id="id1894" title="Pause this Market" role="button"><span
class="ui-button-text">P</span></button>

However, If I call the render method from this code (the render method
is each case is the same) :-

self pusher javascript: [ :script |
	script << (script jQuery: '#markettable') append: [:render |  self
renderMarket: aMarket asRowOn: render]
]

I get this :-

<button class="button ui-button ui-widget ui-state-default
ui-corner-all ui-button-text-only" type="button"
onclick="$.jGrowl(&quot;12 ddddd is paused&quot;,{header:&quot;Market
Update&quot;});$.ajax({url:&quot;/,data:[12].join(&quot;&amp;&quot;)})"
id="id1894" title="Pause this Market" role="button"><span
class="ui-button-text">P</span></button>.

The ajax url is /and the data is just a number. I'm using the latest
Seaside 3.0 builds.

-- 
-JT


More information about the seaside mailing list