Hi,
I'm trying to translate an asp application, i have some difficulties with a
particular line :
---
Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ")
---
Classical ajax exemples rather use :
[...]
req = new ActiveXObject(" Microsoft.XMLHT TP");
.... But i'm not sure the ActiveXObject is identical to the original :
Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ")
I'm not an asp expert, can you give me some tips on that question ?
Thanks,
Arnaud 4 18018
Arnaud wrote: I'm trying to translate an asp application, i have some difficulties with a particular line : --- Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ") ---
Classical ajax exemples rather use : [...] req = new ActiveXObject(" Microsoft.XMLHT TP");
What exactly are you trying to do, translate a VBScript ASP sample to a
JScript ASP sample? Then use
var myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ");
That will use the server version of the XMLHTTP object of MSXML 4 which
means MSXML 4 needs to be installed on the server where you want to run
the JScript ASP page.
--
Martin Honnen http://JavaScript.FAQTs.com/
"Martin Honnen" <ma*******@yaho o.de> a écrit dans le message de news:
44************* **********@news read2.arcor-online.net... What exactly are you trying to do, translate a VBScript ASP sample to a JScript ASP sample? Then use var myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 "); That will use the server version of the XMLHTTP object of MSXML 4 which means MSXML 4 needs to be installed on the server where you want to run the JScript ASP page.
Hi,
Actually I'm trying to translate it into php so i won't have any msxml4
installed on the server.
That's why I tried the ajax/client approach : to avoid dealing with a server
object.
Have I a chance to see it works one day ? :)
Arnaud
Arnaud wrote: Actually I'm trying to translate it into php so i won't have any msxml4 installed on the server. That's why I tried the ajax/client approach : to avoid dealing with a server object.
I am not sure I really understand why you are asking in a JavaScript
group if you want to convert server side VBScript/ASP to PHP but as for
those objects, they have many common properties and methods but there
are some differences. Documentation is here:
<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.as p>
<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.as p>
So ServerXMLHTTP has methods like setTimeouts, waitForResponse that the
XMLHTTP does not have.
--
Martin Honnen http://JavaScript.FAQTs.com/
"Martin Honnen" <ma*******@yaho o.de> a écrit dans le message de news:
44************* *********@newsr ead4.arcor-online.net... I am not sure I really understand why you are asking in a JavaScript group if you want to convert server side VBScript/ASP to PHP
Because I have tried some ajax code too, so I said myself perhaps someone
would know the solution.
but as for those objects, they have many common properties and methods but there are some differences. Documentation is here: <http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.as p> <http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.as p> So ServerXMLHTTP has methods like setTimeouts, waitForResponse that the XMLHTTP does not have.
Thanks, I'm going to study your links, I've tried the msdn documentation on
some asp keywords but it's not so easy to read where you're not used to ms
world.
bye
arnaud This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: katrinaVictim |
last post by:
Question:
I get the eror listed at the bottom of the post. What can I do to
make the response of the x1.send a "binary" type? Or, in general,
how can I just "make this work"?
<%@ Language=VBScript %>
<%
Response.Buffer = TRUE
Response.ContentType = "image/jpg"
|
by: Michael Christensen |
last post by:
Hi
How do I send an input-param to my web service with
MSXML2.ServerXMLHTTP?
Can this be done without the soap-toolkit?
Can't find anything about it - looking forward getting some help :-)
-------------
Function GetLatest()
Dim url, xmlhttp, XMLDOM, XMLNode
|
by: Raúl Martín |
last post by:
I´ve a function in asp that run correctly but If I tried to change it
forasp.net
in asp:
xmlHTTP = CreateObject("Microsoft.XMLHTTP")
And I thought to use this sentence for asp.net but the server don´t
response right.
xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
|
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.
|
by: yawnmoth |
last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two
alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP.
If my understanding is correct, the different numbers refer to the
version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to
the latest installed version.
This makes me wonder why sites like
<http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to
use Msxml2.XMLHTTP, first, and...
| |
by: Skyblue |
last post by:
I use Microsoft.XMLHTTP to access htm or asp pages on a central web
site from other satellite sites. In this way, the same content can be
displayed on a dozen websites and I only need to update one file in
order to change the content displayed on all the websites.
I have noticed that when I update the text in the file which is
accessed by Microsoft.XMLHTTP (testXML.htm in the example below), the
updates do not appear for some time on the...
|
by: lopi |
last post by:
Hello.
I'm trying to remotely get a pdf file - http://remoteServer/file.pdf -
in order to store it into another server, maybe with
Scripting.FileSystemObject
However the following code doesn't work properly:
------------
url = "http://remoteServer/file.pdf"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
|
by: =?Utf-8?B?VmFuZXNzYQ==?= |
last post by:
I've been searching everywhere online to find an alternative method besides
using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck
at all.
I am using server side ASP, and some said to use Microsoft.ServerXMLHTTP
instead. However I have tried that as well and it still freezes up the whole
thing (i.e. the site just keeps loading forever).
I tried to do a "on error resume next" clause to catch the error but still...
|
by: dfordinal |
last post by:
I am calling a remote web server and awaiting data that is being passed back to my process in a form variable.
postData = "fname=John"
Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP.4.0")
Call xmlHttp.Open("POST", "http://www.webSite.com", false)
Call xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
Call xmlHttp.send(postData)
Response.ContentType = "text/html"
'Need to get two values from a form.
|
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,...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
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();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |