473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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

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

Jul 23 '05 #1
1 4914
Vaibhav Vashisht wrote:
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);
}
}

Hi,

Local files accessed by javascript for uploadpurposes are crippled on
purpose.
I am not sure what is the problem here, but I expect the browser (JS) wants
the client to press the submit-button when a local file is selected for
upload.
(Maybe to protect the client against selecting the wrong file, then JS
submits it when the client actually wants to make another selection.)
Not sure... but you said urgent. :-)

Good luck.

Regards,
Erwin Moller
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jeff | last post by:
Ok. I am creating a table in an access DB based on a form submission. This works fine. The problem I am having is, if there is a space in the submission. For example.... someone submits "The...
63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
6
by: Arsene Lupin | last post by:
Is there a way to have Microsoft Access XP automatically display all table views, etc., in a maximized screen when Access is started? It is extremely time consuming to have to maximize the viewing...
2
by: None | last post by:
Hi, I have an excel spreadsheet which is a list of my drawing numbers. I have seperate tabs for stuff like mechanical drawings, circuits, and PCB's and such like. If my last drawing number was...
8
by: stoppal | last post by:
I have a sql statement: "SELECT Field1,field2 FROM table WHERE field1="!" I need to export this to a CSV file with header information. How can I do this? I've tried the below function...
1
by: joshtichauer | last post by:
So i have an xml file, i'm grabbing it via dataset, then placing the data into a datagrid. everythings all good, but i'd like to edit the data. the coding grabs whats in the edit textboxes, and...
4
by: Hexman | last post by:
I've been trying to figure ADO.net/VB/AccessDB out for some time. I've read many internet articles that have been pointed out to me by people in this group. Thanks for trying to help. I just...
1
by: Shun | last post by:
Hello, Please anybody try to execute this code. I am having a "quick.html" with email Id and name etc..., and henext form is the below "gdform.asp". When i try to execute this i am getting...
2
by: Navymike | last post by:
I have a query that displays ProgramType and a new field call Total that will display the total of all member’s MonthlyFee for each young adult program? Any help would be appreciated Navymike
2
by: mikkaro04 | last post by:
hi.. i have a problem about date comparison in VB 6.0 and MS Access i want to compare dates from access to a date from DTpicker control in VB 6.0.. this is my code but it doesnt work coz i get a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.