Jump to content

error in jquery validator


geekisthenewsexy

Recommended Posts

hi all. i was wondering what this error means

 

Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative"  nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"  location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 825"  data: no]

 

i am using jquery validator for an "add subject form". i don't know if the error is caused by me removing something inside the script..here take a look please

<script type="text/javascript">
$.validator.setDefaults({});
$(document).ready(function() {
// validate signup form on keyup and submit
$("#signupForm").validate({
	rules: {
		subj_id:"required",
		code:"required",
		desc:"required",
		lect:"required",
		lab:"required",
		units:"required"		
	},
	messages: {
		subj_id: "Please provide the Subject ID",
		code: "Please provide the Subject Code",
		desc: "Please enter a description",
		lect: "Please enter number of lectures",
		lab: "Please enter lab hours",
		units: "Please enter number of units"

	}
});
});
</script> 

as you can see in line 2, $.validator.setDefaults({}); seems to be empty. well it wasn't, i removed the submitHandler: function() { alert("submitted!"); } inside 'cause after i click "ok" on the alert prompt, my form won't get submitted to "_do_add.php". so i removed it and after that, it submits. but i get the error in FF like i mentioned above. is this harmless or what?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/221844-error-in-jquery-validator/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.