Hi team ,
I need to pass an xml to jquery i have mentioned the code below could some one pls tell me how to pass an xml to it in the Notes form .
the below code is copied in the form and used "pass thru as html " for it
HTML
...
<table id="addtree"></table>
<div id="paddtree"></div>
.....
Java Scrpt code
...
jQuery("#addtree").jqGrid({
url: 'tree.xml', ---- here i need to pass the xml file . Please suggest me how to pass the file . I have created my own xml file .
treedatatype: "xml",
mtype: "POST",
colNames:["id","Account","Acc Num", "Debit", "Credit","Balance"],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true, editable:true},
{name:'name',index:'name', width:180, editable:true},
{name:'num',index:'acc_num', width:80, align:"center",editable:true},
{name:'debit',index:'debit', width:80, align:"right",editable:true},
{name:'credit',index:'credit', width:80,align:"right",editable:true},
{name:'balance',index:'balance', width:80,align:"right",editable:true}
],
height:'auto',
pager : "#paddtree",
treeGrid: true,
ExpandColumn : 'name',
editurl:'server.php?q=dummy',
caption: "Add Tree node example"
});
jQuery("#addtree").jqGrid('navGrid',"#paddtree")
i have loaded the xml file under the resource category in the designer.
if i pass my xml file it will automatically create the tree grid structure for the data in the xml .
Got the code from below link
http://www.trirand.com/blog/jqgrid/jqgrid.html
i need to attain tht kind of functionality for my web application. any new approach is also acceptable .Pls suggest .
Thanks in advance
sai krishna