<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 24, 2017 at 6:44 PM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm still having a problem with this and would be interested in learning if<br>
others are able to use JQAjax>>#script: on GemStone.<br>
<br>
<br>
For me it does the request, the server is updated, but the response is the<br>
entire page and not just the contents of the script block.<br>
<br>
<br>
Is there a way to work around this?<br>
<br>
I could come up with an example pretty easily if ir would be helpful.<br>
<br></blockquote><div><br></div><div>Hi Paul,</div><div><br></div><div>My app has become 90% AJAX requests and in 99% of them I use #script: </div><div>I can tell you that both on Pharo 5.0 and GemStone 3.3.3 (Seaside from 'github://GsDevKit/Seaside31:3.1.?/repository' ) it works correct (the response is the script response and not whole page).</div><div><br></div><div>If you give me an reproducible example I can try in my stone. </div><div><br></div><div>Cheers,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks.<br>
<br>
<br>
<br>
Paul DeBruicker wrote<br>
<span class="gmail-">> In Pharo I can use a #script: send like this<br>
><br>
>  html jQuery ajax<br>
>         callback: [ :json | self setMapBoundsFrom: json ]<br>
>           json: (JSStream on: 'map.getBounds()');<br>
>         script: [ :s | s << ((s jQuery id: #'results') html: [ :r | self<br>
> renderResultsOn: r ]) ]<br>
><br>
><br>
> And the #results id has its content set to the value of the<br>
> #renderResultsOn: method.<br>
><br>
><br>
> In GemStone it seems like a page refresh is happening instead.<br>
><br>
><br>
> Has anyone else seen this?  I think it was happening in older versions too<br>
> but I am not sure of what version combination.<br>
> ______________________________<wbr>_________________<br>
> seaside mailing list<br>
<br>
</span>> seaside@.squeakfoundation<br>
<br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/JQAjax-script-in-GemStone-3-3-1-with-Seaside-3-2-1-works-differently-than-in-pharo-tp4925035p4939880.html" rel="noreferrer" target="_blank">http://forum.world.st/JQAjax-<wbr>script-in-GemStone-3-3-1-with-<wbr>Seaside-3-2-1-works-<wbr>differently-than-in-pharo-<wbr>tp4925035p4939880.html</a><br>
Sent from the Seaside General mailing list archive at Nabble.com.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>