Hi Lukas,<div><br></div><div>I loaded the latest version of seaside into my image and the values are not passed correctly to the server! </div><div><br></div><div>Output: 'bind("move_node.jstree", function(e, data) {</div>
<div> data.rslt.o.each(function(i) {</div><div> $.ajax({</div><div> "type": "POST",</div><div> "data": ["event=move_node.jstree", "performcopy=" + encodeURIComponent(<a href="http://data.rslt.cy">data.rslt.cy</a>), "id=" + encodeURIComponent($(this).attr("id")), "metadata=" + encodeURIComponent(JSON.stringify($(this).data("jstree"))), "ref_id=" + encodeURIComponent(data.rslt.np.attr("id")), "ref_metadata=" + encodeURIComponent(JSON.stringify(data.rslt.np.data("jstree"))), "position=" + encodeURIComponent(data.rslt.cp + i), "title=" + encodeURIComponent(<a href="http://data.rslt.name">data.rslt.name</a>), "_s=0XbqEsXeVEcCSt4d", "_k=3IxUCj29hBb9rgbS", "5"].join("&"),</div>
<div> "url": "/questionmanager"</div><div> })</div><div> })'</div><div><br></div><div>The encoding really does the trick!</div><div><br></div><div>Regards,</div>
<div><br></div><div>Bart</div><div><br><br><div class="gmail_quote">2010/8/15 Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 15 August 2010 18:56, Bart Veenstra <<a href="mailto:bart.veenstra@gmail.com">bart.veenstra@gmail.com</a>> wrote:<br>
> I am using the packaged seaside version that comes with VW 7.7. Not updated<br>
> to latest, because I ran into issues getting the latest out of the cincom<br>
> public repository.<br>
> I do have the latest version loaded into pharo and it uses JSJoin for the<br>
> data option in JQAjax so the java variabels will still be treated as a<br>
> String.<br>
<br>
</div>The printing of JSJoin changed, not the representation.<br>
<div class="im"><br>
> Using a dictionary for the dataparams is a way to fix this, but I<br>
> understand your concerns with multiple keys of the same value. I haven't<br>
> figured that one out yet :) maybe using a Dictionary which allows double<br>
> keys?<br>
<br>
</div>This is not the problem. The issue is that methods like serialize<br>
(<a href="http://api.jquery.com/serialize/" target="_blank">http://api.jquery.com/serialize/</a>) return pre-encoded strings that<br>
need to be "concatenated" with the dictionary.<br>
<br>
Lukas<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>