Author |
Message |
Freydis_The_Valkyrie
|
Post subject: Anybody here know anything about JavaScript? Posted: Sun Jan 27, 2008 3:16 pm |
|
Joined: Wed Jun 06, 2007 12:00 am Posts: 263 Location: Hufflepuff Common.
|
|
|
|
|
Anakin
|
Post subject: Posted: Sun Jan 27, 2008 10:20 pm |
|
Joined: Thu Jun 07, 2007 12:00 am Posts: 6 Location: Somewhere in CA...
|
Actually, I use JavaScript quite regularly at work. =o) What seems to be the problem?
_________________ Nathan Cotonay - Gryffindor - Sixth Year
|
|
|
|
|
Freydis_The_Valkyrie
|
Post subject: Posted: Mon Jan 28, 2008 4:27 pm |
|
Joined: Wed Jun 06, 2007 12:00 am Posts: 263 Location: Hufflepuff Common.
|
Form validation script refuses to work.
And it won't let me post a quote of my script, so I can't get an opinion on the script itself. >.<
_________________ Expect the worst and you will never be disappointed.
|
|
|
|
|
Felien
|
Post subject: Posted: Mon Jan 28, 2008 4:32 pm |
|
Joined: Tue Jun 19, 2007 12:00 am Posts: 273 Location: Nik's closet.
|
I can help... get on YIM or something?
|
|
|
|
|
Freydis_The_Valkyrie
|
Post subject: Posted: Mon Jan 28, 2008 4:33 pm |
|
Joined: Wed Jun 06, 2007 12:00 am Posts: 263 Location: Hufflepuff Common.
|
LET's try this again...
Quote: function submitForm() { if (document.forms[0].name.value =="") { window.alert("You must enter your name, before the form can be submitted."); return false;
else if (document.forms[0].address.value == "") { window.alert("You must enter your address, before the form can be submitted."); validflag=false;
else if (document.forms[0].city.value == "") { window.alert("You must enter your city, before the form can be submitted."); return false;
else if (document.forms[0].state.value == "") { window.alert("You must enter your state, before the form can be submitted."); return false;
else if (document.forms[0].zip.value == "" ) { window.alert("You must enter your zip code, before the form can be submitted."); return false;
else if (document.forms[0].email.value == "" ) { window.alert("You must enter your e-mail, before the form can be submitted."); return false;
else if (document.forms[0].area.value == "") { Window.alert("You must enter your phone number, before the form can be submitted."); return false;
else if document.forms[0].exchange.value == "") { Window.alert("You must enter your phone number, before the form can be submitted."); return false; else if document.forms[0].phone.value == "") { Window.alert("You must enter your phone number, before the form can be submitted."); return false; }
Last edited by Freydis_The_Valkyrie on Mon Jan 28, 2008 4:37 pm, edited 1 time in total.
|
|
|
|
|
Nikblade
|
Post subject: Posted: Mon Jan 28, 2008 4:34 pm |
|
|
Forum Troll King |
|
Joined: Tue Oct 10, 2006 12:00 am Posts: 1801 Location: The Island of Misfit Toys
|
Yay YIM.
_________________
|
|
|
|
|
Freydis_The_Valkyrie
|
Post subject: Posted: Mon Jan 28, 2008 6:04 pm |
|
Joined: Wed Jun 06, 2007 12:00 am Posts: 263 Location: Hufflepuff Common.
|
YAY! We fixt it! Thanks, Fel!
|
|
|
|
|
|