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??? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.