teng84 Posted June 16, 2008 Share Posted June 16, 2008 hi how can i read the content of an i frame i want to access the content of that i frame to use in other function <iframe id="myHeaders"src="http://thepiratebay.org/ajax_details_filelist.php?show=1&id=4137201" > any thoughts? Link to comment https://forums.phpfreaks.com/topic/110403-read-the-content-of-an-iframe-genrated-by-ajax/ Share on other sites More sharing options...
rhodesa Posted June 16, 2008 Share Posted June 16, 2008 For security reasons you can't access the content of iframes that are on a different domain with JavaScript. You have to set up an intermediary server side script (like PHP) to read the contents and return it to you. Link to comment https://forums.phpfreaks.com/topic/110403-read-the-content-of-an-iframe-genrated-by-ajax/#findComment-566502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.