<div dir="ltr">Thanks Bob for your explanation, very clear.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 4:57 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">It&#39;s not just that line, it&#39;s
      #callback:passengers: which is a variant of #</font><font face="Georgia"><span style="color:rgb(68,68,68);font-family:ff-meta-web-pro-n4,ff-meta-web-pro,arial,sans-serif;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:24px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><font face="Georgia">callback:value:. Which means seaside
          supplies some code (</font></span></font><font face="Georgia"><span style="color:rgb(68,68,68);font-family:ff-meta-web-pro-n4,ff-meta-web-pro,arial,sans-serif;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:24px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><font face="Georgia"><font face="Georgia">html jQuery this find:
            &#39;tr&#39;) to the client and the client returns the value of this
            to the server. And seaside know to pass this returned value
            to the block. See:<br>
            <br>
            callback: aBlock value: anObject<br>
                &quot;Register aBlock as a secondary callback. anObject is a
            reference to a Javascript object on the client-side. The
            object will be sent back to the server as a string and
            passed into aBlock. Multiple secondary callbacks can be
            defined with one receiver.<br>
            <br>
            Note: anObject should be a single literal Javascript object
            (String, Number, Boolean). The object is transfered from
            client to server as the print-string of the object and
            passed into the callback block as a Smalltalk String.&quot;<br>
            <br>
            <br>
          </font></font></span></font><div><div class="h5">
    <div>On 11/24/14 3:02 PM, Mariano Martinez
      Peck wrote:<br>
    </div>
    <blockquote type="cite">
      <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>
                    <div>On 11/24/14 10:01 AM, Mariano Martinez Peck
                      wrote:<br>
                    </div>
                  </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div>
                      <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" target="_blank">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>Mariano<br>
            <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <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></div></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>