<html>
  <head>
    <meta content="text/html; charset=ISO-8859-15"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Georgia">Well, just trying things a bit, this seems to
      work:<br>
      <br>
      "===================="<br>
          html div<br>
              onClick: (html jQuery ajax <br>
                  callback: [ :val |<br>
                      val inspect.<br>
                      self requestContext respond: [ :response |<br>
                          response <br>
                              contentType: 'text/json' seasideMimeType;<br>
                              nextPutAll: {'what arrived was'. val}
      asJson<br>
                          ]<br>
                      ]<br>
                  value: (JSStream on: 'this.innerHTML')<br>
              );<br>
              with: 't2'.<br>
      "===================="<br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 12/31/13 9:30 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:jtuchel@objektfabrik.de">jtuchel@objektfabrik.de</a> wrote:<br>
    </div>
    <blockquote cite="mid:52C2D4F6.6090909@objektfabrik.de" type="cite">Hi
      again,
      <br>
      <br>
      thinking a bit more about my X-editable plans, I dug a bit deeper
      into JQAjax. Unfortunately, this gives me more questions than
      answers ;-)
      <br>
      <br>
      Say I have an ajax callback using jquery like this:
      <br>
      <br>
      html anchor
      <br>
      id: 'mylink';
      <br>
      onClick: (html jQuery  ajax callback: [self doSomething]);
      <br>
      with: 'Click here'.
      <br>
      <br>
      <br>
      This callback will always respond with an empty HTTP response with
      status code 200, right?
      <br>
      There are other callback methods on JQAjax, like respond:, text:
      and so on.
      <br>
      <br>
      Is there any documentation on these?
      <br>
      <br>
      I am looking for a way to transport some value to a server-side
      callback block and respond with one of these two options:
      <br>
      <br>
      a) HTTP 200 and a JSON document with success information and
      probably an error message
      <br>
      b) HTTP 200 if the callback processed without errors, or a
      different HTTP code and some error text in the response's body if
      there is some error during processing the callback
      <br>
      <br>
      Has anybody done this? Any pointers to more details?
      <br>
      <br>
      Thanks in advance and happy new year to all Seasiders!
      <br>
      <br>
      Joachim
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>