PDA

View Full Version : cross domain iframe



bumasoft
Nov 26th, 2005, 09:21 AM
HI

I want to use a cross-domain iframe ( the content in the iframe is from my site, and customers will buy the right to use the iframe code on their sites ). The problem is that i have to pass some parameters to the parent window. This is not possible normally due to IE's security restrictions, but I made a P3P ( privacy policy file ) and now i can pass the parameters to the parent frame ( I actually change the parent's location to parent_url+ "?myparam=myvalue" ) ... The problem is that this only works on computers with Windows XP Service Pack 2 Installed ( thus on IE 6 SP2 )... Can someone give me some tips or some other solution that could make it work on other computers ? BASICALLY, ALL I NEED TO DO IS CHANGE THE PARENT FRAME LOCATION FROM WITHIN MY IFRAME!

I tried:
top.location=newlocation;
top.location.href=newlocation;
parent.location=newlocation;
parent.location.href=newlocation;

None of these work. They don't do anything and don't give errors. PLEASE HELP! IT IS URGENT!!!

pccode
Nov 26th, 2005, 09:16 PM
Try
parent.window.location.href
or
parent.window.content.location.href