Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 October 22nd, 2004, 05:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default Cross-frame scripting, works in FF but not IE

Hello P2P,

I have a frameset page that has two frames, one of which periodically refreshes the other using JS. The frame that I refresh is on a remote server. In the frame that has the code that refreshes the other:

function refreshOtherFrame()
{
    parent.frames.myOtherFrame.location.reload();
}

According to this page...
http://msdn.microsoft.com/workshop/a...g_security.asp
...I shouldn't be getting Permission Denied because I'm not reading the URL of the other frame, just resetting it.

But I am getting Permission Denied anyway.

The strange thing is, this script works in Firefox, but IE's "security" seems to think I'm accessing another part of the DOM other than the locaiton, when I'm really just calling a method.

Is there a way around this?

Thanks,

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
__________________
-Snib - http://www.snibworks.com
Where will you be in 100 years?
 
Old October 23rd, 2004, 03:37 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

What OS and browser version?
I will check with Microsoft and see if it's a feature or a bug :)
For example a lot of this stuff has been tightened up with XP SP2 and seems to be undocumented.

--

Joe
 
Old October 23rd, 2004, 09:17 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 running on Windows XP Professional (5.1 SP2)

Thanks Joe!!

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
 
Old October 25th, 2004, 05:41 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I have been pointed to the Technical Documentation in this article http://www.microsoft.com/technet/sec.../MS04-004.mspx
According to my source this means that ALL cros-domain interaction is disallowed. Do yoiu have "Navigate sub frames across domains" checked in the appropriate security zone?

--

Joe
 
Old October 25th, 2004, 08:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Yes, I allowed "Navigate Sub-frames Across Domains" before I posted for Trusted Sites.

I put the frameset and the refresher frame in Trusted Sites, and it didn't work. The other frame, hosted on a remote server, is not in Trusted Sites. However, I put it in Trusted Sites and it still didn't work.

Thanks,

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Works in IE but not in FF sofiacole Pro JSP 1 September 12th, 2007 11:20 PM
Javascript works in IE7 not in FF 2 swifty_programmer Javascript 2 August 31st, 2007 02:07 AM
Window status works in FF, but not IE...why? msprothero Javascript 2 March 22nd, 2005 10:10 AM
Cross-platform scripting jhusain XSLT 1 January 13th, 2005 05:37 AM





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