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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:02:15+00:00 2026-06-07T13:02:15+00:00

i try to develop a little web calendar. The user get a week overview

  • 0

i try to develop a little web calendar. The user get a week overview and if he push ‘show me next week’, the next 7 days should be loaded asynchronous with jQuery. The JSON-data looks like:

{
   "user":[
      {
         "id":"12345",
         "days":{
            "09-07-2012":{
               "10:00":{
                  "time":"10:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "11:00":{
                  "time":"11:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "12:00":{
                  "time":"12:00",
                  "length":"30",
                  "appointmentid":"159487"
               }
            },
            "10-07-2012":{
               "10:00":{
                  "time":"10:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "11:00":{
                  "time":"11:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "12:00":{
                  "time":"12:00",
                  "length":"30",
                  "appointmentid":"159487"
               }
            },
            "11-07-2012":{
               "10:00":{
                  "time":"10:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "11:00":{
                  "time":"11:00",
                  "length":"30",
                  "appointmentid":"159487"
               },
               "12:00":{
                  "time":"12:00",
                  "length":"30",
                  "appointmentid":"159487"
               }
            }
         }
      }
   ]
}

How i can process these data and display it in a html table? With jQuery function i can only walk throw the 2nd dimension … so i only get id and days …

$.each(data.user, function(i,data){
...
}

So how i can walk throw the whole array and fill my ui with the data? Should i use nested each functions?

Greets
Thomas

  • 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-07T13:02:19+00:00Added an answer on June 7, 2026 at 1:02 pm

    Once it’s parsed, you can simply walk inside properties as what you have is a javascript object.

    In this specific case, you have maps inside maps.

    To iterate over the properties of this kind of object, use the for (var key in object) construct :

    Your user id is data.user.id

    for (var date in data.user.days) {
       var day = data.user.days[date];
       for (var hour in day) {
          var appointement = day[hour];
          // use the hour and appointement objects and their properties.
    

    I don’t know what size is this object you qualify of “big” but there is no problem (apart the download duration) in iterating over an object of a few MB.

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

Sidebar

Related Questions

i am try to develop a small application. Now should i organize my 3rd
For an ios app I try to develop, I need to get a listing
I try to develop my own little framework. For this, I'd like to read
I try to develop simple web service to liferay 6.1. I follow such manuals
I try to develop a web client gtalk in my http server.I know what
I try to develop an application for smartTV. I spend my two days really
i'm trying to develop a little web server in C++ but i have a
I have a quick little application and wanted to give a try to develop
I try to develop a simple web application, but to exclude all the possibilities
I try do develop a web application with ExtJs 4.0. On startup the application

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.