Hi Marten,<div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Ok, I have found a way to do it - but actually how do I force a refresh of my screen ...<br>

<br>
| ajaxFunction |<br>
        <br>
ajaxFunction := (html jQuery ajax<br>
  dataType: &#39;script&#39;;<br>
  callback: [ :v | ... action in smalltalk ... ]<br>
  value: (Array with: (JSStream on: &#39;arguments[0]&#39;));<br>
  async: false) asFunctionNamed: &#39;swipeLeft&#39; arguments: #(e).<br>
                                                                                                                <br>
html<br>
  script: ajaxFunction.<br>
<br>
html image<br>
  width: &#39;100%&#39; ;<br>
  onSwipeLeft: &#39;swipeLeft(&quot;swipeLeft&quot;)&#39;;<br>
  url: link].<br>
<br>
I get Smalltalk called - but the screen content is NOT refreshed !<br>
<br>
Marten<br>
<br>
Am 27.10.2011 07:49, schrieb Marten Feldtmann:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Is something possible like:<br>
<br>
<br>
html heading<br>
level4;<br>
onSwipeLeft: [ .... ]<br></div></div></blockquote></blockquote><div><br></div><div><br></div><div>I released another version last night (Pharo and VASt), which fixes some bugs we found associated with event handling, so it would be worthwhile downloading that version.</div>
<div><br></div><div>Have you seen the event handling samples: </div><div><a href="http://jquerymobile.seasidehosting.st/seaside/javascript/jquery-mobile/Events">http://jquerymobile.seasidehosting.st/seaside/javascript/jquery-mobile/Events</a> </div>
<div><br></div><div>(click on: Element scoped events-&gt;Touch events)</div><div><br></div><div>I&#39;ve also added some examples of using Ajax to update:</div><div><a href="http://jquerymobile.seasidehosting.st/seaside/javascript/jquery-mobile/Ajax-forms">http://jquerymobile.seasidehosting.st/seaside/javascript/jquery-mobile/Ajax-forms</a></div>
<div>The example titled &quot;check box version 2&quot; most closely resembles your use-case.</div><div><br></div><div>In your specific example you could try something like:</div><div><br></div><div>html heading</div><div>
   level4;</div><div>   onSwipeLeft: </div><div>      (html jQuery ajax </div><div>            callback: [ :val | &quot;val will contain &#39;swipeLeft&#39; ] </div><div>            value: &#39;swipeLeft&#39;; </div><div>
            script: [ :s | s &lt;&lt; (s jQuery id: idOfElementToUpdate) text: &#39;updated text&#39; ]).</div><div><br></div><div>IIUC you missed off a call to #script: which all actually perform the update.</div><div><br>
</div><div>Hope this helps</div><div><br></div><div>Nick</div><div><br></div><div><br></div></div></div>