WoHP Homepage    Register    Login    Forum    Search    FAQ

Board index » General » Miscellanea




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Anybody here know anything about JavaScript?
 Post Posted: Sun Jan 27, 2008 3:16 pm 
Offline
Forum Sixth Year
Forum Sixth Year
User avatar

Joined: Wed Jun 06, 2007 12:00 am
Posts: 263
Location: Hufflepuff Common.
It's driving me nutzo..


Top 
 Profile  
 
 Post subject:
 Post Posted: Sun Jan 27, 2008 10:20 pm 
Offline
Forum First Year
Forum First Year
User avatar

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


Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Jan 28, 2008 4:27 pm 
Offline
Forum Sixth Year
Forum Sixth Year
User avatar

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.


Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Jan 28, 2008 4:32 pm 
Offline
Forum Sixth Year
Forum Sixth Year
User avatar

Joined: Tue Jun 19, 2007 12:00 am
Posts: 273
Location: Nik's closet.
I can help... get on YIM or something?


Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Jan 28, 2008 4:33 pm 
Offline
Forum Sixth Year
Forum Sixth Year
User avatar

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.

Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Jan 28, 2008 4:34 pm 
Offline
Forum Troll King
User avatar

Joined: Tue Oct 10, 2006 12:00 am
Posts: 1801
Location: The Island of Misfit Toys
Yay YIM.

_________________
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Jan 28, 2008 6:04 pm 
Offline
Forum Sixth Year
Forum Sixth Year
User avatar

Joined: Wed Jun 06, 2007 12:00 am
Posts: 263
Location: Hufflepuff Common.
YAY! We fixt it! Thanks, Fel!


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » General » Miscellanea


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: