[Seaside-dev] registering a callback
sebastian at flowingconcept.com
sebastian at flowingconcept.com
Thu Oct 8 02:21:57 UTC 2009
Hi there,
if is needed to register a callback in order to make a typical seaside (non ajaxian) callback, would you use a snippet of code like this:
callbackId := html callbacks store: (WAActionCallback on: [self defaultCallbackAction]).
actionUrl := html context actionUrl withoutParameters addParameter: callbackId.
^ JSFunction new
add: ('window.location.href="',actionUrl asString,'"') asJSObject;
yourself
or..
do you see something wrong on using that?
thanks,
sebastian
More information about the seaside-dev
mailing list