473,441 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

What is the difference between XmlHttpRequest and a standard HTTP request?

184 100+
Hi All,

Pl any one say the difference between ordinary Http Request and XmlHttp Request in Ajax
Thanks in advance.

-Hamsa
Aug 28 '07 #1
4 31952
gits
5,390 Expert Mod 4TB
hi ...

while the standard HTTP request makes a 'synchronous' call and must wait for the response and makes a page-reload (you always get a new html-page to display) a XMLHttpRequest may be used sync (not typical) and async (the better way) without a page-reload. you may ask for the response with javascript and the response is usually xml- or json-data that you may process with js and update parts of your page through the use of dom-methods that manipulate your document ... so you don't need an entire page-reload because all of that is running in the 'background' ...

kind regards
Aug 28 '07 #2
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem (did you know that threads whose titles that do not follow the Posting Guidelines actually get FEWER responses?).
Aug 28 '07 #3
gaya3
184 100+
Hi,
We all know, in Ajax, Javascript can get information from the server without
having to load a new page!
How does it works?
can any one explain in clear picture??
pl..


-Thanks & Regards
Hamsa
Aug 29 '07 #4
dmjpro
2,476 2GB
Hi,
We all know, in Ajax, Javascript can get information from the server without
having to load a new page!
How does it works?
can any one explain in clear picture??
pl..


-Thanks & Regards
Hamsa
Look.
AJAX works behind the screen.
This is simply a HTTP request or HTTPS or simply a request as made generally and we can see how the page reloads.
But AJAX works slight Differently.
When a normal Request made then the Target Page is rendered with specific MIME Type.
It may be HTML,XHTMLor XML.
But it just returns back the output but on working in the behind means user's unknown.
Then simply parse that output using standard API provided bu JavaScript and update the target page that's why the page seems not to be reloaded.
I think you goy my point.
For further Information you see this therad
http://www.thescripts.com/forum/thread699710.html

Kind regards,
Dmjpro.
Aug 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Gaz | last post by:
In Internet Explorer 6 I'm having a problem with the httprequest object. I use it to call a webservice and display the result in the readystate event handler. This works the first time I call it...
3
by: joker | last post by:
Thanks in Advance. I'm trying to find out why my responseXML is empty when the Content-Type for my request is "text/xml". I'm calling into a servlet from a web page on the same domain returning...
9
by: Marcos | last post by:
Hi, I'd like of to use the XMLHTTPRequest with POST method, all navigators the support this? -- Thanks, Marcos José Setim
1
by: vikas.khengare | last post by:
Hi Friends.... I have AJAX code which giving "Permission denied to call method XMLHttpRequest.open" error. This error fired by FireFox 1.0 and IE 6 and with Tomacat 5.x. This code work very...
3
by: keith.schincke | last post by:
I know I must be missing something basic. I am developing of Firefox 1.5 and am trying to to send a basic QUERY_STRING to a test CGI that will print the data back to the brower: I can print my...
3
by: Angel Of Death | last post by:
A postback and a callback. Does a callback always avoid a page being re-sent in it's entirety back to the client and does a post-back always force a browser to reload an entire page? Is this my...
1
by: ScriptProblem | last post by:
Hi Guys, I have a security concern with Mozilla and Netscape browsers(In IE it gives secuirity pop window) in Remote server(Client's server).When I am trying to call an Asp.NET web service from...
6
by: eulaersivan | last post by:
I would like to use the xmlhttprequest-object to send an http request to my server. The http request is used to switch the light on through home automation. However it's not working, and I can't...
6
by: mosesdinakaran | last post by:
Hi Everybody, As all knows the difference between GET and POST is in the way how the data is transfered, But in case of ajax Though it may be a post Request we need to format a querystring...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.