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
Old 11-09-2004, 10:31 AM Form submit methods
Brufton's Avatar
Super Talker

Posts: 101
Location: Dover, Kent (UK)
Trades: 0
OK, the most obvious is to use a button, to submit a form.

However, I'm using a couple of lists (<select>), but would like them to submit the data without the use of a button. I've got one working, using the code:

<select onChange='submit()'>

which works fine. However, on another list, I'd like to get it so I can type a name in, without it submitting the form, ie type Z, and it scroll to the "Z"'s. So I need to change the "onChange" to something else, but want it to submit the form when I hit the enter key on my keyboard. Is this possible without using a button?
Brufton is offline
Reply With Quote
View Public Profile Visit Brufton's homepage!
 
 
Register now for full access!
Old 11-09-2004, 10:52 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Have a look on Google for the onKeyPress event. You will need to write a function to check which key has been pressed, and if it's Enter, submit the form. Shout if you get stuck.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 11-10-2004, 09:57 AM
Brufton's Avatar
Super Talker

Posts: 101
Location: Dover, Kent (UK)
Trades: 0
Sorted that out. My other question, is can I have it to perform a function when you double click the box, I've tried " onDoubleClick " but this didn't work for me?

Last edited by Brufton; 11-10-2004 at 11:42 AM..
Brufton is offline
Reply With Quote
View Public Profile Visit Brufton's homepage!
 
Old 11-10-2004, 02:39 PM
Extreme Talker

Posts: 160
Trades: 0
It should be 'onDblClick'
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Old 11-11-2004, 10:43 AM
Brufton's Avatar
Super Talker

Posts: 101
Location: Dover, Kent (UK)
Trades: 0
thank you, should of thought of that, but hey, it's working now and that's what counts
__________________
Andrew
Brufton is offline
Reply With Quote
View Public Profile Visit Brufton's homepage!
 
Reply     « Reply to Form submit methods
 

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