[Seaside] Little help for callback: value:
obi068 at gmail.com
Tue Feb 9 12:45:48 UTC 2010
value: (SUStream on: 'alert("test")')
On Tue, Feb 9, 2010 at 12:31 PM, Marco D'Ambros <marco.dambros at usi.ch>wrote:
> Ok, thanks.
> Now, considering the following code snippet:
> (html submitButton)
> onClick: ((html evaluator)
> callback: [:value | self halt.]
> value: 'alert(''test'');');
> text: 'Submit'
> executed and the result of the execution is sent back to the callback block.
> Alert('test') does not appear.
> On Feb 9, 2010, at 12:17 PM, Lukas Renggli wrote:
> >> I am trying to use
> >> SUEvaluator >> callback: value:
> in the value part and pass its result to the callback. However, I am not
> sure whether this is the right way to go..
> >> Could you give me some suggestion on how to implement this?
> > That's definitely the right way. You need to consider that the
> > string, because it will be put into the request URL of the evaluator.
> > Have a look at the senders of #callback:value: there are several
> > in Smalltalk.
> > Lukas
> > --
> > Lukas Renggli
> > http://www.lukas-renggli.ch
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside