473,379 Members | 1,190 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

XMLHTTP question

First..

What object (on the client) should I be using these days?

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
or
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

or maybe something different?

I have some browsers that can't do this correctly. I'm doing:

--client---
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("POST","/App/PostTransactionASP.Aspx?Tran=Update&TranSubCode=xx
x", false);
xmlhttp.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
xmlhttp.send(requestXML);
sResponseXML = xmlhttp.responseXML.xml;

--server--
Dim sTran, sTranSubCode
Dim oPost As New App.PostTransaction
Response.ContentType = "text/xml"
sTran = Request.QueryString("Tran")
sTranSubCode = Request.QueryString("TranSubCode")

Try
CallByName(oPost, sTran, CallType.Method, sTranSubCode)
Catch
Response.Write<Error>Error</Error>
Response.End
End Try
--------------------
Some browsers always get Error returned, like they're unable to do the
CallByName. Is there some security feature stopping this?

Or, maybe I should start doing these in a completely separate way? I really
like this mechanism, and have been using it internally for a few years, but
on these new client machines it's driving me nuts!

Thanks, Dave
Jan 12 '06 #1
1 1308
Hi Dave,

Welcome to ASPNET newsgroup.
As for the MSXML component, they're all COM components which is installed
on the clientside machine so that the IE browser can make use of them....
Generally all the latest OS and IE version will contains some common
version of the MSXML version (e.g 2.0 and 3.0...), you can check this
through the following article:

#How To Determine the Version of MSXML Used by Internet Explorer
http://support.microsoft.com/kb/296647/en-us

Also, it point you to the MSXML component's dll (contains type library and
coclasses....) , you can use the OleView.exe tool to view the interfaces
and classes in it (shiped wth platform sdk or Visual studio...)

In addition, if you're familiar with the COM's registry structure, you can
directly lookup the MSXML components in the win 32 registry:

HKEY_CLASSES_ROOT

You'll find many progId of the msxml components such as msxml2 ,
msxml....... and you can get the mapped clsid there so that furtherly
find the component information associated with that ....

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Thu, 12 Jan 2006 16:19:02 -0600
| From: "Dave H" <Da***@noemail.nospam>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: XMLHTTP question
| Date: Thu, 12 Jan 2006 14:19:08 -0800
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <Y5********************@comcast.com>
| Lines: 47
| NNTP-Posting-Host: 67.180.218.69
| X-Trace:
sv3-h13n1dyUqJnm047DZjZVGqolp2dar4NQPAATfz0vH4QrxorZiI PtvqX9BCnLnfZuhWo7af92
yVIseo0!s1bAKB1s3qFqFcYcZoTPk5ZHSvAJc4SZAihoZ2oywV n1V0PQFiiDatG1xmXx/esolAlj
tJMp37/B!737k
| X-Complaints-To: ab***@comcast.net
| X-DMCA-Complaints-To: dm**@comcast.net
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
ews.com!local01.nntp.dca.giganews.com!nntp.comcast .com!news.comcast.com.POST
ED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370470
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| First..
|
| What object (on the client) should I be using these days?
|
| var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
| or
| var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
| or maybe something different?
|
| I have some browsers that can't do this correctly. I'm doing:
|
| --client---
| var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
xmlhttp.Open("POST","/App/PostTransactionASP.Aspx?Tran=Update&TranSubCode=xx
| x", false);
| xmlhttp.setRequestHeader("Content-Type",
| "application/x-www-form-urlencoded");
| xmlhttp.send(requestXML);
| sResponseXML = xmlhttp.responseXML.xml;
|
| --server--
| Dim sTran, sTranSubCode
| Dim oPost As New App.PostTransaction
| Response.ContentType = "text/xml"
| sTran = Request.QueryString("Tran")
| sTranSubCode = Request.QueryString("TranSubCode")
|
| Try
| CallByName(oPost, sTran, CallType.Method, sTranSubCode)
| Catch
| Response.Write<Error>Error</Error>
| Response.End
| End Try
|
|
| --------------------
| Some browsers always get Error returned, like they're unable to do the
| CallByName. Is there some security feature stopping this?
|
| Or, maybe I should start doing these in a completely separate way? I
really
| like this mechanism, and have been using it internally for a few years,
but
| on these new client machines it's driving me nuts!
|
| Thanks, Dave
|
|
|

Jan 13 '06 #2

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

Similar topics

6
by: WhenAmIOn.com | last post by:
Hi all, I developed a web site that uses javascript and XMLHTTP to dynamically load info on the page from the server without having to re-load the page. Recently I've received complaints of it...
5
by: bboyle18 | last post by:
Hi, I've been looking into the possibility of using XMLHTTP for my enterprise application but I still have a question. When you send the request to the server, how does the server know how to...
4
by: parksch2 | last post by:
When I execute the following example code from my local test environment: var xmlhttp.open("HEAD", "http://www.google.com",true); xmlhttp.onreadystatechange=function() { if...
6
by: Vanessa | last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object. Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work again after half an hour or so without doing...
3
by: Noozer | last post by:
Hrm.. last posting was mangled. Let's try again, with more detail... I'm just starting to try out "Ajax" web programming and I've got a question. AJAX is fairly straightforward. Javascript...
1
by: mirandacascade | last post by:
I recognize that this question is not about javascript per se...it is more about xmlhttp...posting the question at this site because it appears as though this site has many posts related to xmlhttp...
14
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...
2
by: trpost | last post by:
Is it possible to execute javascript as passed in xmlHttp.responseText Here is what I am doing: search.js var xmlHttp xmlHttp=GetXmlHttpObject() var url="search.php"...
2
mothermugger
by: mothermugger | last post by:
I saw some posts about this problem in the archives. But I can't gleam what the solution is... This works fine except • <== here is the problem the dot becomes 2 question marks (try the code)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.