<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">It's not just that line, it'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;
        orphans: auto; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: auto;
        word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: auto;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: auto; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; display: inline !important;
        float: none; background-color: rgb(255, 255, 255);"><font
          face="Georgia"><font face="Georgia">html jQuery this find:
            'tr') 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>
            &nbsp;&nbsp;&nbsp; "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."<br>
            <br>
            <br>
          </font></font></span></font>
    <div class="moz-cite-prefix">On 11/24/14 3:02 PM, Mariano Martinez
      Peck wrote:<br>
    </div>
    <blockquote
cite="mid:CAA+-=mXR9a50zqJqEgHFFuY5fvTSZ69g80+q7x9JK1FeyoU1Mg@mail.gmail.com"
      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 moz-do-not-send="true"
                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>
                  &nbsp;&nbsp;&nbsp; html table: [<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html tableBody<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: (html jQuery new sortable<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onStop: (html jQuery ajax<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [ :values | self halt.
                  items := values.]<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; passengers: (html jQuery this
                  find: 'tr')));<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; items do: [ :each |<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html tableRow <br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; class: 'ui-corner-all';<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; passenger: each;&nbsp;&nbsp;&nbsp; <br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [html tableData<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: each <br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ] <br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]<br>
                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]<br>
                  &nbsp;&nbsp;&nbsp; ]<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">&nbsp; 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?&nbsp;</span></div>
            <div><br>
            </div>
            <div>&nbsp;</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'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: &nbsp;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: 'tbody') sortable</div>
                            <div><span style="white-space:pre-wrap"> </span>onUpdate:

                              &nbsp;(html jQuery ajax<span
                                style="white-space:pre-wrap"> </span></div>
                            <div><span style="white-space:pre-wrap"> </span>
                              &nbsp;<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>
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event inspect.&nbsp;</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 "passanger" is nil. I guess
                            I may be missing passing passengers..but I
                            don't know what nor where.</div>
                          <div><br>
                          </div>
                          <div>Any idea?</div>
                          <div><br>
                          </div>
                          <div>Thanks,&nbsp;</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          -- <br>
                          <div>Mariano<br>
                            <a moz-do-not-send="true"
                              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 moz-do-not-send="true" href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
              <a moz-do-not-send="true"
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 moz-do-not-send="true"
              href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>