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

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

HTML 5

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?
0
rgranlund
Asked:
rgranlund
1 Solution
 
RobOwner (Aidellio)Commented:
Have you enforced the noConflict()??

http://api.jquery.com/jQuery.noConflict/
0
 
Michel PlungjanIT ExpertCommented:
Or conditionally load the mobile scripts depending on the browser being mobile or not
0
 
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.
http://php.net/manual/en/function.get-browser.php

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.
0
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
?
0
 
rgranlundAuthor Commented:
What type of function can offer the same functionality of hiding pages within the a page until that menu choice is chosen?
0
 
Michel PlungjanIT ExpertCommented:
$("#divID").show() and .hide()
0

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