[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:


I have started to learn HTML 5.  One of the cool things is the way when you are using HTML 5 with the jquery mobile library you can have many "pages" on one page through the <div data-role="page" id="home"> etc...  I like how it only shows the page requested.  I have tried to use this on my regular website but the jquery mobile seems to mess with or break when used with other javascript.  Does anyone know how to make jquery mobile not interfere with any other script?
1 Solution
RobOwner (Aidellio)Commented:
Have you enforced the noConflict()??

Michel PlungjanIT ExpertCommented:
Or conditionally load the mobile scripts depending on the browser being mobile or not
Ray PaseurCommented:
Agree with Michel.  You can detect the browser in $_SERVER["HTTP_USER_AGENT"].  You can learn more about that by reading this page.

That said, you probably do not want to use the function.   Just write your own.  The "browscap.ini" file may be something you do not want to load very often.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Michel PlungjanIT ExpertCommented:
Isn't there a $.browser.mobile in jquery
rgranlundAuthor Commented:
What type of function can offer the same functionality of hiding pages within the a page until that menu choice is chosen?
Michel PlungjanIT ExpertCommented:
$("#divID").show() and .hide()

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now