473,241 Members | 1,575 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,241 software developers and data experts.

Javascript :Access Denied Error


I have an HTML form with a browse button for file upload. If in the text I directly type the file name then:
1. If I type full path, e.g d:\abc.pdf, then hitting submit works fine.
2. If I type just the file name, e.g abc.pdf, then hitting submit hangs the browser. Javascript error says : Access denied.
This problem is occuring in IE7. Works fine with firefox. I tried changing the browser setting like this : Tools>Internet Options> Security>Custom Level>Miscellaneous>>Access data source across domain : Prompt. It didnt change anything.

I know what the problem is, but I dont know how to solve this. At least the browser should not hang because of javascript error. I do have backend validation for this file. I just want to escape javascript error.

Jan 23 '08 #1
6 2008
5,000 Expert 4TB
Next time try posting in the proper forum, instead of Misc. Questions.
Jan 23 '08 #2
16,027 Expert Mod 8TB
Is the page in the same directory as the file?
Jan 24 '08 #3
the page doesnt exist at all.
Even if it does, i get the same error in both case(same directory/different directory).

So in all case, I am getting this same error.
Jan 24 '08 #4
16,027 Expert Mod 8TB
What do you mean, the page doesn't exist? By page, I meant the HTML page containing the input file element.
Jan 25 '08 #5
I actually meant the 'file' to be uploaded, not the 'page'.
Jan 25 '08 #6
16,027 Expert Mod 8TB
I can't reproduce this error, but the file name should be selected using the Browse button. You can prevent users from entering into the file input box, if you want.
Jan 28 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.