View Single Post
  #1 (permalink)  
Old Apr 20th, 2007, 14:08
camer38 camer38 is offline
New Member
Join Date: Apr 2007
Location: Dublin
Age: 29
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
IE7 and parent.location not working?

Hi,

In a script used by svg, I have a like like the following to go to a new web page:

Code: Select all
parent.location.href = newUrl;
This works fine in IE6. However, it has no effect in ie7 (not even a error message, or security message) It just does nothing.
I have noised when i do:

Code: Select all
alert(loc + "?" + entityName);
parent.parent.location = loc + "?" + entityName;
alert(parent.parent.location.href);
values displayed by alert are not the same!!! parent.parent.location was not overwritten.

(I tried window.location=, window.assign(newUrl), parent.location.href, parent.location= .... none of it works, and I don't get an error message)

Is this expected behavior in ie7? Is this a security thing? Where is there information on this?

Thanks,
MR

Last edited by camer38; Apr 20th, 2007 at 14:33. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote