[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("12 ddddd is paused",{header:"Market
Update"});$.ajax({url:"/Juliet-Live",data:["_s=q6d68gEmmAAqXEpB","_k=ihxTwJ42ZyxphnO2","1895"].join("&")})"
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("12 ddddd is paused",{header:"Market
Update"});$.ajax({url:"/,data:[12].join("&")})"
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