473,769 Members | 6,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xmlhttp req without ActiveX on IE 5/6

Hi everybody,

I'm pretty new to Javascript (I'm more on the server-side usually :)

I've been doing some XMLHttp request lately, communicating
in an "Ajax" style (to be buzzword compliant) with the server...
Quite handy :)

It works fine on Firefox, Opera and IE 6 with ActiveX enabled
and apparently IE7 with ActiveX disabled.

However with ActiveX disabled on IE6 I get an error message:

"un composant ActiveX n'a pas pu creer un objet" (excuse my french ;)

Here's a blog from an IE7 developer:

http://blogs.msdn.com/ie/archive/2006/01/23/516393.aspx

where it is stated:

"In IE6 and below, XMLHTTP is implemented as an ActiveX
"object provided by MSXML.

So my question is: is it possible to easily do (or simulate) the
equivalent of an XMLHTTP object using IE 6 with ActiveX
disabled?

What is actually the relation between an XMLHTTP object and
ActiveX in IE 6 and below?

Thanks in advance for any infos,

May 8 '06 #1
3 2097
sh******@yahoo. fr wrote:
So my question is: is it possible to easily do (or simulate) the
equivalent of an XMLHTTP object using IE 6 with ActiveX
disabled?


Yes, you can use a hidden IFRAME to communicate back and forth to the
server.
This introduces issues with the back button, however.

There is no way to use XMLHTTP in IE6 without ActiveX enabled.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
May 8 '06 #2
Matt Kruse wrote:
sh******@yahoo. fr wrote:
So my question is: is it possible to easily do (or simulate) the
equivalent of an XMLHTTP object using IE 6 with ActiveX
disabled?
Yes, you can use a hidden IFRAME to communicate back and forth to the
server.
This introduces issues with the back button, however.


oh I see... After reading your post I just read a little bit on that
subject.

There is no way to use XMLHTTP in IE6 without ActiveX enabled.


Thanks for the infos :)

May 8 '06 #3
sh******@yahoo. fr wrote:
So my question is: is it possible to easily do (or simulate) the
equivalent of an XMLHTTP object using IE 6 with ActiveX
disabled?


Dean Edwards recently blogged about a way to load XML without ActiveX
using XML data islands: http://dean.edwards.name/weblog/2006/04/easy-xml/

It isn't exactly "simulating " XMLHTTP, though I suppose you could write
a wrapper to do the simulating.

Kevin N.
May 10 '06 #4

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

Similar topics

5
8547
by: mikeyjudkins | last post by:
Ive been banging my head on the wall for hours with this one, hopefully someone will know what Im doing wrong here :\ The Goal: I have an xml file that is generated on the fly via JSP which I want to load into a Microsoft.XMLHTTP ActiveX object and manipulate via javascript on the client side. Data is retreived from the server at the request of the javascript without having to reload the page. The Problem:
5
6090
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory loss even though I seem to be allocaitng everything; help would be *vastly* appreciated. What am I doing wrong here? I thought I was doing everything correctly (setting things to null, for example) but none of the memory seems to get replaced. ...
50
4688
by: Philipp Lenssen | last post by:
A nice way to dynamically update HTML on a page (without leaving the page) is to use document.innerHTML and XMLHTTP in JavaScript, then communicate with the server via XML snippets (plus some server side scripts of course, I use PHP5+MySQL). If you want to see an example, you can take a look at my chat: http://blog.outer-court.com/chat/ (And I was inspired by Google Suggest, which uses XMLHTTP.) Of course, this can also be used for...
6
10457
by: Vanessa | last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object. Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work again after half an hour or so without doing anything. I have searched through the Internet and seems like the reason it hangs the browser it's because XMLHTTP limits you to two concurrent HTTP connections to each remote host; so if more than 2 concurrent connections strike the script...
1
2557
by: wh173b0y | last post by:
Alright, i`m developing a site for a contest that runs off of asyncronus HTTP requests(AJAX is the popular term). now i'm using code that is based strongly off the mozilla developer center's "ajax:getting started" page found at http://developer.mozilla.org/en/docs/AJAX:Getting_Started i`ve tested thier version and it works fine. but when i wrote the code, opera and FF accepted the code, noteably excluding IE. i've narrowed the problem to...
5
11817
by: McKirahan | last post by:
Which of these should Firefox 1.5 support? MSXML2.XMLHTTP.5.0 MSXML2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP Microsoft.XMLHTTP WinHttp.WinHttpRequest.5 WinHttp.WinHttpRequest.5.1
13
25326
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
9
1658
by: balakrishnan.dinesh | last post by:
hi frnds, Is Ajax can only used as xmlhttp or else it can use for anyother purpose, If any sample example code for that, plz reply to me soon. Thanks Dinesh B...
14
14187
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
I've been searching everywhere online to find an alternative method besides using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck at all. I am using server side ASP, and some said to use Microsoft.ServerXMLHTTP instead. However I have tried that as well and it still freezes up the whole thing (i.e. the site just keeps loading forever). I tried to do a "on error resume next" clause to catch the error but still...
0
9589
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.