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: 'script';<br>
callback: [ :v | ... action in smalltalk ... ]<br>
value: (Array with: (JSStream on: 'arguments[0]'));<br>
async: false) asFunctionNamed: 'swipeLeft' arguments: #(e).<br>
<br>
html<br>
script: ajaxFunction.<br>
<br>
html image<br>
width: '100%' ;<br>
onSwipeLeft: 'swipeLeft("swipeLeft")';<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->Touch events)</div><div><br></div><div>I'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 "check box version 2" 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 | "val will contain 'swipeLeft' ] </div><div> value: 'swipeLeft'; </div><div>
script: [ :s | s << (s jQuery id: idOfElementToUpdate) text: 'updated text' ]).</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>