Sunteți pe pagina 1din 4

AJAX [Asynchronous JavaScript and XML] Microsoft is provided XMlHttprequest component in the year 2000, this component can

be used in java script for sending request to eb server ithout page submission, and this can be considered as a birth to !"!X# $he name !"!X is provided in the year 200%# !"!X is a collection of & things# '# XM(H$$) *equest +t can be used to send request or to get a response from server ithout page submission# 2# "ava ,cript -omplete programming for sending request or reading response by using java script# .# XM( +t/s used for data transmission &# !synchronous -ommunication +t/s supported by XM( Http *equest components #this provides effective communication ith a eb page# !"!X 0ebpage 1 ,ubmit 2 3pload 4!synchronous parallel process5 !"!X can be implemented in 2 ays6 '# !"!X Manual implementation 2# !,)#7et !ja8 !"!X Manual +mplementation6 9eveloper implementing !"!X ,pecifications manually is called: $his requires . steps# '# -reating XM( Http *equest component Xml http request component ill be diff# to diff# bro sers# ;86 <bj1 ne !ctive X<bject 4Microsoft#ms8ml25= >>> for +; %#0 <bj1ne !ctive <bject 4Microsoft#XMlH$$)5= +t/s for #r#t# +; ? %#0

<bj1 ne XM(Http*equest 45= >>>>> for other bro sers e8cept +; (i@e fire fo8, 7etscape:etc# 2# ,ending request <bj#<n*eady,tate-hange1 call bac@ function name $his call bac@ function ill be called by eb server after processing request# <bj#open 4getApost, ebpage name, true5= <bj#send45 it ill send a request to the server# .# Betting response# *esponse ill be provided by XM(Httprequest component, this response can read ithin callbac@ function# <bj#response$e8t >>> its te8t content <bj#responseXM( > it/s XM( content# $his response info# -an be updated to the -ontrols# $his manual approach ill be very comple8 C time consuming process# ,o $hat, the ,olution is !,)#7;$ !"!X# !,)#7;$ !"!X6 Microsoft is implemented !"!X specifications in !,)#7et #its called !,)#7et !ja8# $his ma@es the developer job easier C application development faster# !,)#7et !"!X is built in feature in #7et .#%, for 2#0 it requires a separate do nload# !,)#7et !ja8 classified into 2 types# '# !"!X ,erver -entric 2# !"!X -lient -entric ,erver -entric6 Dro ser >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> eb server

3ser interfaces 2 ,cripting >>>>>>>>>>>>>>>>>>>>>> logic !pplying ,cripting to ards user interfaces to perform particular tas@ on server is called !"!X ,erver -entric implementation# Microsoft is providing set of controls called !"!X e8tension controls# '# ,cript Manager 2# ,cript manager pro8y .# 3pdate panel &# $imer %# 3pdate progress# ,cript Manager6 $his control ill inject complete java script required for !"!X implementation# $his control should be the first control onto eb page C eb page supports only one script manager# ,cript Manager )ro8y6 $his is similar to script manager= it can be used here eb page requires more than one script manager# $his type of requirements comes in master page implementation# Master page 0eb )age' -ontains contains ,cript manager ,cript manager 2 ,cript Manager )ro8y 7ote, ,cript manager of master page can/t be used for child eb page controls, this requires ,cript Manager )ro8y# 3pdate )anel6 3pdate )anel is a container for set of controls, this ill send request to server using 8mlhttprequest component, and only controls ithin update panel can be updated ith information# $imer -ontrol6 $imer -ontrol ill send request to server at regular interval ithout page submission, $ic@ 45 event procedure ill be e8ecuted# 3pdate )rogress6

3pdate )rogress ill display te8tAimage hen tas@ is performed on server, once tas@ is finished te8tAimage ill disappear# ;86 (oading :# +n Bmail#

2# !,)#7et !"!X -lient -entric6 0eb Dro ser >>>>>>>>>>>>>>>> ? 3ser +nterfaces 2 ,cripting# !pplying java script to user interfaces to ards a particular presentation at client side is called !ja8 -lient -entric# Microsoft is providing set of controls to ards client centric implementation in the form !"!X -ontrol $ool Eit# $his is not built in ith !,)#7et .#%# ,eparate tool @it is provided for 2#0 C .#%, it/s a free do nload from Microsoft ,ite# #asp#net or #aja8#net (oading -ontrols6 '# *ight clic@ on $ool Do8 C select add ne tab# 2# *ight clic@ on ne tab C select choose items: bro se: !ja8#dll 9o nloading tool@it provides !ja8 tool @it#dll, it ill provide around .F2 !ja8 -ontrols# ,ome ;86 -ontrols6 !ccordion !nimation ;8tender -alendar ;8tender -ascading dropdo n -olor pic@er ;8tender 9ropdo n ;8tender )ass ord strength *ecode list ,ea 9ragon ,lide ,ho ;8tender $ab container Galidator -allout ;8tender:# ;tc#

!"!X $ool@it is case sensitive# #aja8#net ebsite provides all of the tool@it controls, their properties ith e8planation along ith simple e8amples# >>> ;79 >>>

S-ar putea să vă placă și