for loading of diagram i am passing json file name to getjson method that is hard coded,but i want it to be dynamic, means when we pass json file name dynamically at run time, it should load that json file and generate diagram.
LoadJsonData(“audit_GetLog_1.json”);\- how can we paas this parameter dynamically.
function LoadJsonData(total) {
jQuery.getJSON(total, loadjson);
//jQuery.parseJSON(total, loadjson);
}
function loadjson(jsondata) {
// create the model from the data in the JavaScript object parsed from JSON text
nodeDataArray1 = jsondata["nodeDataArray"];
linkDataArray1 = jsondata["linkDataArray"];
myFunctionmain();
init();
}