I don&#39;t know. As far as I know, all callback parameters are passed through in a GEt request when using  callback: [:v ] json: javascript stuff.<div><br></div><div>I am trying to figure out how to use html jQuery post, but I am not sure on how to combine it with a callback. The only example i could find of post was in a test class which did nothing more than checking the output of the method. </div>
<div><br></div><div>the JQPost method only takes the arguments complete and dataType but in the JQuery documentation i could also specify a data parameters. Should I use jquery ajax with the post method instead of JQPost?</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div><div><br><div><br><div class="gmail_quote">2010/7/25 Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is there a reason why Seaside doesn&#39;t accept a POST-ed Ajax request?<br>
At least in Pharo it doesn&#39;t matter if you do your Ajax requests with<br>
GET (html jQuery get) or POST (html jQuery post).<br>
<br>
Lukas<br>
<div><div></div><div class="h5"><br>
On 25 July 2010 18:39, Bart Veenstra &lt;<a href="mailto:bart.veenstra@gmail.com">bart.veenstra@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I am using Seaside 3.0 which is included in the VW7.7 image and am trying to<br>
&gt; create a JQPlugin for jstree (<a href="http://www.jstree.com/demo" target="_blank">http://www.jstree.com/demo</a>).<br>
&gt; I got the basic functionality working on the tree, but now I would like to<br>
&gt; have the user create new nodes in the tree using hte context menu.<br>
&gt; JSTree offers this functionality by binding a function to a create node<br>
&gt; event.<br>
&gt; (php example)<br>
&gt; .bind(&quot;create.jstree&quot;, function (e, data) {<br>
&gt; $.post(<br>
&gt; &quot;./server.php&quot;,<br>
&gt; {<br>
&gt; &quot;operation&quot; : &quot;create_node&quot;,<br>
&gt; &quot;id&quot; : data.rslt.parent.attr(&quot;id&quot;).replace(&quot;node_&quot;,&quot;&quot;),<br>
&gt; &quot;position&quot; : data.rslt.position,<br>
&gt; &quot;title&quot; : <a href="http://data.rslt.name" target="_blank">data.rslt.name</a>,<br>
&gt; &quot;type&quot; : data.rslt.obj.attr(&quot;rel&quot;)<br>
&gt; },<br>
&gt; function (r) {<br>
&gt; if(r.status) {<br>
&gt; $(data.rslt.obj).attr(&quot;id&quot;, &quot;node_&quot; + <a href="http://r.id" target="_blank">r.id</a>);<br>
&gt; }<br>
&gt; else {<br>
&gt; $.jstree.rollback(data.rlbk);<br>
&gt; }<br>
&gt; }<br>
&gt; );<br>
&gt; })<br>
&gt; In this javascript example, the parameters are sent to the server using a<br>
&gt; JQuery Post. The second function takes care of the result and does a<br>
&gt; rollback if  the creation failed.<br>
&gt; I want to have the the same functionality in seaside like this:<br>
&gt; ((html jQuery id: treeId) tree)<br>
&gt; plugins: #(&#39;json_data&#39; &#39;themes&#39; &#39;ui&#39; &#39;contextmenu&#39; &#39;dnd&#39;);<br>
&gt; getChildrenBlock: [:node | self getChildren: node];<br>
&gt; theme: &#39;default&#39;;<br>
&gt; types: self treeTypes;<br>
&gt; animation: 0;<br>
&gt; createBlock: [:node :position :title :type | ] onSuccess: [:node :s |<br>
&gt; ] onFail: [:ex :s | ]<br>
&gt; The createBlock first argument holds the seaside translated objects from the<br>
&gt; javascript call, the second should be executed when the first block executes<br>
&gt; correctly and the third should be executed when the command failed. The<br>
&gt; onSuccessBlock should also hold the newly created node and a script to do<br>
&gt; something wiht the newly created node.<br>
&gt; What is the best way to accomplish this using a post call instead of a get<br>
&gt; call? I probably could get this running with a normal GET jquery callback,<br>
&gt; but I am worried about the length of the get request when using proxies who<br>
&gt; cut off long urls (this happens quite a lot unfortunatly)<br>
&gt; I hope anyone could push me in the right direction.<br>
&gt; Regards,<br>
&gt;<br>
&gt; Bart Veenstra<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
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>
</font></blockquote></div><br></div></div></div>