[Seaside] update a component via onMouseOver:

cdrick cdrick65 at gmail.com
Wed Aug 20 12:52:09 UTC 2008


2008/8/20 Marco Leberfing <seaside at exoos.de>:
> Hello all,
> i would like to update aComponent via onMouseOver:
> I?ve tried several things (triggerFormElement: and so on), but nothing
> works.
> Updating something in the same Component is no problem, but updating another
> Component doesn?t work.
> For example, i?ve tried:
> onMouseOver: (html
> updater id: 'previewId';
> triggerFormElement: 'attributePreview')

I think you have to use the rendering callback here... osmething like:

onMouseOver: (html
       updater id: 'previewId';    "the div id that will be redraw
with the rendering callback associated here "
       triggerFormElement: 'attributePreview');   "trigger the action
associated to the form element 'attributePreview' callback
       callback: [:renderer | "some optional actions" . self
renderUpdateAttributePreviewOn: renderer])

> I?ve got a Component with a form called "attributePreview". The
> renderContentOn: will be called, but nothing happens, no update.
> Are there any examples available on this topic?

Just search for senders of #updater and see examples. If you have a
squeak-web image, there should be plenty.



> Any ideas?
> Cheers
> Marco
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list