Xurion Posted April 4, 2008 Share Posted April 4, 2008 Hi all, I've come across a problem where my window.open call tries to download the page instead of view it in a popup but only in IE. My popup is of an image, and the code is: <a href="" onclick="window.open(main_image.src, '', 'width=500,height=500,scrollbars=yes'); return false"><img src="image.php?property=57-vereda_front.jpg&w=300" name="main_image" border="0"></a> When you click on the image you get a request to save the image.php file. Is there something I am missing? Firefox opens the popup window fine. Thanks in advance. Xur~ Link to comment https://forums.phpfreaks.com/topic/99514-windowopen-executing-a-download-in-ie/ Share on other sites More sharing options...
nogray Posted April 4, 2008 Share Posted April 4, 2008 Check the headers of image.php Link to comment https://forums.phpfreaks.com/topic/99514-windowopen-executing-a-download-in-ie/#findComment-509335 Share on other sites More sharing options...
Xurion Posted April 7, 2008 Author Share Posted April 7, 2008 Check the headers of image.php Ok I think you've got it as there are no headers there. What headers should I input? Link to comment https://forums.phpfreaks.com/topic/99514-windowopen-executing-a-download-in-ie/#findComment-511058 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.