469,603 Members | 2,117 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

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 1582
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Matt Kruse | last post: by
13 posts views Thread by TLaufenberg | last post: by
5 posts views Thread by Peter Michaux | last post: by
1 post views Thread by geevaa | last post: by
6 posts views Thread by Patrick Nolan | last post: by
2 posts views Thread by Michael Nemtsev [MVP] | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.