开发者

jQuery $(document).ready fires on one computer and not others

I have the following jQuery code (simplified for question purposes):

$(document).ready(function() {
    alert("Test");
});

Its inside a the of a .NET master page. This code fires on some of our computers but not on others. All users have the same version of IE and I also have tested this on Firefox with the same resul开发者_运维百科ts. All browsers have scripting enabled and stuff like that, at This point I don't know what else could be causing this issue. I am using jQuery version 1.3.2. Of course my real code is more interesting than what I posted, but if I cant get an alert to fire, then what use is the rest :)...

Any help is welcomed.

Thanks


Try

jQuery(document).ready(function(){
    alert("test");
});

If it doesn't work try adding a console.log(jQuery) for firefox or similar just before and see what that gives you when it fails.


If you are calling a localhost file are you sure all computers have access to the localhost server? Try changing it to:

<script type="text/Javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

And see if that works

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜