how to handle exceptions? [Exception... "'Permission denied to set property XULElement.selectedIndex

J

Jake Barnes

I can not figure out the meaning of this error:

Error: [Exception... "'Permission denied to set property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
http://www.bluecasts.com/pdsIncludes/pdsAjax.js :: submitAnyForm ::
line 635" data: no]
Source File: http://www.bluecasts.com/pdsIncludes/pdsAjax.js
Line: 635


lin3 635 is the line below with formReference.submit();


function submitAnyForm(myform) {
if (document.getElementById(myform)) {
var formReference = document.getElementById(myform);
if (formReference) {
if (formReference.elements["choiceMade"]) {
var choiceMade = formReference.elements["choiceMade"];
var choiceValue = choiceMade.value;
}
// 03-23-06 - getting a weird error - "Error: [Exception...
"'Permission denied to set
// property XULElement.selectedIndex' when calling method:
// [nsIAutoCompletePopup::selectedIndex]"
// nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"
// location: "JS frame ::
http://www.bluecasts.com/pdsIncludes/pdsAjax.js :: submitAnyForm ::
line 626" data: no]
// Source File:
http://www.bluecasts.com/pdsIncludes/pdsAjax.js
// Line: 626
// so I'm adding this next check to make sure the reference
has a method called "submit".
if (formReference.submit) {
formReference.submit();
} else {
alert("There is no submit method for the form " +
myform);
}
} else {
alert("The element" + myform + " was not a form. We got
this: " + formReference);
}
} else {
alert("We could not find a form called " + myform);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top