473,395 Members | 1,905 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 XML file with JScript

Hi,

By using AjaxPro I am creating XML file with database data and saving
that created file in harddisk, but i have to show the content of that
XML in browser. How can I show the content by AjaxMethod which is
in .cs file or can we open and show the content of XML file by using
JScrip
Thanks in advance

May 17 '07 #1
1 4475
Shalem wrote:
By using AjaxPro I am creating XML file with database data and saving
that created file in harddisk, but i have to show the content of that
XML in browser. How can I show the content by AjaxMethod which is
in .cs file or can we open and show the content of XML file by using
JScrip
JScript (in IE) can read XML using MSXML e.g.
var xmlDocument = new ActiveXObject('Msxml2.DOMDocument.3.0');
xmlDocument.onreadystatechange = function () {
if (xmlDocument.readyState == 4) {
alert(xmlDocument.xml);
}
};
xmlDocument.load('file.xml');

Cross browser your best bet to read XML is XMLHttpRequest.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 17 '07 #2

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

Similar topics

6
by: Sergio Otoya | last post by:
Hi all, Is there any way of copying a file using javascript, not using the Filesystemobject (ActiveX). I need this to run in Windows and MACS. Any help would be greatly appreciated. Thanks...
0
by: cschang | last post by:
Sorry, I am only a month new to .net world. I have no ideal where this subject should be posted. so i post her and the .general group. Hope you do not mind. I used the example from MS of file...
0
by: cschang | last post by:
I have a file upload module written in .aspx. I want to write the filename (just the name) uploaded back to the my parent .asp file (the ..aspx file was a pop-up window related to the .asp) so...
2
by: Steve | last post by:
OK, I know I can't read a file with JavaScript, but I see references that I can use the filesystemobject which is part of vb script. Can I embed vb script in HTML? I am writing a program for...
1
by: joe | last post by:
Hello, I have some code written in C that I want to transfer over to JScript so I can run within my project to "burn" my DSP code into EEPROM(Non-volatile RAM). I want to generate an .ldr file (a...
2
by: Jer425 | last post by:
Hello, I'm coding in VB and trying to include a jscript file. This will not work because you can only use one language in asp.net. Is there a way that I can use the jscript without having to...
3
by: stephen | last post by:
Hi, I have a javascript file that I want to use on a button. If I have the javascript file in the same folder as the webform then it works for eg: /SampleApp/WebForms/TestForm.aspx but I...
10
by: HardySpicer | last post by:
I have a cvs data file orbit.csv and found this code. function ReadFile() { var fso, f1, ts, s; var ForReading = 1; fso = new ActiveXObject("Scripting.FileSystemObject"); f =...
12
by: Marc | last post by:
Comming from JSP-HTML when I hear 'script' I think of JavaScript or perhaps VBScript. But I think in ASP.NET they mean something else? I am bit confused now. Reading a book I see the following:...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
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,...
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...
0
tracyyun
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...

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.