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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:28:50+00:00 2026-06-03T04:28:50+00:00

I have the following jQuery (info from here http://www.threelas.com/2012/02/basic-blogger-json-feed-api.html ). the problem i am

  • 0

I have the following jQuery (info from here http://www.threelas.com/2012/02/basic-blogger-json-feed-api.html). the problem i am having is returning the labels array which on the website above says is json.feed.entry[i].category[]; so how can i return an array?

http://jsfiddle.net/Pd2cp/

$.ajax({
    url: 'http://www.blogger.com/feeds/2814965631975331659/posts/default?alt=json-in-script&max-results=8',
    type: 'get',
    dataType: "jsonp",
    success: function(data){
        for (var i = 0; i < data.feed.entry.length; i++){
        var categories = data.feed.entry[i].category[];
        $('#blogContainer').append(categories);
        }
    }
});​
  • 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-03T04:28:52+00:00Added an answer on June 3, 2026 at 4:28 am

    I edited your JSFiddle. Here are the changes:

    • Use the callback parameter in the query with a value of ? to tell jQuery to assign it’s callback here.
    • You need to insert something when using brackets ([]), or you’ll get a syntax error. As you wanted to have the whole Array, I removed the brackets.
    • You should cache jQuery calls
    • I changed the behavior to loop though all categories and appending it’s term value to the container.

    The remaining “problem” is a comma at the end which can probably be removed.


    edit: I created a second fork, which also removes duplicates, sorts all categories and accesses the DOM only once. Besides, there are no overlapping commas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following a tutorial from here: http://www.shopdev.co.uk/blog/cookies-with-jquery-designing-collapsible-layouts/ This is the script I
I have the following JQUERY code that I'm expecting to return 3 json results
I have the following situation. From an application located in https://subdomain.mydomain.com I am trying
I have the following markup and want to place 'here is my info' after
I am at a loss here with some simple jQuery. I have the following
I have the following example: http://jsfiddle.net/LAMdV/ HTML: <div id=imageSlider> <span class=info id=info1> hello world
I have the following jQuery code (I have changed names of div and functions,
i have the following jquery code. basically i will have several overlapped divs and
I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call
I have the following jQuery: $(document).ready(function () { $(.element).draggable(); $(.element).droppable({ drop: function () {

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.