Link to home
Start Free TrialLog in
Avatar of ablazso
ablazso

asked on

MSXML2.XMLHTTP fails in Windows 2003 but works OK in Windows 2000. How dow I fix this problem on the 2003?

In my code I have a postXML java script function that works OK when my code is executed on a Windows 2000 server with IIS 5.0, however the same code does not work on a Windows 2003 server that  comes with iIIS 6.0 and msxml4 (sp 4) installed. Is this a 2003 setup/security problem, or, it is a java script problem?

function postXML (url, xmlDocument) {
   var httpRequest;
   try {
      httpRequest = new ActiveXObject('Msxml2.XMLHTTP');
      httpRequest.open('POST', url, false);
      httpRequest.send(xmlDocument);
      return httpRequest;
      }
   catch (e) {
     alert("(IE) - " + e);
     return null;
     }
   }      
</script>

I am not very familiar with Windows  2003, so please advise accordingly!
SOLUTION
Avatar of rdcpro
rdcpro
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ablazso
ablazso

ASKER

Yes my whole program is written in html and java script.  It was  running on a Linux server very well , but because I changed it  to convert the output to PDF, now with an embedded font, I decided to put it on our 2003 server that has a windows based HTML to PDF conversion routine. The PDF must be delivered to the client, so it may be printed.  Can you suggest me a better alternative? Would you like to any other part of this program?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ablazso

ASKER

Yes, you are correct the java scrip runs on the client's browser, but it works correctly, as is, if it is from the Linux server or Windows 2000 server. I would leave the program on either of these, if it were not for the HTML to PDF conversion with embedded fonts I absolutely must have. Would you like to see the two html programs? I am willing to e-mail it to you or use whatever delivery means you prefer!@
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ablazso

ASKER

Ok, I shall!
Unfortunatelly, the server is down for some software and hardware upgrage today!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ablazso

ASKER

OK I am willing to...! But what should I replace it with? Can you point me to some write-up or documentation on some newer stuff?
On the other hand, my simplistic programs works just fine!  Why finx if it ain't broke?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial