I need to make this data variable global:
data
$.ajax({ url: \"get_data.php\", cache: false, dataType: \'json\', data: {}, succes
Any variable can be "made global" by attaching it as a property of the window.
window.data = data;
You can now access data as a global variable.