开发者

Javascript suddenly stop working

Javascript suddenly stop working

I have asp.net project with Javascript code, i worked with Internet explorer 8, after i did finish the project i tried to run this proj开发者_高级运维ect on All other browser (Chrom, Firefox, Opera, Safari) and suddenly each of these browser are not run javascript.

I was supprised that after 1 minutes i went back to the Internet Explorer and is also not running javascript.

I don't know what the problem, I've tried to comment partial of my javascript and it is not work, and comment all the left javascript and it's still doesn't work.

I have very long JavaScript code vith collaboration with AJAX, i have tried to remove paragraph by paragraph and it still doesnt work, i have tried to remove All the java script and run only "Hello word" simple java script code that fire from click event and it does not work. Although with other pages it work fine (alse the same "Hello word" simple code, the problem causes suddenlt til this moment every thing work fine. I attached sample code from the javascript code, it doesent metter because my there is a lot of java script code. Thank you every one that response i willi appreciation your response ! By the way there is none error, except when i click the button the java script write "


Better use some some browser plugins/integrations for checking javascript error. Try firebug in firefox or developer tools in IE. If you are doubtful of the path taken by your web application, try Fiddler to check your site.

If there is a referencing problem in case of master page usage or url routing usage or other then you can reference the javascripts and css in the following manner:

<link rel="stylesheet" type="text/css" href='<%= ResolveUrl("~/css/style.css") %>' />
<script type="text/javascript" src="<%= ResolveUrl("~/js/jquery-1.3.2.min.js") %>"></script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜