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
Register
| FAQ | Members List | 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 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
DRM-free e-books 300x50
Reply
 
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

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

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
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)
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
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
Reply With Quote
Reply


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 11:30 PM.


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