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

  • SEARCH
  • Home
  • 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 5944385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:31:48+00:00 2026-05-22T16:31:48+00:00

I know this question might appear be too localized but I can’t seem to

  • 0

I know this question might appear be too localized but I can’t seem to get this to work.

Here is the JSON my method returns:

{ "dateTime" : "5/26/2011",
  "requestTime" : 0.1020102,
  "users" : [ { "Email" : "joem@email.com",
        "Location" : "home",
        "Name" : "Joe M",
        "UserId" : "42a7eae4-d4fe-49a3-93df-cd0cf219ac95"
      },
      { "Email" : "test@test.net",
        "Location" : "Work",
        "Name" : "Test Name",
        "UserId" : "97a444fb-6e3d-482c-a966-dbd3e0c739c8"
      }
    ]
}

The jQuery I’m using is like so:

$.ajax({
type: "POST",
url: "Home/GetUsers",
data: dataString,
success: function (data) {                      
     $.each(data.users, function(i, item) {
          $("#results").append('<p>' + item.Name + '</p>');
     });
}

I either get undefined, or nothing happens.

I get Object object if I do an alert(data) so I know it’s returning something.

Obviously I’m doing something wrong here, so any help would be greatly appreciated.

Thanks!

  • 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-22T16:31:48+00:00Added an answer on May 22, 2026 at 4:31 pm

    alert(data.users) shows you undefined?
    Try adding dataType: ‘text’, and then do alert(data) and check you’re getting the right json :/

    This is working for me:

    var data = { "dateTime" : "5/26/2011",
                 "requestTime" : 0.1020102,
                 "users" : [ { "Email" : "joem@email.com",
                    "Location" : "home",
                    "Name" : "Joe M",
                    "UserId" : "42a7eae4-d4fe-49a3-93df-cd0cf219ac95"
                  },
                  { "Email" : "test@test.net",
                    "Location" : "Work",
                    "Name" : "Test Name",
                    "UserId" : "97a444fb-6e3d-482c-a966-dbd3e0c739c8"
                  }
                ]
               };
    $(data.users).each(function(i, item) {
        $("#results").append('<p>' + item.Name + '</p>');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this might seem a controversial question but it really is not meant
To a person skilled in programming, I know this question might seem ridiculous, but
This question might seem really silly to most of the enlightened folks here. But
I know this question might sound a little cheesy but this is the first
This might sound a bit of an odd question but I know what I
I know, this might be a very basic question but I am not 100%
i know this question might be asked before, but i want to make it
This question might appear very simple, but i haven't found an answer yet, so
I know this question might sound quite stupid, but I've tried my best and
This might sound like a silly question, but I need to know how 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.