phorcon3 Posted March 23, 2008 Share Posted March 23, 2008 alright ...so, i created a popup window.. and what ive done is the following php file (http://www.domain.com/example.php): <a href="javascript:void(0);" onClick="cp('div_id');">popup</a> and my js file creates a div within my php file... and within that div tag i have an iframe ..which is connected to http://www.domain.com/popup/popup_win.php but the problem is... i have a cancel button in this popup_win.php file ...but i cannot close the popup window, because its in the iframe ..and not the example.php file... so when i click this button it just gives back an error.. is there any other way to close an iframe which is opened within another file? or could i load an external html/page file? and have a js script, such as document.getElementById('div_id').innerHTML = and here load the external file somehow? any ideas? i hope this makes sense... Link to comment https://forums.phpfreaks.com/topic/97502-load-htmlphp-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.