Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
| Search | Today's Posts | Mark Forums Read
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2010, 05:36 AM
Registered User
 
Join Date: Aug 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to change the value of xml present at client side using javascript

Hi
Kindly help me out changing the information in xml file using javascript.

I am totally stucked....

I m doing for saving file :
function doSubmit(){
xmlDoc = loadXMLDoc("abc.xml");
var len = xmlDoc.getElementsByTagName("original").length;
if( (-1 < currentRow) && (currentRow < len) ) {
alert(document.controlForm.notes.value);
xmlDoc.getElementsByTagName("notes")[currentRow].childNodes[0].nodeValue = document.controlForm.notes.value;

xmlDoc.save("abc.xml");
}
}

var currentRow = -1;
var xhttp = null;
function loadXMLDoc(dname) {
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
} else {
xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
//alert(xhttp);

xhttp.open("GET", 'abc.xml', false);
xhttp.send(null);
return xhttp.responseXML;

}




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create and Save an Xml file at client side. kiranvsamuel XML 1 June 30th, 2006 05:26 AM
In ASP,Client side javaScript code casimir Classic ASP XML 0 October 24th, 2005 12:24 AM
writing to an xml file on the client side Toran XML 2 April 2nd, 2005 03:51 PM
Client Side JavaScript Generating HTML Files interrupt Javascript How-To 1 January 14th, 2005 11:36 AM
CLIENT SIDE JAVASCRIPT BROKE THE PAGE jomaweb ASP.NET 1.0 and 1.1 Basics 0 September 12th, 2003 08:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.