Click to See Complete Forum and Search --> : Iframe Address Bar - any ideas?


donatello
06-18-2008, 09:40 AM
I want to put an address bar beneath an iFrame which contains dynamic content.
The address bar will display the URL of the iFrame content page.

-------------------------------------------------------------------------
Background:

I have a site where I have embedded searches into an iFrame. The users may then elect to do more research on the URL they found - unfortunately, they cannot see it in the address bar, as the content is within an iFrame.

I have a menu across the top of the iFrame that changes the iFrame content... that was easy.

What I want to do:
I would like to have a small address bar beneath the iFrame.

This way, when users find a page they like, they can copy the URL and then use it to research the site they found.

The site is here: www.web-cam-search.com (http://www.web-cam-search.com) . When users find a webcam, it very often does not have any identification on it, and they must figure out where it is. I have put resources on the page to do this, but you will need the URL.

An iFrame address bar would solve this issue very neatly, but I'm not sure if it is possible due to security issues.

ray326
06-18-2008, 10:31 PM
I may be missing something but can't you just use the DOM to read the iframe src and display it in a header below the iframe?

donatello
06-26-2008, 03:12 PM
I may be missing something but can't you just use the DOM to read the iframe src and display it in a header below the iframe?

No, I've since found out that it will only work for pages on the same domain due to security.