Hi.
(this topic is related to NODE-GUI development BTW..)
Been fiddeling with Jquery getJSON a little and have some quiries.
I have quite a large configuration data that needs to be hardcoded.
Basically info concering each node that cannot be created
dynamically.
Normally I suppose I could just store it into a simple JS object, but during a session
it is not likely all nodes from that library would get used. There could be hundreds+!
So it seams like waste of energy for the browser caching all that..
So I tried to store a config.json in the source folder and use
Jquery.getJSON() and it seams to be working fine. Something like:
$.ajaxSetup({ cache;false });//prevent from caching the whole file
$.getJSON("JSON/myjson.json", function(data){
// traverse data here and store in variable or whatever..
}
Now off course I'm wondering if this is a safe way off doing things or could run
into browser specific trouble or security_policy breaches. I don't think I'm violating
the same origin policy?
Been googeling the subject quite hard but doing this is in Sketchup and it's enviroment
is so specific it's quite hard to relate.
Maybe I'm overcomplicating this. Just store that damn thing in a object 
NOTE: I'm only Reading the JSON, not storing any data.
Also I have considered the issue of error check for valid JSON.
for actually paying someone doing a job.

