[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(&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
> _______________________________________________
> 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