Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

jquery mobile #someLink not working in android browser

  • 11-07-2013 11:57PM
    #1
    Registered Users, Registered Users 2 Posts: 3,516 ✭✭✭


    i am creating a basic html5 jquery mobile webpage that uses 3 jquery mobile pages where users can navigate to depending on the href they click on.

    in the safari and google chrome web browser this feature works perfect i.e it will load the correct page using:
    <li>
            <h3>Type:</h3>
            <h4><a href="#itemTypeList" data-role="button" data-icon="arrow-r" data-iconpos="right">Select Type</a></h4>
          </li>
    
    In this case it will load #itemTypeList page that is inside the same html5 file as the above code that invoked the web request call.


    For some bizare reason this call does work on an android webview. It never displays or even attempt to display the #itemTypeList page

    here is the itemType page
    <div data-role="page" id="itemTypeList">
          <div data-role="header" data-inset="true" data-position="fixed" data-theme="b" > <a href="" onclick="history.back(-1); return false;">Back</a>
            <h1>Item type</h1>
          </div>
          <div data-role="content">
            <ul data-role="listview" data-inset="true"  data-scroll="true" id="itemtypeList">
              <li><a href="hello1.html">hello 1</a></li>
              <li><a href="hello2.html">hello 2/a></li>
            </ul>
          </div>
        </div>
        </div>
    

    And here is the original content page that gets displayed initially
    div data-role="page" id="mainPage">
          <div data-role="header" data-inset="true" data-position="fixed" data-theme="b" > <a href=""  onclick="history.back(-1); return false;">Back</a>
            <h1><span style="margin-left:1em">Item Detail</span></h1>
          </div>
          <div data-role="content">
            <ul data-role="listview" id="itemFieldslist" data-inset="true"  data-scroll="true" >
              <li data-role="list-divider">
                <h2>Item Detail Title</h2>
              </li>
              <li>
                <h3>Type:</h3>
                <h4><a href="#itemTypeList" data-role="button" data-icon="arrow-r" data-iconpos="right">Select Type</a></h4>
              </li>
              <li>
                <h3>Some Field</h3>
                <h4>e3e3e3e</h4>
              </li>6
            </ul>
          </div>
        </div>
    

    Thanks


Advertisement