Yash Mosara
Yash Mosara

Reputation: 9

Jquery Mobile conflict with other javascript

i am working on my mobile site there is a jquerymobile script, is conflict with other libraries.

  <script src="/js/jquery.js"></script>
<script src="/js/all.js"></script>  
<script src="/js/jquery.dainer.js"></script>
<script src="/js/commoncripts.js"></script> 
<script src="/js/cart.js"></script> 
<script src="/ui/jquery.js"></script>  
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script> 
<script type="text/javascript">
    objl10n = <#tag:js_translated_messages /#> ;
</script>   

all function working without this script. here is my site : http://bit.ly/1ETOzRf ...

please guide me,

Upvotes: 0

Views: 1115

Answers (1)

Badr Hari
Badr Hari

Reputation: 8384

You can't use jquery mobile and jquery UI without using noConflict mode. Even doing so they don't play well with each other, you will always have some class conflicts etc.

You shouldn't use jquery ui, jquery and jquery mobile all on same page, do you really need them all?

Learn more from here: http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

Upvotes: 1

Related Questions