473,804 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveXObject(" MSXML2.DOMDocum ent.4.0") error

I've made an ASP form page that is executed via a
Javascript function.

There's a javascript function that builds an XML object
with the form values. But in some browers it seems to
fail on the line that reads:

var objXML = new ActiveXObject(" Msxml2.DOMDocum ent.4.0");

It's works fine in my IE 5.0, 5.5 and 6.0 browsers. Any
ideas why it fails for some users?

Thanks,

King Wilder
Jul 19 '05 #1
1 8637
On Mon, 15 Sep 2003 20:05:18 -0700, "K. Wilder" <ki**@gizmobeac h.com>
wrote:
I've made an ASP form page that is executed via a
Javascript function.

There's a javascript function that builds an XML object
with the form values. But in some browers it seems to
fail on the line that reads:

var objXML = new ActiveXObject(" Msxml2.DOMDocum ent.4.0");

It's works fine in my IE 5.0, 5.5 and 6.0 browsers. Any
ideas why it fails for some users?


You are most likely "up to date" on patches, etc. I dont think version
4.0 is guaranteed to be on a machine just because IE is on it. You
"may" be able to rely on simply MSXML.DOMDocume nt (no version
specified), but be sure your properties / methods match with the lower
versions.

Jul 19 '05 #2

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

Similar topics

0
2591
by: Eric | last post by:
I have a problem using the XMLDOM throught data islands. On some machine it works fine but on other I get an error when trying to access a node using XMLDOM on data islands. Further more the datafld and datasrc HTML properties doesn't display the node value as expected.It seems that when I remove the XML document declaration on the computers where this code sample currently not working , this sample work much better and the node value is...
2
1791
by: RK | last post by:
Hi I am using the following code in the button_click event in xxxxx.htm page which is URL for the showModalDialog window. function btnAddComment_Onclick() { var user_info = new ActiveXObject("Msxml2.DOMDocument"); user_info.async = false; *****causing the error. user_info.load("../xml/userinfo.aspx");
12
4952
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What is the meaning of < ....default="myDefaultValue" /> ?
1
275
by: Oren | last post by:
Hi I have 2 simple questions and hope someone can help me 1) I have an aspx page with the Control: HTML ListBox on it (runat=server). I'm adding options in JavaScript .... mySelect = document.addFiles.lis var myI = mySelect.selectedIndex + mySelect.options = new Option(sFile,"2" ...
2
8761
by: Maris Janis Vasilevskis | last post by:
Hi, Is it possible to force HttpWebRequest to do exactly (not approximately) the same as MSXML2.ServerXMLHTTP does? More details. I port JScript to JScript.NET I have a server (ASP invoking binary code; code not accessible). I send XML requests to it. If my request is accepted, ServerXMLHTTP returns XML with accept details. If my request is rejected, ServerXMLHTTP returns XML with reject details.
1
11335
by: paul | last post by:
I am trying to get some compatible code that will work for Safari and Firefox for MAC. The following code works great with IE for MAC, IE, Firfox and Netscape on PC: xmlDoc = new ActiveXObject("MSXML2.DOMDocument.4.0") Can someone please give me some compatible code that will allow me to create this object in Safari and Firefox for MAC? Thank you in advance for your time and help. Paul Gorman ><>
1
2859
by: FreeXenon | last post by:
OK, I am having a lot of problems loading an XML file via a Server-Side JavaScript based ASP page. Below is the code that I am using as well as the different methods of loading the XML file and the associated errors that I am getting from the process. =( Now the original XML file is generated from a Java based Lotus Notes Agent. I have tested the XML output in IE/FireFox/Opera which opens up and displays the output just fine as XML. I have...
1
9428
by: pbd22 | last post by:
Hi - I have code that automatically fills tabs on a page. In some cases, a URL path won't be correct (the folder and files don't exist) and, in these cases, I want to catch these exceptions and move the logic to the next instance in the loop (again, testing if the URL path exists). I have a check_path function for these cases with the following code: var oFSO = new ActiveXObject("Scripting.FileSystemObject");
1
6025
by: JTree | last post by:
Hi all, My System is windows and ie version is 7. My code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
10595
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
10343
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
10341
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
10089
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...
1
7634
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
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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.