Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2005, 06:06 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permission Denied

Hi,

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

http://hamidmq.monoforge.com/frameset.html

Thanks,
Hamid

 
Old March 10th, 2005, 08:36 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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:
Code:
document.domain = "monoforge.com"
--

Joe (Microsoft MVP - XML)
 
Old March 10th, 2005, 09:41 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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,
Hamid


Thanks,
Hamid





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





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