Click to See Complete Forum and Search --> : Does my button submit form?


Masha Stekker
05-27-2004, 09:41 AM
If I have used a "custom" submit button, I would put this:

<input type = "image" src = "button.gif">

but now, does this button submit the form? If it does not, how do I get it to?

Vladdy
05-27-2004, 09:44 AM
www.vladdy.net/demos/submitimage.html

Masha Stekker
05-27-2004, 11:04 AM
OK, so basically you used a style to change the look of the button. and it finds the correct style to use because you said "id = mySubmit" which is the style you created in your style sheet.

Hmmm.

Thanks!

PeOfEo
05-27-2004, 11:42 AM
Originally posted by Masha Stekker
OK, so basically you used a style to change the look of the button. and it finds the correct style to use because you said "id = mySubmit" which is the style you created in your style sheet.

Hmmm.

Thanks! yes. You can fully style buttons with css, like vladdy did. Rather then images, I generally give my buttons borders and colors to make them look nice. The problem with vladdy's example, is the mouseover will not work for ie. You could always use a javascript onmouseover event handler to swap out the image though.
edit: never mind, it does work in ie, vladdy, you a sneaky, you used an htc to make this work for ie :p. What I was talking about before was that ie will not support hover on anything but a link

Vladdy
05-27-2004, 11:47 AM
Originally posted by PeOfEo
yes. You can fully style buttons with css, like vladdy did. Rather then images, I generally give my buttons borders and colors to make them look nice. The problem with vladdy's example, is the mouseover will not work for ie. You could always use a javascript onmouseover event handler to swap out the image though.
It sure does (in ~90% of cases) :p

PeOfEo
05-27-2004, 11:48 AM
I edited my post!!1 You cheated with that htc lol... but its about the same thing as what I said, use a javascript.

Vladdy
05-27-2004, 11:56 AM
Nope.
htc is JScript not javascript.
When you use htc it is only being used by the subpar HTML renderer and you do not have to pollute your code with event handling hooks.

PeOfEo
05-27-2004, 12:27 PM
jscript... aka ie's special javascript :p. Its still cheating if you ask me :mad: