开发者

jquery files conflicts how to detect?

Q:i have a general problem ,when i wanna to do some thing and i find the jquery file which can do exactly what i wanna to do . after a while i need another case and i find that another jquery file serve me and fix my problem .after i add set of jquery files i find conflicts among those files and some features does not work or work in awkw开发者_开发百科ard manner ..and when i try to find which file exactly the source for those problems i find myself in closed circle cannot modify this file or cannot delete this file or cannot find that file itself at all.sometimes the file like this:

<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.js" type="text/javascript"></script>

cannot modify it.

the problem has many faces,and i cannot really know how to handle the whole matter from the beginning.

can any one give me instructions ,advices,notes, or explanation to prevent the problem from the beginning and how to fix it if it was happened.


Please have only one instance of Jquery Library. The library has the capability to solve the issues. Seperate instances or files will confuse the code. I hope this helps.


If you point your browser at http://jqueryjs.googlecode.com/files/jquery-1.3.js it will give you the JS file for you to download and save as your own copy. You can then change it as you want and link it in your website rather than use the one located at googlecode.com.


http://api.jquery.com/jQuery.noConflict/

This link suggests few of the ways to avoid the jQuery conflict. Please check that as it could give you some more idea to resolve your problem.

Regards, Lakxman Kumar C

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜