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 9311311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:19:55+00:00 2026-06-19T01:19:55+00:00

I have a PhoneGap / jQuery Mobile app that I am developing. I am

  • 0

I have a PhoneGap / jQuery Mobile app that I am developing. I am getting some strange results on script that I have used before.

$.ajax({type: "GET",
            url: "http://****.net/****/GetMembers.php",
            data: {get_param: "Member"},
            dataType: "json",
            success: function (data) {
                $.each(data, function (index, element) {
                    $("#members-content").append("<li><a id='members-a-" + element.ID + "' data-id='" + element.ID + "' href='#member-details'><img src='" + element.ImgURL + "' /><h3>" + element.Name + "</h3></a></li>");
                    $("#members-a-" + element.ID).bind('click', function () {Members.MemberID = $(this).attr('data-id'); MemberDetails.Load(); });
                    $("#members-content").listview("refresh");
                    });
           }
    });

JSON returned from webservice:

[{“Member”:{“ID”:1,”Name”:”Member 1″,”ImgURL”:null}},{“Member”:{“ID”:2,”Name”:”Member 2″,”ImgURL”:null}},{“Member”:{“ID”:3,”Name”:”Member 3″,”ImgURL”:null}},{“Member”:{“ID”:4,”Name”:”Member 4″,”ImgURL”:null}}]

In my #members-content list I am getting undefined for the <h3> name element.

  • 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-06-19T01:19:56+00:00Added an answer on June 19, 2026 at 1:19 am

    You’ve got a double-nested object there. You should be using

    element.Member.ImgURL
    

    e.g. look at the json:

    [
        {   <--element in your .each() loop
           "Member": {
               "ID":1,
               "Name":"Member 1",
               "ImgURL":null
           }
        },
        { etc...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some strange scrolling problems with my PhoneGap (using jQuery Mobile) app: I'm
I have a Phonegap App, using jQuery and jQuery Mobile. In some page I've
In my phonegap/jquery mobile app, the multi page model is been used. index.html have
I have a jQuery Mobile PhoneGap app that loads all of my pages fine,
I have a simple Android App using simple js, jquery mobile and phonegap that
I have a jquery mobile app that i am wrapping in Phonegap for Iphone/Android
We have a PhoneGap app, jQuery-based, that has some problems with touch events (
I have a PhoneGap App using jQuery Mobile. At a certain page, I cannot
i have some code using jquery mobile + phonegap and run it on my
I'm making an PhoneGap app using Jquery Mobile, but I have a little problem

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.