Results 1 to 2 of 2

Thread: Dynamic Ajax Content - loading content in parent page DIV - How???

  1. #1
    Join Date
    Jan 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content - loading content in parent page DIV - How???

    I am using Dynamic Ajax Content to load an external html doc with a gallery of images.

    When I click an image from this external html doc, I want to load info into an iframe that exists on the main/parent page. Instead, I am getting the typical getElementById has no properties.


    This is the function from the [head][/head] of the parent page that displays the iframe:

    Code:
    function showMyOrder(carthref)
      {
    document.getElementById('myorder_hidden').style.display = "block";
    frames['MyOrder'].location.href= carthref;
      }
    I undertstand that for the external html doc, the iframe MyOrder from the parent page does not exist... but is there a workaround to this?




    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    Last edited by artguy101; 06-09-2008 at 12:32 PM.

  2. #2
    Join Date
    Jun 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you have any luck in finding the answer? I also just wanted to confirm that the issue I am having is the same.

    If I load a page into the div element, then want to click a link on the loaded page to load a different page in this same element, the script can't find the div object by it's id (because it belongs to the parent, not the page that was loaded I assume).

    Is that where you are at as well?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •