MSXML Parser

This is a discussion on "MSXML Parser" within the ASP.NET Forum section. This forum, and the thread "MSXML Parser are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 4th, 2005, 10:49
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question MSXML Parser

Hi All
I am facing a problem using the XMLHTTPRequest object in javascript. Iam using it to populate an array with fields from the database and then display them in a dropdwn list. I get a javascript error saying

Error:Unknown name
Code: 0

I have IE6 on my machine. And the javascipt code goes like this

//XMLHTTP
if(window.XMLHttpRequest){
try {
xmlhttp = new XMLHttpRequest();
} catch(e) {
xmlhttp = false;
} // branch for IE/Windows ActiveX version
}
else if(window.ActiveXObject) {
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
xmlhttp = false;
}
}
}

var val = SelectFld.value;
var httpAddr = "http://aditi/centralspares/admin/getmodels.asp?manufid="+val ;
xmlhttp.open("GET", httpAddr, false);
xmlhttp.send("");
*********************************************
Reply With Quote

  #2 (permalink)  
Old Nov 4th, 2005, 12:27
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MSXML Parser

Code: Select all
xmlhttp.open("GET", httpAddr, false);
should that be set to True instead?
Reply With Quote
  #3 (permalink)  
Old Nov 7th, 2005, 04:41
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MSXML Parser

The above metioned code works fine on some machines except for a few. So is it due to the MSXML Parser version on the machine?
Reply With Quote
Reply

Tags
msxml, parser

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43