Re: Rollovers
Re: Rollovers
- Subject: Re: Rollovers
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 27 Jan 2004 11:31:42 -0600
I think there is actually an Apple-provided component in WOExtensions
that does this. They provide you the source too, so if it doesn't do
exactly what you need, you can change it so it does.
Incidentally, note that the WOActiveImage is kind of wacky as a
component---it will generate as a graphical form submit button if it
is in a form, and it will generate as an image wrapped in a hyperlink
if it is not in a form. I don't know if the Apple-provided rollover
component does this---it wouldn't be too hard to write yourself if
you wanted this behavior (see context().isInForm() ), but I don't
like it myself, and unless I really want this ambivelent behavior, I
manually use a WOImage wrapped in a WOHyperlink, or a WOImageButton
for a graphical submit (WOImageButton is not on the pallete, you need
to enter it manually, and I always forget what it's called, doh).
Anyway, the Apple-provided component that does what you want is
JSImageFlyover. It's in the WOExtensions framework. And somewhere on
your disk, you are given the source to everything in WOExtensions,
when you installed WO, although I forget where it's put exactly.
Hope this helps,
--Jonathan
At 1:45 PM +0100 1/27/04, David Griffith wrote:
Hi all,
I have two questions:
First, have anyone managed to use the WOActiveImage to implement a rollover?
I want to do the following:
Have the src9 attribute supplied by a java method
Have the href9 or action9 specified by a java method
When a MOUSEOVER is detected, provide a src9 for the image to be displayed
by a call to a java method
JSFlyOverImage does not seem to do what I need, nor is there any explanation
of how to use it.
The other thing is, how can I refer to a WOBuilder object by name in my java
code:
For example, I have a WOTextString on my WOBuilder page, it is called
textString1.
In my code, I want to be able to identify that the name of the object for
which text is currently being located (via a call to a java method) is
textString19.
I thought I saw a post that mentioned how to do this, but I can9t find it.
Any help would be greatly appreciated :-)
Kind regards,
David Griffith.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Rollovers (From: David Griffith <email@hidden>) |