Debt Consolidation - Web Advertising - Article directory - Christmas Ecards - Articles directory

PDA

View Full Version : any way to open a web page and being transparent that it is not iframe'ed or framed?


winterheat
Oct 29th 2008, 1:38 pm
I wonder if we can open up a window / frame / or iframe so that the page loaded won't know that it is part of a frame or iframe...

i think using javascript, by

if (self != top) { top.location.href = self.location.href; }

or something like that, a page being framed or iframed can move itself back to the top page. (without being framed).

so is it true that as an iframe or an "old school" frame", the page can always detect it, unless we actually use window.open() to open up that page?

i think though, if we use w= window.open(' some where ') and then later use w.close() the browser will give you a prompt to say "do you want to close it" and i don't want so many prompts to accumulate on the screen.

I mainly want to refresh some info like every 5 minutes by refreshing the iframe's src by using javascript but some page seems to detect it is being iframe'ed and will move itself back to the top window. thanks.

rene7705
Nov 11th 2008, 4:37 am
I suppose you call a php file via AJAX that reads a URL for you, then returns the HTML to be displayed inside a normal DIV, not an IFRAME.
Most lightboxes i know also use IFRAMEs to display URLs, so you'll have to code something yourself..