Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to handle exceptions? [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method:

Reply
Thread Tools

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

 
 
Jake Barnes
Guest
Posts: n/a
 
      03-23-2006
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);
}
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
permission denied to set property window.onunload kaeli Javascript 6 11-06-2003 05:40 PM
'property value' could not be set on property 'propertyname' KJ ASP .Net Web Controls 0 08-26-2003 06:08 PM



Advertisments