[Seaside][SeasiedAsync] Capturing events
Lukas Renggli
renggli at gmail.com
Fri Mar 31 09:47:42 UTC 2006
> Meanwhile, I'll have a look to the cursor issue ...
Interesting use of AJAX :-)
This is probably not of any help, but in the latest script.aculo.us
you could write something like (untested, just written now in the mail
application):
html script: (html field id: last; focus).
html script: (SUJavascript on: last , '.select(' , selection , ')').
html textArea
id: 'field-id';
value: text;
callback: [ :value | text := value ];
onFocus: (html request
callback: [ last := 'field-id' ]);
onSelect: (html request
callback: [ :value | selection := value ]
value: (SUJavascript on: 'field-id.selection')).
Of course one should wrap the SUJavascript-instances into propre
objects, but that is for the next version of script.aculo.us ;-)
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Seaside
mailing list