Computer Hope

Internet & Networking => Web design => Topic started by: dmjpro on March 19, 2007, 11:43:48 PM

Title: Why AJAX is fast ????
Post by: dmjpro on March 19, 2007, 11:43:48 PM
i think u know AJAX .......

let me clear a typical thing ..... that why AJAX is fast????
does AJAX use any other communication channel as contrast to the normal request does... or the same communication channel ????

i think u got my point what i mean.....

plz clearify me ...... thanxxxx
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 20, 2007, 11:08:05 AM
Ajax is no faster than any other HTTP transactions.  It simply appears faster because it avoids the need to reload an entire page - you simply load in the particular data you need, and leave the rest of the web page intact.  (That's typically how Ajax is used.)
Title: Re: Why AJAX is fast ????
Post by: dmjpro on March 21, 2007, 07:13:02 AM
ok kkkkkk i also knew that ... but i just waiting for an expert

thanxxxxx
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 21, 2007, 03:52:43 PM
Ajax does have the advantage of being able to pass any kind of XML (or text) data you like, so with a bit of cunning I suppose you could compress your data and make transmission swifter...
Title: Re: Why AJAX is fast ????
Post by: dmjpro on March 22, 2007, 12:14:47 AM
okk wait ... i don't understand u... how can we send XML data or text data from browser

i know how to get the XML or text resonse .... plz help

thanxxxx in advance
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 22, 2007, 07:16:58 AM
The whole thing is XML at both ends by definition.  You might find >this< (http://www-128.ibm.com/developerworks/xml/library/wa-ajaxintro8.html) illuminating.
Title: Re: Why AJAX is fast ????
Post by: dmjpro on March 22, 2007, 07:34:21 AM
okkk i ll check it out .... one more Q.

how can i send form data using POST method .... plz help

i sent u a private msg ... u didn't check ur account ????

have a good day
Title: Re: Why AJAX is fast ????
Post by: patio on March 22, 2007, 09:44:29 AM
dmjpro....see below.

http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?num=1174085607
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 22, 2007, 10:36:45 AM
Quote
how can i send form data using POST method .... plz help
<form method='POST'> etc


Thanks Patio - nice to see you've got my back.  :)  (It was an okay PM though and I have since responded.)
Title: Re: Why AJAX is fast ????
Post by: patio on March 22, 2007, 11:02:27 AM
Just one of the many services i offer..... ;D

 ;)
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 22, 2007, 11:52:01 AM
Quote
Just one of the many services i offer..... ;D

 ;)
I daren't ask about the other services...
Title: Re: Why AJAX is fast ????
Post by: dmjpro on March 23, 2007, 01:24:17 AM
i still don't get my answer ... how to send form data using POST ....

req.open('POST',URL,true) ... then what ll happen?????

thanxxxx
Title: Re: Why AJAX is fast ????
Post by: Rob Pomeroy on March 23, 2007, 03:38:30 AM
No, no: the browser sends the form data.  Use the HTML code above to do it.