redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

how to make the submit button a custom image


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
I have a little icon that a user can click on to do something right now. I want to change it from a link to a form, but keep the look. Is there a way to make the submit button a custom image? Or do I need to use JS to submit the form?

Reply with quote
 
froomzer
Enthusiastic Coder


Joined: 23 May 2006
Posts: 148
<input type="image"> might be an option...
Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
froomzeryou 're very helpful in this channel
Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
froomzer, if I do that, I still need an onclick="this.form.submit();" right?
Reply with quote
 
plantino
Enthusiastic Coder


Joined: 13 May 2006
Posts: 96
Gladis, Wrong.
Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
froomzer, have you heard "CodeMonkey" by Jonathon Coulton?
Reply with quote
 
froomzer
Enthusiastic Coder


Joined: 23 May 2006
Posts: 148
No Gladis, you don't at all
Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
froomzer, you should get it from jonathancoulton.com when you are done with your boring meeting.
plantino, froomzer, So type="image" will submit by default? Or is there something OTHER than the JS that I need to do?

Reply with quote
 
plantino
Enthusiastic Coder


Joined: 13 May 2006
Posts: 96
Yes. No.
Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
Cool
Ok, I see that it passes a couple extra values, but does exactly what I wanted. Thanks
(it passes your_input_name_x and your_input_name_y)

Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group