0

I am developing small mobile app which requires a header in the page. I am using html5 with below code but i did not get header and theme also not working. My code is mentioned below

Script:

<meta name="viewport" content="width=device-width, initial-scale=1"> 
    <script type="text/javascript" charset="utf-8" src="cordova-2.4.0.js"></script>
    <script type="text/javascript" charset="utf-8" src="OptionsMenu.js"></script>
    <script type="text/javascript" charset="utf-8" src="jquery.mobile-1.3.2.min.js"></script>
    <script type="stylesheet" src="jquery.mobile-1.3.2.min.css"></script>
    <script type="text/javascript" src="jquery-1.10.2.min.js"></script>

Html:

<div data-role="header"  data-theme="b">
            <h1>
              Gps Coordinates
            </h1>
 </div>
7
  • did you stored those headers in local? did you included those js files in js directory? Commented Dec 3, 2013 at 6:30
  • Yes I included all the js files in same folder where my html file is located. Commented Dec 3, 2013 at 6:32
  • chat.stackoverflow.com/rooms/11300/phonegap-framework Commented Dec 3, 2013 at 6:33
  • add 'js/' before your source. Commented Dec 3, 2013 at 6:34
  • Thanks for replay, But There are no sub folder for js files all are in same folder (Html and js files). So /js is not required right ? Commented Dec 3, 2013 at 6:39

1 Answer 1

0

did you followed the pattern of devloping a proper mobile app page? like :

 <div data-role="page" class="jqm-boilerplate">
            <div data-role="header" data-position="fixed" class="jqm-header" data-tap-toggle="false" >
                <!-- main header -->
                </div>
        <div role="main" class="ui-content jqm-content"
                data-overlay-theme="a">
                </div>
<div data-role="footer" data-position="fixed"
                data-theme="e" style="position: fixed;">
                </div>
 </div>

Can you create a jsfiddle for your code??????? Are the paths for jquery-mobile css correct??

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.