Monthly Archive:: December 2013

Iterate through nested JSON Data using javascript

Below is the code used: <!DOCTYPE html> <html> <head>     <script src=””></script>     <meta charset=”utf-8″/>     <title>JS Bin</title> </head> <body>     <div id=”output”>     </div>     <script>         (function () {             var myobj = {                 obj1: { key1: ‘val1’, key2: ‘val2’ },                 obj2: { key1: ‘2val1’,                     key2: { nest1: ‘val1’, nest2:

Iterate through json array using javascript

Javascript Array: var myArray = {“artists”:[{             “a1”:“Adam Sandler”,             “a2”:“Adam Lambert”,             “a3”:“Avril Levine”,             “a4”:“Backstreet Boys”,             “a5”:“Blackstreet”,             “a6”:“Black Eye Peas”,             “a7”:“Cool and the Gang”,             “a8”:“Chicago”,             “a9”:“Charlie Manson”         }],         “songs”:[{             “s1”:“Grow Old With You”,             “s2”:“Whatdaya Want From Me”,             “s3”:“Yea yea”,             “s4”:“Quit Playing Games

How to create table in sql server 2008

In this article i am going to explain about how to create table in sql server 2008. “Create Table” Statement is uesd to create table in sql server. In sql server tables are organised as rows and columns.And each column will have name and the datatype it accepts. So creating table in sql server we