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

Discussion in 'Javascript' started by Jake Barnes, Mar 23, 2006.

  1. Jake Barnes

    Jake Barnes Guest

    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);
    }
    }
     
    Jake Barnes, Mar 23, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kaeli
    Replies:
    6
    Views:
    172
    kaeli
    Nov 6, 2003
  2. Paul Thompson
    Replies:
    0
    Views:
    112
    Paul Thompson
    Apr 13, 2004
  3. Prasad
    Replies:
    0
    Views:
    113
    Prasad
    Nov 21, 2006
  4. Replies:
    1
    Views:
    223
    Bart Van der Donck
    Jan 18, 2007
  5. Replies:
    2
    Views:
    202
Loading...

Share This Page