Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 880
Name: Jacob
Trades: 0
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
 
 
Register now for full access!
Old 06-08-2007, 05:37 PM Re: Custom 'SUBMIT' Button
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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...
__________________
Only a biker knows why a dog sticks his head out the window.

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

Posts: 880
Name: Jacob
Trades: 0
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
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.13294 seconds with 12 queries