Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2003, 06:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default Why does Microsoft.XMLHTTP not work?

On the client we use an ActiveX (Microsoft.XMLHTTP) but suddenly it stoped working. The problem was the character format changed (we think to Latin1), but we needed Unicode because of the Danish letters.
When we changed it to MSXML2.XMLHTTP it worked again. Why did the original service stop working and is it something you can expect will happen again?

Regards - Jon
__________________
- mega
Aspiring JavaScript Ninja
 
Old August 12th, 2003, 07:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

Does new service packs on the client got anything to do with it?

Regards - Jon
 
Old August 12th, 2003, 07:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

:D I found the answer:
1.<script language="javascript"
2. var xmlString = "";
3. xmlString = ClientObj.GetInitRequest();
4. alert(xmlString);
5. var Sender = new ActiveXObject("Microsoft.XMLHTTP");
6. Sender.Open("POST", "http://Myserver/CatalogService/Server.asp", false);
7. Sender.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=EUC-KR"); //Just pick the right charset!
8. Sender.Send("XMLRequest=" + xmlString);
9.</script>
Line 7 above...
The URL: http://groups.google.dk/groups?=Micr...ft.com&rnum=11

Regards - Jon





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Microsoft][ODBC Microsoft Access Driver] Syntax e chinedu Classic ASP Databases 3 November 18th, 2004 03:48 PM
Microsoft.XMLHTTP and javascript under IE6 jeff1974 Javascript 3 October 24th, 2004 03:27 AM
XML Post using microsoft.XMLHTTP csmajor231 XML 0 April 5th, 2004 03:06 PM
Problem With Microsoft.XMLHTTP binod XSLT 2 August 13th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.