Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6792353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:57:31+00:00 2026-05-26T17:57:31+00:00

While I’m a bit of a dab hand in php, I’m stumbling my way

  • 0

While I’m a bit of a dab hand in php, I’m stumbling my way through a JQuery Mobile project via Phonegap for an iOS app. So getting my head around javascript (quickly) has been challenging. Managed to solve most problems mostly with the help of the good folk here, so thought I’d ask this one which I can’t find a solution for.

I have a list which is generated from an ajax request (summary with a heading and short description), with the full detail being stored in an SQLite DB for offline use. I’m wanting to open a dialog with the full detail on click. JQM’s data-rel dialog is a breeze for static pages, but I can’t figure a means to send the dialog page an index parameter to pull the data from the DB. Once I get the parameter down to the “page” I’m pretty confident pulling the data and replacing the DOM elements, so the short question is how do I send the index parameter from the list to the dialog page?

Thanks heaps in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:57:32+00:00Added an answer on May 26, 2026 at 5:57 pm

    You can, in your list (I am assuming data-role="listview" here), build the links that represent clickable elements:

    <ul data-role="listview">
        <li>
            <a href="dialog.html?id=someId" data-rel="dialog">Show details</a>
        </li>
    </ul>
    

    where you insert someId dynamically when you create your list.

    In dialog page you parse your URL and get the ID.

    Update

    The following confirmed as working in Safari (on my desktop):

    <a href="dialog.html?id=someId" data-rel="dialog">Show details</a>
    

    and the usage would be:

    $.mobile.path.parseUrl($(this).data('url')).search
    

    which would contain the following string:

    ?id=someId
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While going through university and from following the development of SO, I've heard a
While trying to send a POST request via xmlhttp.open(POST, url, true) (javascript) to the
While reading codes of my group project, I come across many DEFINEs, and some
While going through the checkBox I found there is written CheckBox checkbox = (CheckBox)sender
while reading cocoa fundamental guide i have gone through: (void)addObserver:(id)notificationObserver selector:(SEL)notificationSelector name:(NSString *)notificationName object:(id)notificationSender
While working with some jQuery ajax, I've run into this problem with Chrome and
while i'm using push notification in iphone with local server(used php), not able to
While Ive seen plenty of examples in PHP, can't seem to find one in
While using jQuery's autocomplete, I've noticed that characters & and ' are escaped as
While googling how to convert a BIT (YESNO) column in an access database to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.