From: <ts...@ep...> - 2002-12-16 00:21:45
|
I think you'd have to find a very old browser version to make this script work ;-) You're right, this is as permission problem - and I don't think there is a solution to it. If there was you'd be able to a sneaky "sniffer"-script which could report sensitive informatioin back to whoever wrote the script... But if someone does know how to solve the cross-frames problems, I'd also like to hear it! Regards, Thomas Søndergaard www.alternativ.dk ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...>; <dyn...@li...> Sent: Sunday, December 15, 2002 6:54 PM Subject: [Dynapi-Help] IFRAME cross-domain security permissions > Hello, > > I'm getting an Permission or Acess Denied error in IE > whenever I try to acess the document object of an > IFRAME who's location was set to load a page from a > different domain. > > Is there a solution to this problem? > > Here's a sample page that generates the error in IE: > > <html> > <head> > <title>IFRAME cross-domain test</title> > <script language="Javascript"> > function init(){ > var fr=window.frames["ifrm"]; > > fr.location.href="http://some-other-domain/index.html"; > window.setTimeout("testDoc()",2000); > } > > function testDoc(){ > var fr=window.frames["ifrm"]; > // If I try to access the document object or the > location object > // I get a Permission or Access denied error > var doc=fr.document; > alert(doc); > } > </script> > </head> > <body onload="init()"> > <iframe name="ifrm" src=""></iframe> > </body> > </html> > > > -- > Raymond Irving > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help |