?
Solved

little jquery validation error on remote.

Posted on 2010-01-12
9
Medium Priority
?
1,645 Views
Last Modified: 2012-06-27
Hello, I need the the email to check a remote script.. if I go to the link I retrun it right so it's just the jquery.. I'm not getting it right..

testing
http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User=jeremy@cable.net

there is a user named "jeremy@cable.net" so false is returned  

but I'm not geting the message... it's a little messed...

Thanks for the help...
Jeremy
jQuery.validator.addMethod("zipcode", function(zip) {
// matches US ZIP code
// allow either five digits or nine digits with an optional '-' between
	zip = zip.replace(/^\s+/, "");
	zip = zip.replace(/\s+$/, "");
	if(zip.length == 0) {
		return true;
	}
	if(zip.match(/^\d{5}([- ]?\d{4})?$/)) {
		return true;
	}
	return false;
}, "Please specify a valid US ZIP code");


jQuery.validator.addMethod("password", function( value, element ) {
	var result = this.optional(element) || value.length >= 8 && /\d/.test(value) && /[a-z]/i.test(value);
	if (!result) {
		element.value = "";
		var validator = this;
		setTimeout(function() {
			validator.blockFocusCleanup = true;
			element.focus();
			validator.blockFocusCleanup = false;
		}, 1);
	}
	return result;
}, "Your password must be at least 6 characters long and contain at least one number and one character.");




$(".SUNSCRIP").bind('cbox_complete', function(){									  
	// validate signup form on keyup and submit
	var validator = $("#Sunscribe form").validate({
		onkeyup: false,
		rules: {
			name: "required",
			password1: {
				required: true,
				minlength: 8
			},
			password2: {
				required: true,
				minlength: 8,
				equalTo: "#password1"
			},
			email: {
				required: true,
				email: true,
				remote: "http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User="+$("#email").val()+""
			}
		},
		messages: {
			name: "Enter your firstname",
			password1: {
				required: "Provide a password",
				required: "Provide a password",
				minlength: jQuery.format("Enter at least {0} characters")
			},
			password2: {
				required: "Repeat your password",
				minlength: jQuery.format("Enter at least {0} characters"),
				equalTo: "Enter the same password as above"
			},
			email: {
				required: "Please enter a valid email address",
				minlength: "Please enter a valid email address",
				remote: jQuery.format("{0} is already in use")
			}
		},
//		// specifying a submitHandler prevents the default submit, good for the demo
//		submitHandler: function() {
//			alert("submitted!");
//		},
//		// set this class to error-labels to indicate valid fields
//		success: function(label) {
//			// set   as text for IE
//			label.html(" ").addClass("checked");
//		},
		debug:true
	});
	
	// propose username by combining first- and lastname
	$("#username").focus(function() {
		var firstname = $("#firstname").val();
		var lastname = $("#lastname").val();
		if(firstname && lastname && !this.value) {
			this.value = firstname + "." + lastname;
		}
	});
	$("#city").rules("add", {
		required: true,
		minlength: 2,
		messages: {
		   minlength: jQuery.format("Please, at least {0} characters are necessary")
		}
	}); 
	$("#zip").rules("add", {
		required: false,
		zipcode:true,
		messages: {
			email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>"
		}
	});

Open in new window

0
Comment
Question by:jeremyBass26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 58

Expert Comment

by:HainKurt
ID: 26298299
I could not get the issue here,

you post some jQuery code and a page, which puts false... and you did not post the code for this page that prints "false, OK, The server encountered an internal error or misconfiguration..."

0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 26298419
The code that prints true or false is not the issue here and is why I didn't post.. If your saying that it's not working I would say to can test to see it is...

The issue is that the remote of the validation plugin is not working... it does do the check if the email is a validate email... I just need the remote... that is not working...

Here is the area of concern.. also the html...

jQuery.validator.addMethod("zipcode", function(zip) {
// matches US ZIP code
// allow either five digits or nine digits with an optional '-' between
	zip = zip.replace(/^\s+/, "");
	zip = zip.replace(/\s+$/, "");
	if(zip.length == 0) {
		return true;
	}
	if(zip.match(/^\d{5}([- ]?\d{4})?$/)) {
		return true;
	}
	return false;
}, "Please specify a valid US ZIP code");


jQuery.validator.addMethod("password", function( value, element ) {
	var result = this.optional(element) || value.length >= 8 && /\d/.test(value) && /[a-z]/i.test(value);
	if (!result) {
		element.value = "";
		var validator = this;
		setTimeout(function() {
			validator.blockFocusCleanup = true;
			element.focus();
			validator.blockFocusCleanup = false;
		}, 1);
	}
	return result;
}, "Your password must be at least 6 characters long and contain at least one number and one character.");


$(".SUNSCRIP").bind('cbox_complete', function(){	  
	// validate signup form on keyup and submit
	var validator = $("#Sunscribe form").validate({
		onkeyup: false,
		rules: {
			name: "required",
			password1: {
				required: true,
				minlength: 8
			},
			password2: {
				required: true,
				minlength: 8,
				equalTo: "#password1"
			},
			email: {
				required: true,
				email: true,
				remote: "http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User="+$("#email").val()+""
			}
		},
		messages: {
			name: "Enter your firstname",
			password1: {
				required: "Provide a password",
				required: "Provide a password",
				minlength: jQuery.format("Enter at least {0} characters")
			},
			password2: {
				required: "Repeat your password",
				minlength: jQuery.format("Enter at least {0} characters"),
				equalTo: "Enter the same password as above"
			},
			email: {
				required: "Please enter a valid email address",
				remote: jQuery.format("{0} is already in use")
			}
		},
		debug:true
	});
	$("#city").rules("add", {
		required: true,
		minlength: 2,
		messages: {
		   minlength: jQuery.format("Please, at least {0} characters are necessary")
		}
	}); 
	$("#zip").rules("add", {
		required: false,
		zipcode:true,
		messages: {
			email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>"
		}
	});
}); 




//////////
//
// The HTML
//
//////////


<div style="width: 400px;" id="Sunscribe">



				
		<form enctype="multipart/form-data" action="http://www.philasun.com/" method="post" id="cntnt01moduleform_3">
<div class="hidden">
<input type="hidden" value="FormBuilder,cntnt01,default,0" name="mact"/>
<input type="hidden" value="15" name="cntnt01returnid"/>
<input type="hidden" value="1" name="cntnt01fbrp_callcount"/>
</div>

	<div><input type="hidden" value="5" name="cntnt01form_id"/>
<input type="hidden" value="2" name="cntnt01fbrp_continue"/>
<input type="hidden" value="1" name="cntnt01fbrp_done"/>
</div>

	    
    
    <input type="hidden" id="finish" class="TextInput" value="false" name="cntnt01fbrp__37"/>    
    <span class="FBsuWRAP"><input type="text" id="name" class="TextInput" onfocus="if (this.value=='Name') {this.value='';}" maxlength="80" size="25" value="Name" name="cntnt01fbrp__38"/>
<br/></span>
    <span class="FBsuWRAP"><input type="text" id="email" class="TextInput required email error" onfocus="if (this.value=='Email') {this.value='';}" maxlength="80" size="25" value="Email" name="cntnt01fbrp__39"/><label for="email" generated="true" class="error">Please enter a valid email address.</label>
<br/></span>
    <h3>Password</h3>
    <span class="FBsuWRAP"><input type="password" id="password1" class="TextInput required password" maxlength="255" size="12" value="" name="cntnt01fbrp__40"/>
<br/></span>
    <h5>Password Again</h5>
    <span class="FBsuWRAP"><input type="password" id="password2" equalto="#password1" class="TextInput required password" maxlength="255" size="12" value="" name="cntnt01fbrp__41"/>
<br/></span>
    
    
    <select id="country" class="DropDown" name="cntnt01fbrp__42"><option selected="selected" value="">Select Your Country</option><option value="AF">Afghanistan</option><option value="AX">Aland Islands</option><option value="AL">Albania</option><option value="DZ">Algeria</option><option value="AS">American Samoa</option><option value="AD">Andorra</option><option value="AO">Angola</option><option value="AI">Anguilla</option><option value="AQ">Antarctica</option><option value="AG">Antigua and Barbuda</option><option value="AR">Argentina</option><option value="AM">Armenia</option><option value="AW">Aruba</option><option value="AU">Australia</option><option value="AT">Austria</option><option value="AZ">Azerbaijan</option><option value="BS">Bahamas</option><option value="BH">Bahrain</option><option value=" BB">Barbados</option><option value="BD">Bangladesh</option><option value="BY">Belarus</option><option value="BE">Belgium</option><option value="BZ">Belize</option><option value="BJ">Benin</option><option value="BM">Bermuda</option><option value="BT">Bhutan</option><option value="BW">Botswana</option><option value="BO">Bolivia</option><option value="BA">Bosnia and Herzegovina</option><option value="BV">Bouvet Island</option><option value="BR">Brazil</option><option value="IO">British Indian Ocean Territory</option><option value="BN">Brunei Darussalam</option><option value="BG">Bulgaria</option><option value="BF">Burkina Faso</option><option value="BI">Burundi</option><option value="KH">Cambodia</option><option value="CM">Cameroon</option><option value="CA">Canada</option><option value="CV">Cape Verde</option><option value="KY">Cayman Islands</option><option value="CF">Central African Republic</option><option value="TD">Chad</option><option value="CL">Chile</option><option value="CN">China</option><option value="CX">Christmas Island</option><option value="CC">Cocos (Keeling) Islands</option><option value="CO">Colombia</option><option value="KM">Comoros</option><option value="CG">Congo</option><option value="CD">Congo,  Democratic Republic</option><option value="CK">Cook Islands</option><option value="CR">Costa Rica</option><option value="CI">Cote D'Ivoire (Ivory Coast)</option><option value="HR">Croatia (Hrvatska)</option><option value="CU">Cuba</option><option value="CY">Cyprus</option><option value="CZ">Czech Republic</option><option value="DK">Denmark</option><option value="DJ">Djibouti</option><option value="DM ">Dominica</option><option value="DO">Dominican Republic</option><option value="TP">East Timor</option><option value="EC">Ecuador</option><option value="EG">Egypt</option><option value="SV">El Salvador</option><option value="GQ">Equatorial Guinea</option><option value="ER">Eritrea</option><option value="EE">Estonia</option><option value="ET">Ethiopia</option><option value="FK">Falkland Islands (Malvinas)</option><option value="FO">Faroe Islands</option><option value="FJ">Fiji</option><option value="FI">Finland</option><option value="FR">France</option><option value="FX">France,  Metropolitan</option><option value="GF">French Guiana</option><option value="PF">French Polynesia</option><option value="TF">French Southern Territories</option><option value="MK">F.Y.R.O.M. (Macedonia)</option><option value="GA">Gabon</option><option value="GM">Gambia</option><option value="GE">Georgia</option><option value="DE">Germany</option><option value="GH">Ghana</option><option value="GI">Gibraltar</option><option value="GB">Great Britain (UK)</option><option value="GR">Greece</option><option value="GL">Greenland</option><option value="GD">Grenada</option><option value="GP">Guadeloupe</option><option value="GU">Guam</option><option value="GT">Guatemala</option><option value="GF">Guernsey</option><option value="GN">Guinea</option><option value="GW">Guinea-Bissau</option><option value="GY">Guyana</option><option value="HT">Haiti</option><option value="HM">Heard and McDonald Islands</option><option value="HN">Honduras</option><option value="HK">Hong Kong</option><option value="HU">Hungary</option><option value="IS">Iceland</option><option value="IN">India</option><option value="ID">Indonesia</option><option value="IR">Iran</option><option value="IQ">Iraq</option><option value="IE">Ireland</option><option value="IL">Israel</option><option value="IM">Isle of Man</option><option value="IT">Italy</option><option value="JE">Jersey</option><option value="JM">Jamaica</option><option value="JP">Japan</option><option value="JO">Jordan</option><option value="KZ">Kazakhstan</option><option value="KE">Kenya</option><option value="KI">Kiribati</option><option value="KP">Korea (North)</option><option value="KR">Korea (South)</option><option value="KW">Kuwait</option><option value="KG">Kyrgyzstan</option><option value="LA">Laos</option><option value="LV">Latvia</option><option value="LB">Lebanon</option><option value="LI">Liechtenstein</option><option value="LR">Liberia</option><option value="LY">Libya</option><option value="LS">Lesotho</option><option value="LT">Lithuania</option><option value="LU">Luxembourg</option><option value="MO">Macau</option><option value="MG">Madagascar</option><option value="MW">Malawi</option><option value="MY">Malaysia</option><option value="MV">Maldives</option><option value="ML">Mali</option><option value="MT">Malta</option><option value="MH">Marshall Islands</option><option value="MQ">Martinique</option><option value="MR">Mauritania</option><option value="MU">Mauritius</option><option value="YT">Mayotte</option><option value="MX">Mexico</option><option value="FM">Micronesia</option><option value="MC">Monaco</option><option value="MD">Moldova</option><option value="MA">Morocco</option><option value="MN">Mongolia</option><option value="MS">Montserrat</option><option value="MZ">Mozambique</option><option value="MM">Myanmar</option><option value="NA">Namibia</option><option value="NR">Nauru</option><option value="NP">Nepal</option><option value="NL">Netherlands</option><option value="AN">Netherlands Antilles</option><option value="NT">Neutral Zone</option><option value="NC">New Caledonia</option><option value="NZ">New Zealand (Aotearoa)</option><option value="NI">Nicaragua</option><option value="NE">Niger</option><option value="NG">Nigeria</option><option value="NU">Niue</option><option value="NF">Norfolk Island</option><option value="MP">Northern Mariana Islands</option><option value="NO">Norway</option><option value="OM">Oman</option><option value="PK">Pakistan</option><option value="PW">Palau</option><option value="PS">Palestinian Territory</option><option value="PA">Panama</option><option value="PG">Papua New Guinea</option><option value="PY">Paraguay</option><option value="PE">Peru</option><option value="PH">Philippines</option><option value="PN">Pitcairn</option><option value="PL">Poland</option><option value="PT">Portugal</option><option value="PR">Puerto Rico</option><option value="QA">Qatar</option><option value="RE">Reunion</option><option value="RO">Romania</option><option value="RU">Russian Federation</option><option value="RW">Rwanda</option><option value="GS">S. Georgia and S. Sandwich Isls.</option><option value="KN">Saint Kitts and Nevis</option><option value="LC">Saint Lucia</option><option value="VC">Saint Vincent & the Grenadines</option><option value="WS">Samoa</option><option value="SM">San Marino</option><option value="ST">Sao Tome and Principe</option><option value="SA">Saudi Arabia</option><option value="SN">Senegal</option><option value="SC">Seychelles</option><option value="SL">Sierra Leone</option><option value="SG">Singapore</option><option value="SI">Slovenia</option><option value="SK">Slovak Republic</option><option value="SB">Solomon Islands</option><option value="SO">Somalia</option><option value="ZA">South Africa</option><option value="ES">Spain</option><option value="LK">Sri Lanka</option><option value="SH">St. Helena</option><option value="PM">St. Pierre and Miquelon </option><option value="SD">Sudan</option><option value="SR">Suriname</option><option value="SJ">Svalbard & Jan Mayen Islands</option><option value="SZ">Swaziland</option><option value="SE">Sweden</option><option value="CH">Switzerland</option><option value="SY">Syria</option><option value="TW">Taiwan</option><option value="TJ">Tajikistan</option><option value="TZ">Tanzania</option><option value="TH">Thailand</option><option value="TG">Togo</option><option value="TK">Tokelau</option><option value="TO">Tonga</option><option value="TT">Trinidad and Tobago</option><option value="TN">Tunisia</option><option value="TR">Turkey</option><option value="TM">Turkmenistan</option><option value="TC">Turks and Caicos Islands</option><option value="TV">Tuvalu</option><option value="UG">Uganda</option><option value="UA">Ukraine</option><option value="AE">United Arab Emirates</option><option value="UK">United Kingdom</option><option value="US">United States</option><option value="UM">US Minor Outlying Islands</option><option value="UY">Uruguay</option><option value="UZ">Uzbekistan</option><option value="VU">Vanuatu</option><option value="VA">Vatican City State (Holy See)</option><option value="VE">Venezuela</option><option value="VN">Viet Nam</option><option value="VG">Virgin Islands (British)</option><option value="VI">Virgin Islands (U.S.)</option><option value="WF">Wallis and Futuna Islands</option><option value="EH">Western Sahara</option><option value="YE">Yemen</option><option value="YU">Yugoslavia</option><option value="ZM">Zambia</option><option value="ZW">Zimbabwe</option></select>
<select id="state" class="DropDown" name="cntnt01fbrp__45"><option selected="selected" value="">Select Your State</option><option value="AL">Alabama</option><option value="AK">Alaska</option><option value="AZ">Arizona</option><option value="AR">Arkansas</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="IA">Iowa</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="ME">Maine</option><option value="MD">Maryland</option><option value="MA">Massachusetts</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MS">Mississippi</option><option value="MO">Missouri</option><option value="MT">Montana</option><option value="NE">Nebraska</option><option value="NV">Nevada</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NY">New York</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VT">Vermont</option><option value="VA">Virginia</option><option value="WA">Washington</option><option value="DC">District of Columbia</option><option value="WV">West Virginia</option><option value="WI">Wisconsin</option><option value="WY">Wyoming</option></select>
<br/>
    <span class="FBsuWRAP"><input type="text" id="city" class="TextInput " onfocus="if (this.value=='City') {this.value='';}" maxlength="80" size="25" value="City" name="cntnt01fbrp__43"/>
<br/></span>
    <span class="FBsuWRAP"><input type="text" id="zip" class="TextInput required zipcode" onfocus="if (this.value=='Zip') {this.value='';}" maxlength="80" size="25" value="Zip" name="cntnt01fbrp__44"/>
<br/></span>
    
 

    
    
    
    
    <div class="formSplit"/>
    <h3>choose your subscription</h3>
            <input type="radio" id="subscriptionLevel_0" value="1" name="cntnt01fbrp__46"/> <label for="subscriptionLevel_0">Philadelphia Sun News Paper ($30.00) annually</label><br/>
            <input type="radio" id="subscriptionLevel_1" checked="checked" value="2" name="cntnt01fbrp__46"/> <label for="subscriptionLevel_1">Philadelphia Sun Online ($15.00) annually</label><br/>
            <input type="radio" id="subscriptionLevel_2" value="3" name="cntnt01fbrp__46"/> <label for="subscriptionLevel_2">Online and Print ($38.00) annually</label><br/>
            <input type="radio" id="subscriptionLevel_3" value="4" name="cntnt01fbrp__46"/> <label for="subscriptionLevel_3">Free - for specials and contests</label><br/>
        
    
    <input type="submit" class="fbsubmit" value="proceed to checkout" id="cntnt01fbrp_submit" name="cntnt01fbrp_submit"/>

    <div class="formSplit"/>
    <p>download a printable form</p>
    
    <a id="GetPdf" href="http://www.philasun.com/sunscribe.pdf">Download PDF</a>
    
    <p>By Subscribing to the Philadelphia Sun (on any level) you agree to our Terms & Conditions.</p>
    
	</form>

</div>

Open in new window

0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 26298470
this is it....


      $("#email").rules("add", {
            required: true,
            email:true,
            remote: "http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User="+$("#email").val()+"",
            messages: {
                  required: "Please enter a valid email address",
                  email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>",
                  remote: jQuery.format("{0} is already in use")
            }
      });      
0
CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

 
LVL 58

Expert Comment

by:HainKurt
ID: 26298477
yes, but I dont see the page where email is validated...
so you have html with jQuery, you put email address here (can you please post link for this page as well) and post it... and you get "false" from some page, right?

and this seems strange ;)

$("#zip").rules("add", {
            required: false,
            zipcode:true,
            messages: {
                  email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>"
            }

email msg for zip...
0
 
LVL 58

Assisted Solution

by:HainKurt
HainKurt earned 2000 total points
ID: 26298484
????
0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 26298717
to answer you question..

            messages: {
                  email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>"
            }

get over writen.. it's just there in the zip... but ti has changed...


truns out it is half working now.. thought it was all the way... so here is the script...

http://www.philasun.com/ ... the form is in the "sunscribe" at the top...


now it's doing the remote validation on the email but not always is retruning false...


now if you test



http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User=asfasf@asdf.tv


you get true... put asfasf@asdf.tv in the form and it says false... that is where...
jQuery.validator.addMethod("zipcode", function(zip) {
// matches US ZIP code
// allow either five digits or nine digits with an optional '-' between
	zip = zip.replace(/^\s+/, "");
	zip = zip.replace(/\s+$/, "");
	if(zip.length == 0) {
		return true;
	}
	if(zip.match(/^\d{5}([- ]?\d{4})?$/)) {
		return true;
	}
	return false;
}, "Please specify a valid US ZIP code");


jQuery.validator.addMethod("password", function( value, element ) {
	var result = this.optional(element) || value.length >= 8 && /\d/.test(value) && /[a-z]/i.test(value);
	if (!result) {
		element.value = "";
		var validator = this;
		setTimeout(function() {
			validator.blockFocusCleanup = true;
			element.focus();
			validator.blockFocusCleanup = false;
		}, 1);
	}
	return result;
}, "Your password must be at least 6 characters long and contain at least one number and one character.");


var U='';
$(".SUNSCRIP").bind('cbox_complete', function(){									  
	// validate signup form on keyup and submit
	var validator = $("#Sunscribe form").validate({
		onkeyup: false,
		debug:true
	});
	$("#city").rules("add", {
		required: true,
		minlength: 2,
		messages: {
			required: "Please enter a city",
		   minlength: jQuery.format("Please, at least {0} characters are necessary")
		}
	});
	$("#name").rules("add", {
		required: true,
		minlength: 2,
		messages: {
			required: "Please enter a name",
			minlength: jQuery.format("Please, at least {0} characters are necessary")
		}
	}); 
	$("#zip").rules("add", {
		required: false,
		zipcode:true,
	});

	$("#email").rules("add", {
		required: true,
		email:true,
		remote: "http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User="+$("#email").val()+"",
		messages: {
			required: "Please enter a valid email address",
			email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>",
			remote: jQuery.format("{0} is already in use")
		}
	});											  										  
}); 

	$("#email").change(function() {
		 U=$("#email").val();
		 alert(U);
		 validator.element( "#email" );

	});

Open in new window

0
 
LVL 4

Accepted Solution

by:
jeremyBass26 earned 0 total points
ID: 26298938
ok.. the issue was this.. that you need to re-set the fule on the change...




      $("#email").change(function() {
             U=$("#email").val();
            $("#email").rules("add", {
                  required: true,
                  email:true,
                  remote: "http://www.philasun.com/user-area/sign-up.html?showtemplate=false&TestEmail=true&User="+U+"",
                  messages: {
                        required: "Please enter a valid email address",
                        email: "Please enter a valid E-Mail <em>Try XXXXX@XXXX.XXX</em>",
                        remote: U+" is in use.  Click here to retrive your Account info."
                  }
            });      
      });

that is it.. thanks for the help...
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 26313226
jeremyBass26,
If there was "Help" provided by the Expert - as you mentioned twice - then please award points for that help.

If the actual 'Solution' is your last post - but the Expert helped you get there - then use the "Accept and Award Points" link that is just below your last comment.

Vee_Mod
Experts-Exchange Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question