View Full Version : Dynamic Ajax Content - loading content in parent page DIV - How???

06-09-2008, 12:18 PM
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 of the parent page that displays the iframe:

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?


06-10-2008, 02:06 AM
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?