Introducing JSON
page 9 of 9
by Bilal Haidar
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 13779/ 351

Conclusion

In this article I introduced to you JSON. First, I started with a small introduction to JSON and the difference between JSON and XML. I explained in details what JSON is, discussing the JSON data types, showing how to generate JSON formatted data on the server, how to consume JSON on the client, and finally, a sample demo that combined most of the features you would need when using JSON as the main format of exchanging data between the client and server in an asynchronous way.

Make sure you visit all of the links I have mentioned throughout the article because they are essential for you to get a better understanding of AJAX and JSON.

Last but not least, I would like to send a special thanks to Anand Narayanaswamy, Chief technical editor, ASPAlliance.com and Chrisitian Wenz, author of Programming ATLAS, that Anand referred me to, who helped me solve a problem related to IE7. According to Christian, IE7 does not recycle the existing instance of the XMLHttpRequest object and, therefore, the instance should be reinitialized at every new request.

Hope you enjoyed this article!!

Happy AJAXing!!


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 8 and 6 and type the answer here:

User Comments

Title: Re: IE7 issue   
Name: Martin
Date: 4/4/2008 2:10:49 AM
Comment:
Ok, but what can I do to make it work in IE7 ? I tryed to set postRequest = null; in the GetEmployeeDetails() method but then it turns back with an error ?
Title: Re:   
Name: Bilal Haidar [MVP]
Date: 4/4/2008 2:04:17 AM
Comment:
This is not a problem in the code! I once asked about that and they said it is an IE issue!! Didn't check later what they have done to solve it!

Thanks
Title: IE7 issue   
Name: Martin
Date: 4/4/2008 1:42:19 AM
Comment:
Hi,

I just downloaded the demo app and tested it in IE7 and when i select an "employee" from the dropdown list it shows up as expected, but when I try to choose another one from the dropdown nothing happens, is there an bug in the code ?
Title: Re:   
Name: Bilal Haidar [MVP]
Date: 5/19/2007 2:41:45 AM
Comment:
Yes it is :)

Regards
Title: Where is Jason?   
Name: AbsCoder
Date: 5/18/2007 6:16:26 PM
Comment:
Thanks for the article; good stuff. In the article you make mention twice of "great JSON DLL that is called Jason.NET". Perhaps, I'm dense, but I can't seem to locate said DLL. Do you mean Newtonsoft's Json.NET library? Again, thanks for your contribution to the community!






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 7/4/2008 5:42:36 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search