-
October 1st, 2010, 05:40 AM
#1
replace IFrame with AJAX
Hi all,
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
#2
Re: replace IFrame with AJAX
You'll have to dynamically create an <iframe> for the opened content.
PHP Code:
var tmpFrame = document.createElement('iframe'); // set the properties for tmpFrame... element.appendChild(tmpFrame);
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|