geekisthenewsexy Posted December 16, 2010 Share Posted December 16, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/221844-error-in-jquery-validator/ Share on other sites More sharing options...
Adam Posted December 16, 2010 Share Posted December 16, 2010 Have you tried removing the line altogether? I can't see any need for it to be there if you're not using it anyway. Quote Link to comment https://forums.phpfreaks.com/topic/221844-error-in-jquery-validator/#findComment-1148048 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.