<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 12:45 PM, Bob Arning <span dir="ltr">&lt;<a href="mailto:arning315@comcast.net" target="_blank">arning315@comcast.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">renderContentTableOn: html<br>
      <br>
          html table: [<br>
              html tableBody<br>
                  script: (html jQuery new sortable<br>
                      onStop: (html jQuery ajax<br>
                          callback: [ :values | self halt. items :=
      values.]<br>
                          passengers: (html jQuery this find: &#39;tr&#39;)));<br>
                  with: [<br>
                      items do: [ :each |<br>
                          html tableRow <br>
                                  class: &#39;ui-corner-all&#39;;<br>
                                  passenger: each;    <br>
                              with: [html tableData<br>
                                  with: each <br>
                              ] <br>
                      ]<br>
              ]<br>
          ]<br>
      <br>
      seems to work.<br></font></div></blockquote><div><br></div><div><br></div><div>thanks Bob..that worked like a char. Let me ask.... how does this magic line happens:</div><div><br></div><div><span style="font-family:Georgia">  callback: [ :values | self halt. items := values.]</span><br></div><div><span style="font-family:Georgia"><br></span></div><div><span style="font-family:Georgia">I mean...how does that ajax call know that the callback will have the items as argument? </span></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><font face="Georgia">
      <br>
    </font><div><div class="h5">
    <div>On 11/24/14 10:01 AM, Mariano Martinez
      Peck wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi guys,
        <div><br>
        </div>
        <div>I am trying to use JQueryUI sortable for making the rows of
          a table sortable. I could make it to work at the client side
          but I don&#39;t now how to be able to get the values at the server
          side in order to update my internal OrderedCollection.<br clear="all">
          <div><br>
          </div>
          <div>I found #callbackSortable:  but it seems I am doing
            something wrong... This is what I am doing:</div>
          <div><br>
          </div>
          <div>
            <div><span style="white-space:pre-wrap"> </span>html
              script: ((html jQuery: &#39;tbody&#39;) sortable</div>
            <div><span style="white-space:pre-wrap"> </span>onUpdate:
               (html jQuery ajax<span style="white-space:pre-wrap">
              </span></div>
            <div><span style="white-space:pre-wrap"> </span>  <span style="white-space:pre-wrap"> </span>callbackSortable:
              [ :event |</div>
            <div><span style="white-space:pre-wrap"> </span></div>
            <div><span style="white-space:pre-wrap"> </span>      
                  event inspect. </div>
            <div><span style="white-space:pre-wrap"> </span>]))</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>But the event inspected has nothing.. Everything from
            &quot;passanger&quot; is nil. I guess I may be missing passing
            passengers..but I don&#39;t know what nor where.</div>
          <div><br>
          </div>
          <div>Any idea?</div>
          <div><br>
          </div>
          <div>Thanks, </div>
          <div><br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div>Mariano<br>
            <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </div>

<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>
<br></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>