Last post Feb 20, 2018 03:09 AM by Cathy Zou
Feb 18, 2018 01:42 PM|csureshcse|LINK
I added java script in master page as follows:
When i trying to run in local IIS express is working fine without any error. But after published to IIS on windows server 2008 R2 is not loading jquery and java script files instead it shows as blank file without showing any error.
Feb 18, 2018 01:51 PM|mgebhard|LINK
The most likely cause is the src is wrong. Try referencing the files from the application root. The following code assumes the mater page head element has the runat="server" attribute.
You can figure this out on your own by opening the browser's developer tools (F12) and opening the Network tab. Refresh the page while viewing the Network tab and you'll 404 errors as the path is not correct.
Feb 18, 2018 02:12 PM|csureshcse|LINK
Yes. it is still not working in IE
Feb 18, 2018 03:20 PM|mgebhard|LINK
Feb 19, 2018 08:39 AM|csureshcse|LINK
this is what am getting error
Unhandled exception at line 2, column 29928 in http://localhost:56591/Content/js/jquery-2.2.4.min.js
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method
IE 8 only throws this exception. Chrome and other browsers doesn't throw any exception
Feb 19, 2018 09:00 AM|PatriceSc|LINK
If I remember starting with jQuery 2.x support for IE8 was dropped. Do you really have to support this one? You may have to downgrade to a previous version if you can. Or you'll have to take as a fact that IE8 is really outdated.
Edit: seems confirmed at
http://blog.jquery.com/2013/04/18/jquery-2-0-released/ : if you need IE8 support you are stuck to the lastest 1.x version.
Feb 20, 2018 03:09 AM|Cathy Zou|LINK
Make sure that you have added jQuery.min.js to the script bundle
If you still have problem, please see how Fixing Error: Microsoft JScript runtime error: Object expected: