문제

Can JQuery UI and JQuery tools work together? I.e. If I include both libraries on one page, will it still work?

도움이 되었습니까?

해결책

They can be used together. The problem is that there is a jquery.tabs created in both libraries. That conflict causes the second script to not load. You have to go to http://jquerytools.org/download/ to build a custom download and do not include tabs. I just had this problem and was able to resolve it by doing this.

The only downside is you can't use the CDN, since you're stuck downloading a custom JS file and including it in your site.

다른 팁

Yes, of course, but I don't know why you would want to

Yes it is possible. You have to load/include all the jQuery UI libraries[both js and css] before loading the jQuery Tools files. I faced the same problem as yours. Got it fixed by doing the trick.

You may also want to read through this thread which details how to rename the tabs function in one library or the other. I had a similar situation with two Wordpress plugins. One was using jQuery Tools and the other was using jQuery UI. Renaming the function in one library or the other (and then changing all the subsequent calls to it, of course) fixed my problem, although admittedly it is a little kludgey.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top