>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

JavaScript serialization in ASP.NET AJAX Part 2 - object json create method aspnet javascript ajax type

 
Registered tutorials: 501
Registered Users: 33128



Rating: 0 out of 0 votes cast


  
Category: Ajax and .NET

JavaScript serialization in ASP.NET AJAX Part 2

Digg this   Post to del.icio.us

Abstract: The article shows how to do something practical with JSON data in ASP.NET AJAX.

You know that JSON is a "stringified" version of an object, and you know that this stringified version is used to preserve the object across boundaries where raw, binary data transmission is not practical (or possible). However, one thing I didn't really touch on, and so I'll now explain, is exactly why someone would transmit an object to some other environment anyway. Objects are nice ways to not only pack functionality, but also state - so in the case of browser-based programming, for example, you could easily see yourself creating an object that represents the behavior of a button element, setting some state (such as color, what happens when the button is clicked, etc) and sending it down to the client. So, the reason you'd do such a thing as send an object down to the client is because that object represents state and functionality specified by you on the server; once downloaded to the client browser it can then be used to reflect that state to elements within the browser in a nice, packaged form.

Let's step back a bit and make up a quick example.

Say you have a DIV tag on your page and this DIV tag is to do something when you click it. You could set the div tag's onclick handler to run some kind of javascript:

<div id='mydiv' onclick='doSomething();"/>


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 18
Unique Hits: 16


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0 0 1 1.2
Current 0 0 0 0 0 0
Previous 0 0 0 0 0 0
Nov 29 0 0 0 0 0 0
Nov 28 0 0 0 0 1 1
Nov 27 0 0 0 0 4 4
Nov 26 0 0 0 0 1 1
Nov 25 0 0 0 0 0 0
Nov 24 0 0 0 0 0 0
Nov 23 0 0 0 0 4 6
Nov 22 0 0 0 0 0 0
Highest 2 2 2 3 4 6


Script Execution Time: 10.64216 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2