By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,536 Members | 2,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,536 IT Pros & Developers. It's quick & easy.

Making HTTP requests

P: n/a
Is there a more crossbrowser-friendly means to make HTTP requests
using script than the XML methods? I need to do this in IE 5.0, and
it doesn't seem to have the ActiveX control that can make XML HTTP
requests. I hope the answer will not be to roll my own HTTP protocol
handler :)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


Christopher Benson-Manica wrote:
Is there a more crossbrowser-friendly means to make HTTP requests
using script than the XML methods? I need to do this in IE 5.0, and
it doesn't seem to have the ActiveX control that can make XML HTTP
requests.


You should be able to use
new ActiveXObject('Microsoft.XMLHTTP')
in IE 5 and later on Windows. There are also other version like
new ActiveXObject('Msxml2.XMLHTTP.3.0')
for instance which comes with IE 6. But the first one should do in IE 5,
5.5, 6, and the API for making HTTP requests is the same anyway.

If ActiveX is disabled then you are left with an hidden (i)frame or
older no longer supported technology like remote scripting (MS feature
which uses a Java applet on the client which client-side script calls
where the applet then makes calls to an ASP page).

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

P: n/a
Christopher Benson-Manica wrote:
Is there a more crossbrowser-friendly means to make HTTP requests
using script than the XML methods? I need to do this in IE 5.0


I'm using the Sarissa library (http://sourceforge.net/projects/sarissa)
to provide reasonably browser-independent XmlHTTPRequest functions. I
believe that it will work with IE5 but have not tested it.

--Phil.

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.