Top add
Jquery to read from xml
- Include the jquery in your page
- Validate the xml using online xml validators
- Use the jquery.get() to get all the data from the xml
example:
$('Contact',xml).each(function() {
srno = parseInt($(this).find("srno").text());
empId = $(this).find("empid").text();
name = $(this).find("name").text();
contact = $(this).find("contact-data").text();
type = $(this).find("type").text(); }
- The xml data are read and shown as html using jquery
- To add new date use the function $('#idSave').click() to delete use deleteRow and to edit editrow
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment