Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 10th, 2005, 06:06 AM
Registered User
Join Date: Feb 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permission Denied


I have two frames. Lets call them FrameA and FrameB. FrameB contains some javascript continously checks if FrameA has loaded and contains a specific text field. When the field is found it gets the value of the field and shows it in a message box. If the field is not found it continues checking.

This configuration works fine most of the time. The problem arises when the FrameA contains a page that redirects to another page. As soon as the redirection happens the javascript starts giving "Permission Denied" error. (Please note that all pages in this case are in the same domain).

You can check the script at



Reply With Quote
  #2 (permalink)  
Old March 10th, 2005, 08:36 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

If you have control over the pages try setting the domain propertry of the document in each onre to be equal. I've seen this sort of error before when you access from a relative URL as against a full one or use a different protocol, http versus https for example. So in each page, after the document is loaded:
document.domain = "monoforge.com"

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old March 10th, 2005, 09:41 AM
Registered User
Join Date: Feb 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Joe,

Thanks a lot. This solved the problem. I setup the document.domain property in each page and it worked like a charm. Just for curiosity if you know, why does this error occur?

Thanks Again,

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
fopen permission denied PPGpilot Beginning PHP 1 February 24th, 2006 03:56 PM
Permission denied zah_amir Classic ASP Databases 1 January 24th, 2006 11:45 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied einstein Linux 1 December 10th, 2003 09:49 AM

All times are GMT -4. The time now is 02:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.