Secure AJAX Server Scripts
View Single Post
12-06-2007, 02:46 PM
La Vida es Sueño
Join Date: Sep 2007
The specific issues arise when you begin to use JSON - which comes highly recommend nonetheless, because JSON is typically
Gmail was recently exposed as being susceptible to that kind of JSON hack. Thankfully, prototype not only offers a
for the handling of JSON files, but it also provides a
truly awesome function
for safely parsing the JSON data into an array.
I feel JSON is definitely the way to go. Although AJAX was naturally created to parse XML files, XML can be quite bloated for such a simple task. You just have to remember to also set the content-type of your JSON file to application/json. This can be done using PHP, or simply adding a new MIME type - maybe both:
I also wrote an article on using JSON with PHP which you may wish to take a read of
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
View Public Profile
Send a private message to Wildhoney
Visit Wildhoney's homepage!
Find More Posts by Wildhoney