Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 22nd, 2004, 05:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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?
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2004, 03:37 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

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
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2004, 09:17 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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.
Reply With Quote
  #4 (permalink)  
Old October 25th, 2004, 05:41 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

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
Reply With Quote
  #5 (permalink)  
Old October 25th, 2004, 08:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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.
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
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



All times are GMT -4. The time now is 10:50 AM.


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