Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-24-2003, 01:36 AM   #1
aaron
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
quick hahahahahahahahahaha question

<!--

//define the function

function checkForm(formName) {

//state that contactinfo is each feild on the form

for( var contactinfo = 0; contactinfo < document.forms[formName].elements.length; contactinfo++)

//if any fields are blank

if ( document.forms[formName].elements[contactinfo].value hahahaha '' )
{
document.forms[formName].elements[contactinfo].focus();

//alert the user which fields they did not fill out

alert( 'Please fill in your ' + document.forms[formName].elements[contactinfo].name );
}


}
//-->


im using this like this >>

form name="form" action="mailto:[email protected]" method="post" OnSubmit=checkForm("form")









so - when i click submit it goes through and it alerts what fields are missing input but what do i need to do to make it so if the alert comes up it stops and doesn't submit!?
aaron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:37 AM   #2
aaron
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
ugh it didnt show up



here it is


!--

//define the function

function checkForm(formName) {

//state that contactinfo is each feild on the form

for( var contactinfo = 0; contactinfo < document.forms[formName].elements.length; contactinfo++)

//if any fields are blank

if ( document.forms[formName].elements[contactinfo].value hahahaha '' )
{
document.forms[formName].elements[contactinfo].focus();

//alert the user which fields they did not fill out

alert( 'Please fill in your ' + document.forms[formName].elements[contactinfo].name );
}


}
//--
aaron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:37 AM   #3
Chaldoray
Confirmed User
 
Join Date: Jul 2003
Posts: 2,868
hit me up on icq at 237842929 you cannot have the action mailto, who the hell told you that?
Chaldoray is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:38 AM   #4
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Here's a good site. WebMonkey
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:38 AM   #5
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
Take away the submit button and just use a regular button. Put the onClick() event on the regular button and label the button "submit".

SpaceAce
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:44 AM   #6
aaron
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
space ace i tried that, will you please icq me?? i need to have this done fast for school i can go back and actually learn it later
aaron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:46 AM   #7
aaron
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
nevermind i just did something (not quite sure what) and its working now
aaron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2003, 01:47 AM   #8
aaron
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
wait a minute where do i actually have it submit the form though???
aaron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.