Greetings!
In an attempt to find my problem, I built another simple grid from scratch. It only loads the first xml and acts like it does not recognize the as the slider size is too large, and only the first 50 can be viewed.
Here is my code:
function buildLibrary(){
wMemLib = dhxWins.createWindow("wMemLib",505,200,540,600);
wMemLib.setText("Member Library");
memlibTool = wMemLib.attachToolbar();
memAgrid = wMemLib.attachGrid() ;
var flds1 = "Albums/Tracks,Tk,Artist,UPC,Status,Media,Art,P/S"
memAgrid.setHeader(flds1);
memAgrid.setInitWidths("160,25,130,100,38,30,20,20");
memAgrid.setColAlign("220,25,165,100,38,40,20,20");
memAgrid.setColTypes("tree,ro,ro,ro,ro,ro,ro,ro");
memAgrid.setColSorting("str,int,str,str,str,str,str,str");
memAgrid.setColumnColor("white,#F0B5FF,white,white,white,#E6E4DE,#E6E4DE,#E6E4DE");
memAgrid.setImagePath(imagepath);
memAgrid.attachEvent("onRowSelect",doOnMemRowSelected);
memAgrid.attachEvent("onXLE",mgloadEnd);
memAgrid.init();
memAgrid.enableEditEvents(true,false,true);
memAgrid.enableDistributedParsing(true);
var memberusername = document.getElementById("usernameentry").value;
if (memberusername.length < 1){
showDialog("Whoops!","No member username.",'warning');
return;
}
var atOnce = 50;
memAgrid.xmlFileUrl = oereq+'?ACTION_CODE=LIBRARY&mtype='+mtype+'&USERNAME='+memberusername;
memAgrid.loadXML(oereq+'?ACTION_CODE=LIBRARY&mtype='+mtype+'&USERNAME='+memberusername+"&startPos=0&count="+atOnce);
}
function mgloadEnd (){
document.getElementById(âlibbuttonâ).disabled=false;
document.getElementById(âlibbuttonâ).value=âGet Libraryâ;
}
function doOnMemRowSelected(){
alert(ârow selectedâ);
}
In addition, this is the first few lines of the xml string that is returned as a result of the grid.load()
<?xml version="1.0" encoding="UTF-8"?>LOCKERJIM235
A
1
W
N
1
0
1.00
1
2
.02
112631
I hope you can see what I am missingâŠ
Thank you so much. Your software is GREAT!
Have fun,
Paxton