[Seaside] jQuery/Comet issue
Lukas Renggli
renggli at gmail.com
Fri Mar 19 17:18:40 UTC 2010
Please note that with Comet you cannot render links with callbacks and
send them to other sessions, that would be a major security issue.
Instead just notify the other clients about the update so that they
can take necessary actiob themselve.
Lukas
On Monday, March 15, 2010, John Toohey <jt at parspro.com> wrote:
> 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
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list