Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intermittent 'access denied' error when writing to popup 1

Status
Not open for further replies.

tcstom

Programmer
Joined
Aug 22, 2003
Messages
235
Location
GB
Hi everyone,

I have an ASP.NET application which uses a Javascript event on a button click to open a popup window. The window initially loads 'about:blank' then I write HTML to it manually using a Javascript function. In 98% of cases this works fine, but just occasionally (and as far as I'm concerned with no other environmental variables changed) the script fails with an 'access denied' error when accessing the popup window. This would make sense if it happened all the time but it is only occasionally. Any ideas why? The app is running on an internal network is that helps?
 
Thanks, I'll give it a go. I do open it with a name and also assign it to a variable. Do you mean just use an empty string as the name?
 
I'll let you know how it goes. The problem is intermittent anyway so can't be tested directly but I'll post back if it persists.
 
Now I've removed the window name, suddenly I'm getting problems with a popup-blocker. I think I'd beeter explain further what I'm doing...

I need users to upload a CSV file which is processed on the web server with data being added to a database. I then need to inform the user of any errors. The 'Upload CSV' button opens a popup window which display a 'Please Wait' message while the parent window refreshes as part of the HTTP POST. When the page has re-loaded it contains a startup script that re-locates the popup window (by re-opening it) and writes the results to it. It's this last step that gets blocked by the popup blocker, presumably because it's not a user action that re-opens the popup window.

Any ideas? Maybe is there any other way to re-locate a popup window after the parent has refreshed if you know it's name (other than doing another window.open())?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top