• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need advice on using image buttons for form submission
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need advice on using image buttons for form submission


  • Subject: Re: Need advice on using image buttons for form submission
  • From: Steve Quirk <email@hidden>
  • Date: Tue, 27 Feb 2007 14:06:04 -0500 (EST)




On Tue, 27 Feb 2007, 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. All my rollover scripts work based on the name and it would be a pain to try and change them.

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?

Why not use a form "input"? If your component doesn't require different actions for the same form, you can (and, imo, should always) bind the action to the WOForm. All the javascript & rollover stuff will work fine that way.


     <input type="image" name="whatever" src="/myapp/image.gif" ... />

- sq


Thanks, Kevin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Need advice on using image buttons for form submission (From: Kevin Windham <email@hidden>)

  • Prev by Date: Need advice on using image buttons for form submission
  • Next by Date: Re: Large deployment advice
  • Previous by thread: Need advice on using image buttons for form submission
  • Next by thread: Re: Need advice on using image buttons for form submission
  • Index(es):
    • Date
    • Thread