Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Iframe Permission Denied
- From: javascript at mattbarton.org (Matt Barton)
- Subject: [Javascript] Iframe Permission Denied
- Date: Thu Aug 25 08:55:11 2005
Well, it strikes me that you really ought to be able to do that, but I'm afraid I don't know for definate that you can. I'd normally have a little investigation into something like that, but I'm far too busy with work and listening to Test Match Special to fit it in, sorry. Matt SkyScanner wrote: > So is there no way for javascript to load a new page into an Iframe? I am > already displaying a page from a remote site in my Iframe. > > http://www.mapability.com/ei8ic/aprs/ireland/ei_aprs.html > > It is the table, lower down the page. Here is the initial link: > > <div id="aprs"><iframe > src="http://www.findu.com/cgi-bin/oldnear.cgi?left=-11&right=-5&top=56&botto > m=51" width="100%" height="600" frameborder="0" marginwidth="0" > marginheight="0"></iframe></div> > > I need to load a new page from the same remote site into that Iframe when a > form button has been clicked and some javascript has constructed the new > URL. > > Tim in Ireland. > > ----- Original Message ----- > From: "Matt Barton" <javascript@xxxxxxxxxxxxxx> > To: "[JavaScript List]" <javascript@xxxxxxxxxx> > Sent: Thursday, August 25, 2005 11:11 AM > Subject: Re: [Javascript] Iframe Permission Denied > > > >>Am I right in thinking that JavaScript prevents two frames which are >>displaying content from different domains from interacting? >> >>It wuld seem to be a reasonable security limitation if so. >> >>Matt >> >> >> >>SkyScanner wrote: >> >>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> >>><html><head> >>><meta content="text/html; charset=windows-1252" http-equiv=Content-Type> >>></head> >>><body> >>> >>><div id="elem01"><iframe src="http://www.yahoo.com" width="100%" >>>height="300" name="table1"></iframe></div> >>> >>><SCRIPT LANGUAGE="JavaScript"> >>>alert('I am pausing. Click me when the page loads...'); >>>table_url = 'http://www.google.com'; >>>table1.src = table_url; >>></script> >>> >>></body> >>></html> >>> >>>When running the above, the Yahoo page loads into my Iframe OK, but > > after > >>>clicking on the alert, instead of the Google page loading, I get an > > error > >>>'Permission denied'. >>> >>>How can I fix this, please? >>> >>>Tim in Ireland >>> >>>_______________________________________________ >>>Javascript mailing list >>>Javascript@xxxxxxxxxx >>>https://lists.LaTech.edu/mailman/listinfo/javascript >>>-- >>>This email has been verified as Virus free >>>Virus Protection and more available at http://www.plus.net >>> >> >>_______________________________________________ >>Javascript mailing list >>Javascript@xxxxxxxxxx >>https://lists.LaTech.edu/mailman/listinfo/javascript >> > > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net >
- Follow-Ups:
- [Javascript] Iframe Permission Denied
- From: SkyScanner
- [Javascript] Iframe Permission Denied
- References:
- [Javascript] Comparing Strings
- From: Timothy White
- [Javascript] Iframe Permission Denied
- From: SkyScanner
- [Javascript] Iframe Permission Denied
- From: Matt Barton
- [Javascript] Iframe Permission Denied
- From: SkyScanner
- [Javascript] Comparing Strings
- Prev by Date: [Javascript] Comparing Strings
- Next by Date: [Javascript] Comparing Strings - Correction
- Previous by thread: [Javascript] Iframe Permission Denied
- Next by thread: [Javascript] Iframe Permission Denied
- Index(es):