problem with loading views in Internet Explorer - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: problem with loading views in Internet Explorer (/showthread.php?tid=67613) |
problem with loading views in Internet Explorer - DarkGhost - 03-15-2017 Hello. I am having a problem with viewing my website in Internet Explorer. There is seems to be a problem with my codes that force users to download a file instead of displaying the web page. My site is in Persian/Farsi language. but if you visit these pages in IE: http://findmatch.ir/player/login ORĀ http://findmatch.ir/tournament/all ,you will understand. Do you have any ideas ? I hope i haven't opened up a duplicated topic. Thank you. RE: problem with loading views in Internet Explorer - Narf - 03-20-2017 You may have better luck if you explained the issue instead of asking people to visit your site. RE: problem with loading views in Internet Explorer - DarkGhost - 03-20-2017 Sorry man. you are right. I found the problem but still i don't know why this line of code cause this problem. The problem is that i inserted PHP Code: $this->output->set_content_type('application_json'); in function __construct(); Do you know why this caused this ? RE: problem with loading views in Internet Explorer - Narf - 03-20-2017 Yep, 'application_json' is not a valid MIME type. 'application/json' is RE: problem with loading views in Internet Explorer - DarkGhost - 03-20-2017 (03-20-2017, 10:43 AM)Narf Wrote: Yep, 'application_json' is not a valid MIME type. 'application/json' also didn't work in IE 11. but text/x-json seems to work. |