2013年4月17日 星期三

jQuery ajax() Function

ajax() function provides extra control over making Ajax calls to a server, there are several properties can be defined in JSON format, for example:

url

contentType

data

dataType

success

error

type (GET or POST)

image

 

Demo Example:

WCF Web Service code

image

Customer class

image

OperationStatus class

image

image

Output Result

image

Fiddler Result:

image

 

Addition Note:

http://api.jquery.com/jQuery.ajax/

image

沒有留言:

張貼留言