Reply
Custom 'SUBMIT' Button
Old 06-08-2007, 05:14 PM Custom 'SUBMIT' Button
highanddry's Avatar
Close Talker

Posts: 878
Name: Jacob
I figured it out. I need to stop posting then retracting. How Do you delete a post!?

Last edited by highanddry : 06-08-2007 at 05:37 PM.
highanddry is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 06-08-2007, 05:37 PM Re: Custom 'SUBMIT' Button
tripy's Avatar
Fetchez la vache!

Posts: 1,958
Name: Thierry
Location: In the void
HTML Code:
<a href="javascript:document.getElementById('formId').submit();"><img src="submitBtn.jpg" alt="Submit" /></a>
And voila.....

Or use an input type="image" (http://webdesign.about.com/od/htmlta..._inputimg.htm), and add the onclick="javascript:document.getElementById('formI d').submit();" event.
Note that you must add an id="somethingUnique" to your form definition, or the getElementById won't work.

HTML Code:
<form name="frm1" id="myForm">
  <input type="text" />
</form>
<a href="javascript:document.getElementById('myForm').submit();"><img src="submitBtn.jpg" alt="Submit" /></a>
This method allow you to even do the submit from outside the form.
Maybe useful...
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 06-08-2007 at 05:44 PM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 06-08-2007, 06:51 PM Re: Custom 'SUBMIT' Button
highanddry's Avatar
Close Talker

Posts: 878
Name: Jacob
Thanks for the time you put into your response. I really appreciate it and I'll shoot you over some talkupation (like you need it). I actually got the answer before I checked over my post
Is the Java even necessary ? Check out this method

<form method="get" action="/search/search.php">

<input type="text" name="zoom_query" size="11"/>

<input type=image src=images/search.png style="vertical-align:top;" />

</form>

It works
highanddry is offline
Reply With Quote
View Public Profile
 
Old 06-09-2007, 10:24 AM Re: Custom 'SUBMIT' Button
Novice Talker

Posts: 9
Name: Michael
you can use the <input type="image" src="pathtosomeimage"> by default you ge the submit functionality for free. I wouldn't recomend that you put it on an anchor tag. You could also use a regular submit and just style it with CSS.
double is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Custom 'SUBMIT' Button
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12998 seconds with 13 queries