473,545 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

184 New Member
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 31974
gits
5,390 Recognized Expert Moderator Expert
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 Recognized Expert Expert
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 New Member
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 Top Contributor
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
4993
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 but subsequently the readystate event handler function is never called, or the event itself is never fired. The same code works fine in Firefox....
3
15282
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 a simple xml stream, but it only shows up under responseText? I'm using IE 6.0. function loadXMLDoc() { alert("running loadXMLDoc"); var url2 =
9
1798
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
896
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 correctly on the other machine and giving correct output also. I am trying to fetch "html" pages from others server.
3
8165
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 query string with an alert() right before the request.send(queryString). An examination of the cgi enviroment and tcpdump does not show QUERY_STRING...
3
1578
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 right understanding? If so, why is it that people say that a callback is a postback.
1
7577
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 javascript using the XmlHttpRequest object XmlHttpRequest .Open("POST", ServicesPath, false); Problem is only in Cleint's server ,Where in web...
6
3781
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 find the problem. Could it be that the apache-server is located on 192.168.0.21 and that the http request is sent to 192.168.0.21:8080? Thanks...
6
3919
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 manually and send with the url, My question is there any other way that without sending the query string can we get the post values as in a normal...
0
7453
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7410
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7742
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5958
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5318
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4940
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1007
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
692
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.