replace IFrame with AJAX
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: replace IFrame with AJAX

  1. #1
    Join Date
    Sep 2010

    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

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002

    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...
    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center