XMLHTTPRequest

M

Marcos

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/
 
W

web.dev

Hi Marcos,

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

Richard Cornford

web.dev said:
Yes, all the latest browsers support XMLHttpRequest.
<snip>

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

Richard.
 
R

Richard Cornford

Martin said:
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.
 
M

Martin Honnen

Richard said:
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.
 
M

Marcos

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
 
M

Martin Honnen

Marcos said:
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.
 
M

Matt Kruse

Marcos said:
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
 
M

Marcos

See the "Form Submittal" example at

Thanks.

I will go to study this code, very good this site :eek:), 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,096
Latest member
ThurmanCre

Latest Threads

Top