chasethemetal Posted December 9, 2011 Share Posted December 9, 2011 This ties into a topic I started in the PHP forums here var jsonData = null; var jsonDataResult = $.ajax({url: "process.php",dataType: "json",async: false,success: (function(data) { jsonData = data; })}); The php file is outputing this [ ["Date","Count1","Count2"],["12/09/2011",11,17], ["12/08/2011",23,55] ] The above code works. And I get my graph, now the question is. With ONE process.php file. How can I have multiple arrays being outputted with different data. And then in the jQuery above call that specific array set? Again any pointer and tips would be appreciated! Link to comment Share on other sites More sharing options...
chasethemetal Posted December 9, 2011 Author Share Posted December 9, 2011 A solution was found in my php topic that is related to this. Thanks to everyone! var jsonData = null; var jsonDataResult = $.ajax({url: "process.php",dataType: "json",async: false,success: (function(data) { jsonData = data.resultSet1; })}); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.