[Seaside] new release of Seaside integration for JQueryMobile
nick.ager at gmail.com
Thu Oct 27 07:07:09 UTC 2011
Ok, I have found a way to do it - but actually how do I force a refresh of
> my screen ...
> | ajaxFunction |
> ajaxFunction := (html jQuery ajax
> dataType: 'script';
> callback: [ :v | ... action in smalltalk ... ]
> value: (Array with: (JSStream on: 'arguments'));
> async: false) asFunctionNamed: 'swipeLeft' arguments: #(e).
> script: ajaxFunction.
> html image
> width: '100%' ;
> onSwipeLeft: 'swipeLeft("swipeLeft")';
> url: link].
> I get Smalltalk called - but the screen content is NOT refreshed !
> Am 27.10.2011 07:49, schrieb Marten Feldtmann:
>> Is something possible like:
>> html heading
>> onSwipeLeft: [ .... ]
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.
Have you seen the event handling samples:
(click on: Element scoped events->Touch events)
I've also added some examples of using Ajax to update:
The example titled "check box version 2" most closely resembles your
In your specific example you could try something like:
(html jQuery ajax
callback: [ :val | "val will contain 'swipeLeft' ]
script: [ :s | s << (s jQuery id: idOfElementToUpdate) text:
'updated text' ]).
IIUC you missed off a call to #script: which all actually perform the
Hope this helps
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside