Posted on 2011-10-04
Last Modified: 2012-05-12
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?
Question by:rgranlund
    LVL 42

    Accepted Solution

    Have you enforced the noConflict()??
    LVL 75

    Expert Comment

    by:Michel Plungjan
    Or conditionally load the mobile scripts depending on the browser being mobile or not
    LVL 107

    Expert Comment

    by:Ray Paseur
    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.
    LVL 75

    Expert Comment

    by:Michel Plungjan
    Isn't there a $ in jquery
    LVL 7

    Author Comment

    What type of function can offer the same functionality of hiding pages within the a page until that menu choice is chosen?
    LVL 75

    Expert Comment

    by:Michel Plungjan
    $("#divID").show() and .hide()

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now