Home > Malo mešano > jQuery json

jQuery json

November 12th, 2009 Leave a comment Go to comments

JAVA:
  1. { "week": { "startDate" : { "day" : 22, "month" : 10, "year" : 2009, }, "endDate" : { "day" : "29", "month" : "10", "year" : "2009", }, "keyWords" : "173", "landingPagePath" : "61", "index" : "2.84" } }

 

JAVA:
  1. $.getJSON("GA_keywords_per_period.php?week="+i, function(json){ //alert("JSON Data: " + json.week.keyWords); data.addRows([ [new Date(json.week.startDate.year, json.week.startDate.day, json.week.startDate.month), parseInt(json.week.index), undefined, undefined] ]); chart.draw(data, {displayAnnotations: true}); });

 

http://www.hunlock.com/blogs/Mastering_JSON_%28_JavaScript_Object_Notation_%29

Categories: Malo mešano Tags:
  1. No comments yet.
  1. No trackbacks yet.

0 pages viewed, 0 today
0 visits, 0 today
FireStats icon Powered by FireStats