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

V

Vaibhav Vashisht

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);
}
}
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top