Firefox, getUserData(), and NS_ERROR_XPC_NOT_ENOUGH_ARGS
ColdFusion
As part of the re-write of an application at work, we are implementing some AJAX functionality to improve, among many things, user feel, reduced form submits, etc.
Being brand new to AJAX, I wanted to write some basic functions to get a feel of what it is going to take to pass data around, display it, etc. The very first function I wrote was going to take a the value of an input field, and onChange() call the function to run a query and return that user's email address. Simple enough right?
After writing it all, I go to test it in Firefox and nada, I got an JS error that included NS_ERROR_XPC_NOT_ENOUGH_ARGS.
I immediately chalked this up to my inexperience, but thought I would just try it in IE just to see what error it puked out. Lo and Behold! It worked as expected, as I typed each new username in the field, i could see his/her email address being displayed on screen. (cool cool cool).
After sifting through a ton of discussion on various causes of that error message, I found that getUserData() is a reserved function name introduced in DOM 3.
Changed the function name to getUserInfo() and all is better!
I thought I had found the one single thing that IE might do better than Firefox...but in reality IE was just still stuck in DOM 1.
Good for Firefox ;)
We are using CFAJAX:
http://www.indiankey.com/cfajax
DOM level 3 info:
http://www.w3.org/TR/DOM-Level-3-Core/idl-definitions.html
Being brand new to AJAX, I wanted to write some basic functions to get a feel of what it is going to take to pass data around, display it, etc. The very first function I wrote was going to take a the value of an input field, and onChange() call the function to run a query and return that user's email address. Simple enough right?
After writing it all, I go to test it in Firefox and nada, I got an JS error that included NS_ERROR_XPC_NOT_ENOUGH_ARGS.
I immediately chalked this up to my inexperience, but thought I would just try it in IE just to see what error it puked out. Lo and Behold! It worked as expected, as I typed each new username in the field, i could see his/her email address being displayed on screen. (cool cool cool).
After sifting through a ton of discussion on various causes of that error message, I found that getUserData() is a reserved function name introduced in DOM 3.
// Introduced in DOM Level 3:
DOMUserData getUserData(in DOMString key);
};
Changed the function name to getUserInfo() and all is better!
I thought I had found the one single thing that IE might do better than Firefox...but in reality IE was just still stuck in DOM 1.
Good for Firefox ;)
We are using CFAJAX:
http://www.indiankey.com/cfajax
DOM level 3 info:
http://www.w3.org/TR/DOM-Level-3-Core/idl-definitions.html




Loading....