[Seaside] javascript function with seaside callback [Fwd: generating a script containing html]

Gerhard Obermann obi068 at gmail.com
Wed Jul 23 11:30:48 UTC 2008


Hi!
> (html request callback: [ "some callback" ]) asFunctionThanks...
> Is a callback created this way supposed to rerender the current
> page?

NO!


> I tried this:
>
> html anchor onClick: (html javascript add: (html request callback: [self
> addEntry: 'Test'])); with: 'myLink'.
>


You need an id for your html element, and you need a rendering method for
the element content which should be updated!
Then something like this should work!

html anchor onClick: (html updater id: idOfDOMElement;
    callback: [:renderer | self addEntry: 'Test'.
                             self renderElementOn: renderer] )

br
Gerhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080723/81b4a054/attachment.htm


More information about the seaside mailing list