I'm writing my first json/ajax code and I'm having a hard time wrapping
my mind around security issues.
I'm thinking of a json response that would look like this:
{"data":[
{"name":"name1" ,"street":"stre et1","zip":["zip1","zip2"," zip3"]}
,{"name":"name2 ","street":"str eet2"}
],
"instructions": {"function_to_e xecute":"some_f unction"}
}
and would be processed like this:
ajax=eval('(' + AJAX.responseTe xt + ')');
Now, I've been reading up on json but I can't quite make any sense out
of what the problem is. Is it accessing data on the server, or only
accessing data on the browser?
Is this a problem because of third party ads or extras that may be on
the page?
At the moment I'm just sending color and formatting information but I
suppose I'll want to do more later
Jeff
my mind around security issues.
I'm thinking of a json response that would look like this:
{"data":[
{"name":"name1" ,"street":"stre et1","zip":["zip1","zip2"," zip3"]}
,{"name":"name2 ","street":"str eet2"}
],
"instructions": {"function_to_e xecute":"some_f unction"}
}
and would be processed like this:
ajax=eval('(' + AJAX.responseTe xt + ')');
Now, I've been reading up on json but I can't quite make any sense out
of what the problem is. Is it accessing data on the server, or only
accessing data on the browser?
Is this a problem because of third party ads or extras that may be on
the page?
At the moment I'm just sending color and formatting information but I
suppose I'll want to do more later
Jeff
Comment