October 1st, 2010, 05:40 AM
replace IFrame with AJAX
I'm trying to replace an IFrame with a DIV controlled by AJAX. All the examples that I found allow to replace the div content with some html page from the same domain, but the problem comes when a link is clicked inside the DIV: the page opens in the main window, but I want it to be contained inside the DIV.
Can anyone help me with this?
Thanks in advance
October 1st, 2010, 09:40 AM
Re: replace IFrame with AJAX
You'll have to dynamically create an <iframe> for the opened content.
var tmpFrame = document.createElement('iframe');
// set the properties for tmpFrame...
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.