473,395 Members | 1,495 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,395 software developers and data experts.

Reading and Displaying XML in Javascript

Actually iam consuming a web service from traditional ASP and trying to read the XML from Javascript. Will appriciate any quick help. Here is the code

<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim xmlhttp
Dim DataToSend
DataToSend="cono="&Request.querystring("cono")&"&j obid="&Request.Form.Item("JOB_NO")

'DataToSend="cono=001&jobid="&Request.Form("JOB_NO ")
Dim postUrl, output

'postUrl = "http://192.168.0.24/Primac.Systems.WebServices/Service.asmx/GetJobShipToList"
postUrl = "http://192.168.0.33/PrimacSystems.WebServices/GetJobList/Service.asmx/GetJobList"
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
xmlhttp.Open "POST",postUrl,false
xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
xmlhttp.send DataToSend

dim jobvalues
jobvalues=xmlhttp.responseText
Response.Write "o/p :" & jobvalues
'Response.Write "o/p|:" & xml.Load(xmlhttp.responseText)
'Else
'Response.Write "Loading for first Time"
End If
%>
Sep 11 '07 #1
2 1745
jkmyoung
2,057 Expert 2GB
Sounds like you're posting your response from a different thread into this forum. We'd need more context if we're to help you. What is it you want to do?
Sep 14 '07 #2
I am consuming web service in classic ASP and web service responses XML, and want the result to assin to form elements.
Sep 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ken | last post by:
I am new to PHP. But this seems like a terrific language. I have been using JavaScript up to now but it looks like I will be changing to PHP. Seems to have more potential. I am confused about...
3
by: Aaron Gray | last post by:
I want to display all the variables and functions availiable to a web page. I used to have a JavaScript that did this but are unable to get it at the moment, could someone post such a script...
5
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
2
by: awoodgate | last post by:
Hi, I'm trying to read the width of a css absolutely positioned element in javascript. If I use an id selector or a class definition then the width is null. But if I use an inline style then it...
7
by: swethasivaram | last post by:
Hello I have a Java-based web application whose interface can be in multiple languages. My requirement is that the javascript alerts that I display should be displayed in the language in which...
3
by: mbaynham | last post by:
Hi. I'm creating a simple memory game in which the user has to make pairs from cards. I would like the user to see the variable "trys" (the score) update on the page dynamically (in a text box...
5
by: yoel | last post by:
Hey: I have: <head><script language="javascript" type="text/javascript" src="sideMenu.js"></script></head> and <body><script> document.write(doThis('')); </script></body>
76
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a...
4
by: temptsun | last post by:
Hello, I've the following site which runs perfectly on Internet Explorer 7.0, but fails to run the javascript part in Firefox. Please...
0
by: Anupam Jana | last post by:
Hello All, I want to redirect to some other directory page after displaying JavaScript alert message in ASP.net in a page. For that I tried bellow code in our application...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
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...

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.