World of Harry Potter Forums http://forums.wohp.net/ | |
Anybody here know anything about JavaScript? http://forums.wohp.net/viewtopic.php?f=1&t=1520 |
Page 1 of 1 |
Author: | Freydis_The_Valkyrie [ Sun Jan 27, 2008 3:16 pm ] |
Post subject: | Anybody here know anything about JavaScript? |
It's driving me nutzo.. |
Author: | Anakin [ Sun Jan 27, 2008 10:20 pm ] |
Post subject: | |
Actually, I use JavaScript quite regularly at work. =o) What seems to be the problem? |
Author: | Freydis_The_Valkyrie [ Mon Jan 28, 2008 4:27 pm ] |
Post subject: | |
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. >.< |
Author: | Felien [ Mon Jan 28, 2008 4:32 pm ] |
Post subject: | |
I can help... get on YIM or something? |
Author: | Freydis_The_Valkyrie [ Mon Jan 28, 2008 4:33 pm ] |
Post subject: | |
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; } |
Author: | Nikblade [ Mon Jan 28, 2008 4:34 pm ] |
Post subject: | |
Yay YIM. |
Author: | Freydis_The_Valkyrie [ Mon Jan 28, 2008 6:04 pm ] |
Post subject: | |
YAY! We fixt it! Thanks, Fel! |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |