Search

4/29/2008

Javascript MIME type - Anne’s Weblog

Javascript MIME type - Anne’s Weblog
今天再追一個bug, <script src="http://www.example.com/serv.php?userid=foo"></script>,不過ie一直不會執行該檔案的內容,那隻serv.php裡面一定要有header: application/javascript,雖然正確的 header 應該是application/x-javascript

First of all, the HTML specification suggests text/javascript and application/x-javascript is not supported by Internet Explorer.

沒有留言: