| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
who the fuck am i?
|
form checking with javascript
want to apply some javascript checking to a form. I have the script but dont know how to apply it. I'm pretty sure that someone told me it shouldnt be done on submit but cant remember the solution. Can anyone help? In plain english if possible - I'm not a coder |
|
|
|
|
|
#2 (permalink) |
|
dt immigrant
|
I use this. HTML Code:
|
|
|
|
#7 (permalink) | |
|
who the fuck am i?
|
Quote:
But thanks for your help so far... why arent you a DT forum leader? |
|
|
|
|
#12 (permalink) |
|
dt immigrant
|
I think you can use onSelect. But then I think it would be difficult, if someone is trying to use the keyboard to select something... <select name="whateverName" onselect="javascript:document.formName.submit()"> <option value="0">select</option> <option value="1">one</option> </select> |
|
|
|
#13 (permalink) | |
|
who the fuck am i?
|
Quote:
|
|
|
|
|
#15 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,945
|
dreamweaver has a javascript form checker, you can download a free alternative for dreamweaver which is a lot better from: http://www.yaromat.com/dw/?ex=Check%20Form%20MX You'll need the macromedia extension manager installed which you can get from: http://www.macromedia.com/exchange/em_download/ It's as simple as adding a behaviour to the form and then clicking a few check boxes and changing a few options and it'll do it all for you and whack in the necessary code |
|
|
|
#16 (permalink) | |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,945
|
Quote:
once again, dreamweaver has an inbuilt function for this.. when creating a form you can click the jump menu form element, and hey presto, there it is |
|
|
|
|
#17 (permalink) | |
|
dt immigrant
|
Quote:
|
|
|
![]() |