iframe inside panel - firefox
- I am trying to access the contents of an iframe (viewed with Firefox),
which is inside a panel that I call dynamically. On a test page I
tried something similar and it worked..but inside my panel it's not
I have used the following code to access the iframe's contents:
You can have a look at the sample page on this ip:
Just type a query and then click to any of the results to open the
panel. if you press the ESCAPE button to close the panel then two
alert messages are activated. The first one is notifying that a second
message should follow that shows the content of the iframe (as you can
see in the code above)..but no second alert box appears...Any ideas on
- Sorry, but I forgot to leave the server on; therefore the url that I
posted wasn't accessible. I'll make sure I leave it running for 1-2
days, starting from today...
- I have dealt with content reloading in the iframe. However, in order
to highlight text inside the page that's dynamically loaded in the
iframe I need to get the html content of that page first. That usually
works with something like:
var iframeContent =
However, I noticed that this works only for pages that have been
stored locally. For example, if I set my iframes src="test_page.htm"
(test_page.htm is an html page that I have saved on my desktop) than I
can successfully retrieve the html content of that page, process it
(that is highlight the words that I want) and reload it in the iframe.
If I enter as a source page a url (e.g.
http://www.cbvcp.com/c2/madonna.html) then I get nothing. It's like I
don't have access to that page and can't retrieve its html code, even
though I can load the page inside my iframe.
Any ideas on that?