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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:39:51+00:00 2026-05-24T01:39:51+00:00

I am trying to display JSON data that I retrieve from an ajax call

  • 0

I am trying to display JSON data that I retrieve from an ajax call but I am unable to display any data despite getting the JSON object just fine.

<!DOCTYPE html>

<head>
<title></title>
<script src="jquery.js"></script>
</head>

<script>


$(document).ready(function(){
$.getJSON("http://servername:10000/_vti_bin/webservice/service1.svc/getListTitle",
  {
    username: "a",
    password: "b",
    list: "calendar",
  },
  function(data) {
    alert(1);
    // and the rest
  }
)
});

</script>

<body>
</body
</html>

I don’t get any alerts but using Fiddler I can see the JSON object.

{"GetListTitleResult":"Calendar"}

So what am I missing here? Any help appreciated. Thanks in advance.

EDIT: It seems like the code doesn’t go all the way to the function(data) part. But firebug doesn’t show any syntax errors either. I still get the JSON response through Fiddler. Any help here?

  • 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-24T01:39:52+00:00Added an answer on May 24, 2026 at 1:39 am

    Change your code this way –

    $.getJSON("http://servername:10000/_vti_bin/webservice/service1.svc/getListTitle",
    {
        username: "a",
        password: "b",
        list: "calendar",
    },
    function(data)
    {
        $.each(data, function(i,item)
        {
            alert(item);
        });
    });
    

    In my opinion, these are the following mistakes that you’ve made –

    1. Since data itself will be a collection, you don’t need to get data.items. Just pass the data as is to the each function.
    2. The callback of the each iterator will be passed the key and the value for each item in the collection. Hence, i will be GetListTitleResult, and item will be Calendar.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to pull data into flash using JSON but i keep getting this
I'm trying to use jQuery.post() function to retrieve some data. But i get no
I am trying to display the text from json in a list view. I
I have a page that displays data from an object. I'm loading the object
I am trying to retrieve some data from a database using jQuery's $.getJSON method
I tabController app with uitableview getting NSURLconnection data and trying to display it. I
I am trying to display a Fancybox gallery with data that gets loaded via
I am trying to find a way to load a JSON page to display
When trying to display a byte stream from HLDS (Half-Life Dedicated Server) in a
I've been trying to display text using a Quartz context, but no matter what

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.