Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml code not working

Status
Not open for further replies.

spDavCom

Programmer
Feb 16, 2003
13
US
QUESTION:

What is not right with this code? I just can't get it to append.


var sNewRecord ;
sNewRecord = Doc_xml.createElement("tblCheckBook2000");
sNewRecord.attributes.DATE = "03/09/2003";
sNewRecord.attributes.CHECK_ID = "5000";
sNewRecord.attributes.DESCRIPTION = "TEST B-DAY RECORD";
sNewRecord.attributes.AMOUNT = "-100";
sNewRecord.attributes.RecId = "5001";
Doc_xml.appendChild(sNewRecord);

NOTE:
I've already loaded the an .xml file from the local hardrive into the Doc_xml object.

As always any input or syntax is greatly appreciated.
 
to append the record you have to back to the server script

use sendAndLoad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top