0

It's too wired problem. for some reason I need jquery mobile library in my project but when I add the following script to my view ,all server responses become json responses and I have no idea about it.

<script src="//code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.js"></script>

NOTE : I just added the script to my project and nothing else has been changed.

I'm using laravel 5.3 and jquery 3.2.1.my front end framework is bootstrap 3.3.7.

any idea guys?

blank94
  • 374
  • 3
  • 20
  • 3
    I would recommend not using jquery mobile alongside bootstrap. For more details as to why check out this post: https://stackoverflow.com/questions/18636919/can-i-use-bootstrap-3-together-with-jquery-mobile – whitwhoa Nov 27 '17 at 16:06
  • I would bet jQuery Mobile sets some defaults for `$.ajax`. – ceejayoz Nov 27 '17 at 16:07
  • @ceejayoz I guess so but I don't know what to do to prevent jquery to do such thing! – blank94 Nov 27 '17 at 16:10
  • 1
    As advised above, you really shouldn't use jQuery Mobile with Bootstrap. Pick one. – ceejayoz Nov 27 '17 at 16:11
  • Try to include jQuery mobile CDN on top of every js – Shubham Pokhriyal Nov 27 '17 at 16:30
  • Possible duplicate of [Can I use bootstrap 3 together with jQuery Mobile?](https://stackoverflow.com/questions/18636919/can-i-use-bootstrap-3-together-with-jquery-mobile) – deblocker Dec 04 '17 at 21:30

0 Answers0