Is there some big secret to setting array or variable values within a function for global access?
I'm using jQuery's getJSON() to return rows from our database. I then loop through and format the values there-in for display. my problem is I need to access this information later in the script.
I've omitted the var keyword before declaring the value and tested window.string to no avail
How can I achieve global scope for an array or indeed variable from within a function?