adam84 Posted January 18, 2008 Share Posted January 18, 2008 Hi, The user clicks a button and a page loads using ajax into a DIV tag(call it 'masterContentDIV'). The new page that loads is made up of a table with two horizental cells. In each cell I have an IFRAME that links to a different page. In one of the IFRAMES I have a link to load something new into the 'masterContentDIV' tag which would get rid of the two IFRAMES. But once I click the link, I get an error "document.getElementById(...) is null or not an object". Is it possible to do what I am doing??? Would it would correctly if I used a frames instead??? Link to comment https://forums.phpfreaks.com/topic/86590-stuck/ Share on other sites More sharing options...
phpQuestioner Posted January 18, 2008 Share Posted January 18, 2008 you need to use the code below to access your main page from your iframe page: parent.document.getElementById('whateverDIVnameIShere').innerHTML Link to comment https://forums.phpfreaks.com/topic/86590-stuck/#findComment-442516 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.