Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.