473,566 Members | 3,014 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 2084
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
8536
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...
5
6066
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...
50
4641
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/ ...
6
10444
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...
1
2547
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...
5
11802
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
25126
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...
9
1649
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
14148
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...
0
7683
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...
0
7586
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...
0
8113
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...
0
7957
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...
0
6270
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5487
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3647
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...
0
3628
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
927
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...

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.