By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,537 Members | 2,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,537 IT Pros & Developers. It's quick & easy.

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

P: n/a
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);
}
}

Mar 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jake Barnes wrote:
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();
[script code]


The relevant markup snippet this script code is operating on, is missing.
PointedEars
Mar 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.