473,386 Members | 1,712 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,386 software developers and data experts.

XMLHTTPRequest

Hi,

I'd like of to use the XMLHTTPRequest with POST method, all navigators the
support this?

--

Thanks,

Marcos José Setim
________________________________________
Usando o M2 do Opera: http://www.opera.com/m2/
Jul 23 '05 #1
9 1792
Hi Marcos,

Yes, all the latest browsers support XMLHttpRequest. But how you go
about creating an XMLHttpRequest object is a different matter.

Jul 23 '05 #2
web.dev wrote:
Yes, all the latest browsers support XMLHttpRequest.

<snip>

All? That seems unlikely, especially where PDA and embedded browsers are
concerned.

Richard.
Jul 23 '05 #3

Marcos wrote:
I'd like of to use the XMLHTTPRequest with POST method, all navigators
the support this?


IE 5 (and later) on Windows have Microsoft.XMLHTTP which can do POST
requests and allows to set HTTP request headers, Mozilla since 1.0 has
XMLHttpRequest and allows the same, Opera since 8.00 has XMLHttpRequest
support but only since 8.01 supports setting HTTP request headers.
Safari 1.2 and later also supports XMLHttpRequest.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #4
Martin Honnen wrote:
I'd like of to use the XMLHTTPRequest with POST
method, all navigators the support this?


IE 5 (and later) on Windows have Microsoft.XMLHTTP which
can do POST requests and allows to set HTTP request headers,
Mozilla since 1.0 has XMLHttpRequest and allows the same,
Opera since 8.00 has XMLHttpRequest support but only since
8.01 supports setting HTTP request headers. Safari 1.2 and
later also supports XMLHttpRequest.


For completeness, it might be worth mentioning that ICESoft Technologies
Inc sent me a press release earlier in the week that implies that
IceBrowser 6 now has an xml http request facility. Though they did not
go into any details (just threw buzzwords like AJAX about and trumpeted
support for it), and particularly they did not say if it would be using
the browser's native ActiveXObject constructor (in the IE style) or
whether they had added a Mozilla style XMLHttpRequest constructor (or
both).

With Safari development feeding back into Konqueror, it should not be
long before that browser also provides the facility.

Richard.
Jul 23 '05 #5


Richard Cornford wrote:
With Safari development feeding back into Konqueror, it should not be
long before that browser also provides the facility.


I think that has already happened, only I don't know the exact version.
The Sarissa home page
<http://sarissa.sourceforge.net/doc/>
says Konqueror in KDE 3.3+ has XMLHttpRequest support.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #6
Hi,

Thanks for the answers.
Opera since 8.00 has XMLHttpRequest support but only since 8.01 supports
setting HTTP request headers.


This is my problem. Some months ago I had problems with Opera and setting
HTTP request headers. I believe that it would have to be version 8.0
Jul 23 '05 #7


Marcos wrote:
Opera since 8.00 has XMLHttpRequest support but only since 8.01
supports setting HTTP request headers.

This is my problem. Some months ago I had problems with Opera and
setting HTTP request headers. I believe that it would have to be
version 8.0


Unfortunately there is nothing you can do about that besides getting
your Opera users to upgrade to the latest release 8.01. Somehow Opera's
initial quality assurance for XMLHttpRequest seems to have been that
GMail works.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #8
Marcos wrote:
Opera since 8.00 has XMLHttpRequest support but only since 8.01
supports setting HTTP request headers.

This is my problem. Some months ago I had problems with Opera and
setting HTTP request headers. I believe that it would have to be
version 8.0


Do you _need_ to set the header?

It depends on the server-side app. I can submit POST requests just fine with
Opera 8.00 without setting the content-type header.

See the "Form Submittal" example at
http://www.ajaxtoolbox.com/request/examples.php

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jul 23 '05 #9
> See the "Form Submittal" example at
http://www.ajaxtoolbox.com/request/examples.php


Thanks.

I will go to study this code, very good this site :o), goes to my bookmark.

One question that I have and e if the staff will be able to clarify me, I
would be grateful.

I work much with this code:

....

xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
var result = xmlhttp.responseText;
}
}

....

I understand it almost all, but less this part. I don't understant the use
of =function(){}...

And I try use the return to take the result the respondeText, without
sucess...

Thanks to all for the patience.
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matt Kruse | last post by:
I'm aware of the circular reference memory leak problem with IE/closures. I'm not sure exactly how to resolve it in this situation. Also, Firefox appears to grow its memory size with the same code....
21
by: Joe Attardi | last post by:
Hey all! I was reading over at the IE Blog the other day http://http://blogs.msdn.com/ie/] and read some interesting, and encouraging news. According to Sunava Dutta, an IE Program Manager,...
13
by: TLaufenberg | last post by:
I'm new to Javascript programming and I've run into a bit of a snag with making an XMLHttpRequest in the Safari browser. Actually, the request doesn't work in Firefox either but only when I use a...
5
by: Peter Michaux | last post by:
Hi, The FAQ correctly says the following: "Mozilla (NN6.2+, Firefox, Ice Weasle etc), Opera 7.6+, Safari1.2+, the Windows version of IE versions 5+, and some other browsers provide the XML...
1
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code...
1
by: geevaa | last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3 XMLHttpRequest and AJAX for PHP programmers James Kassemi Introduction: Although the concept isn't entirely new, XMLHttpRequest...
1
by: Tarik Monem | last post by:
OK, I'm pretty sure this cannot work because I'm trying to use JavaScript (client-side) to write to an xml file (which is server-side) using XMLHttpRequest. Can I use PHP do what I'm trying to do?...
6
by: Patrick Nolan | last post by:
I'm working on cross-platform portability of some javascript. My Macintosh testing platform is rather old. It has Safari 1.3.2 and Internet Explorer 5.2. I got Safari working, but now IE is...
2
by: Michael Nemtsev [MVP] | last post by:
Hello, In the current application we have several httpmodules to process pages, and we have several pages with calls directly through the XMLHttpRequest. Now the requiremens is to detect the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...

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.