Solved

from json to table

Posted on 2014-02-16
3
194 Views
Last Modified: 2014-02-16
for ex let's say we have this data:
var data = {
      header: ["First Name", "Last Name"],
      rows: [
            ["The", "Pope"],
            ["Ronald", "Reagan"],
            ["George", "Bush"]
      ]
};

i'm having issues with the following:

i need code that will turn this into a table (Not using datatables but just a simple html table) and take into account a varying number of columns.

thanks
0
Comment
Question by:dgrafx
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
you will find many examples on the net to do this, here is one good examples:
https://github.com/afshinm/Json-to-HTML-Table
0
 

Expert Comment

by:mokaid83
Comment Utility
0
 
LVL 24

Author Closing Comment

by:dgrafx
Comment Utility
Thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now