-2147024891 "Access is denied" in javascipt please help ASAP

Discussion in 'Javascript' started by Vaibhav Vashisht, Jan 19, 2005.

  1. Hi,

    Here's a code snippet,
    Above is the html code and below is the javascript function
    Am Getting an error: -2147024891 "Access is denied"


    <body onload="Load();">
    <form method=post name=frmbrowse ENCTYPE="multipart/form-data"
    ID="Form1">
    <table>
    <tr>
    <td>
    <input type=hidden name="strOrder" id="strOrder">
    <Input onpropertychange="javascript:Upload();"
    style="display:none" TYPE="FILE" NAME="browsedocument" SIZE="60"
    class="InputBox" ID="File1">
    </td>
    </tr>
    </table>
    </form>
    </body>

    function Load()
    {
    document.frmbrowse.browsedocument.click();}
    }

    function Upload()
    {
    document.frmbrowse.action ="Anyurl";
    try{
    document.frmbrowse.submit();
    }
    catch(err)
    {
    alert(err.number+" "+err.description);
    }
    }
     
    Vaibhav Vashisht, Jan 19, 2005
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.