473,655 Members | 3,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can not create activexobject(" microsoft.xmlht tp")

2 New Member
hi,
I have some client with IE 6 sp1 that when I run the following line I have an exception :
var poster = new activexobject(" Microsoft.xmlHt tp"|);
The web page that call this js line is ssl.
Do you have an idea why it works on some computers and on others not?
Thanks
Jan 1 '07 #1
3 7664
ronverdonk
4,258 Recognized Expert Specialist
Could be you are using a lower JavaScript version (< 5) and have to use Msxml2.XMLHTTP. The following snippet of code handles this also for older versions. Try it and see if the error persists.
[html]//Create a boolean to check for a valid IE instance.
var xmlhttp = false;

//Check if we are using IE.
try {
//If the Javascript version is greater than 5.
xmlhttp = new ActiveXObject(" Msxml2.XMLHTTP" );
} catch (e) {
//If not, then use the older active x object.
try {
//If we are using MS.
xmlhttp = new ActiveXObject(" Microsoft.XMLHT TP");
} catch (E) {
//Else we must be using a non-IE browser.
xmlhttp = false;
}
}

//If using a non-IE browser, create a js instance of the object.
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest( );
}[/html]
Ronald :cool:
Jan 1 '07 #2
ronlym
2 New Member
Hi,
I have a page that call the following line in js :
var x = new activexobject(" Microsoft.xmlht tp");

This line works on some computers and do not work on anothers.
All the computers have IE6 sp1.

The page that call the js run under ssl.

Do you have an idea what is the problem?

Thanks
Jan 2 '07 #3
ronverdonk
4,258 Recognized Expert Specialist
You are double posting in this thread!!

Before starting this double thread, why don't you first look at the reply posts in your original thread at http://www.thescripts.com/forum/thread582818.html

Ronald :cool:
Jan 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
13263
by: PISINC | last post by:
I am having a problem creating an instance of the Acrobat application COM component ("AcroExch.App") with C#. The component "AcroExch.App" lives in the Acrobat executable, and you can't add "Acrobat.exe" directly as a reference. In VB 6.0, you use the CreateObject function with the "AcroExch.App" ProgID to instance the COM object.
1
1617
by: AmiciDan | last post by:
When I attempt to create a new project in Visual Studio .NET 2003, I do NOT have the option to create the following: Microsoft Office 2003 Projects What do I need to install or do to get this option as a project type? I have a Universal MSDN subscription and am using Visual Studio .NET 2003 Enterprise Edition. I attempted to re-run the setup, but I did not see "Microsoft Office 2003 Projects" as an option.
3
1156
by: Bad_Kid | last post by:
myForm is 500x400 px and it has panel1 control which is 4000x200 px!! how can I create scrollbar on a panel1 so it's contents may be scrolled left and right? (c++.net)
0
1798
by: jesper.hvid | last post by:
Hi. I've noticed, after moving some of our code to 2.0, that System.Net.WebRequest.Create(System.String) and System.Uri(System.String) no longer behave as they did in 1.1 framework. Example: string emailHttpPath =
0
1332
by: penguinc | last post by:
Please help, using Nortwind example database from Microsoft, purchasing is fine, but unable to try to select vendor then select invoices, display total then enter payment info. Best regards, Thank you.
1
6063
by: H | last post by:
Just trying to create a basic xmlhttpobject. However, the following always returns null xmlhttpobj = New ActiveXObject("Microsoft.XMLHTTP") (it is Microsoft. and not Msxml2. I've already narrowed that part down; just trying to create the object now) If I check for the value of xmlhttpobj, it is always null or undefined.
4
14058
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi there, I want to use javacript in my ASPX page, using ActiveX ( ActiveXObject("Shell.Application"); ) to call external application. How I know if the IExplorer settings for ActiveX is enabled ? Any helper javascript class for do it ? Any help will be appreciated, and I will be very grateful.
7
6247
by: czechboy | last post by:
Hi, I would like to send DELETE request to google calendar but nothing of this works: xmlhttp.open("POST",del,false); xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE"); xmlhttp.send(); or xmlhttp.open("DELETE",del,false); xmlhttp.send();
4
10357
by: dougmeece | last post by:
Hello everyone, I have created a search button but I receive the message "Microsoft Access can't fine the field "|" referred to in your expression" when I try to use it. I have looked online for this error but the fix did not pertain to this problem because the table or field name did not match any reservered Access words as described. My records search form will have two combo boxes and one or two search buttons. I am just trying to...
0
8380
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
8296
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,...
1
8497
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
7310
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.