On Feb 27, 2007, at 10:37 AM, Kevin Windham wrote:

I am trying to figure out how to use an image for a submit button and also use javascript to change the button's image for rollover and click effects. The difficulty seems to be that when using a WOImageButton the name attribute is determined by WO when it renders the page to the browser.

You are making it too difficult again. :-) Just add a name = "MyName" binding to it. The only time this will get you in trouble is if the form input is in a WORepetition. Give it a name binding like that and every line in the loop will have the same name. Much confusion results for all parties.


All my rollover scripts work based on the name and it would be a pain to try and change them.

An alternative is to change them to work on an id.

Chuck



What are you guys using to submit a form with rollover buttons. It looks like one could bind an action to a form and use javascript to .submit the form, but I don't see how that would work with more than one button.

Anyone come up with a good solution?

Thanks,
Kevin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to