update a component via onMouseOver:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

update a component via onMouseOver:

Marco Leberfing-2
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?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?

Any ideas?
Cheers
Marco

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: update a component via onMouseOver:

Sebastian Sastre-2
I would not recommend to use onMouseOver: nor any event from tag's attribute
(read: http://www.prototypejs.org/api/event/observe).

>From Seaside you access that with anElement>>on: anEventString do:
aHandlerObject
With prototype you can even use your own custom events like this: anElement
fire: 'mouse:enter'

Sebastian

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Marco Leberfing
> Enviado el: Miércoles, 20 de Agosto de 2008 05:29
> Para: [hidden email]
> Asunto: [Seaside] update a component via onMouseOver:
>
> 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?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?
>
> Any ideas?
> Cheers
> Marco
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: update a component via onMouseOver:

cedreek
In reply to this post by Marco Leberfing-2
Hi,

2008/8/20 Marco Leberfing <[hidden email]>:

> 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.

hth,

Cédrick



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

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside