Hello,
I’m trying to assciate both function and it doesn’t work , my page which supposed to be loaded by
the loadxml function isn’t even fired. I get the first alert but the second one doesn’t appear.
The trigged page return a valid xml code but not any line of code is launched.
Here is my code, if sbd can help ?
Thanks !!
function doOnLoad(){
mygrid = new dhtmlXGridObject('gridbox-newsletter-resources');
mygrid.setImagePath("<% = Session("portalUrl") %>/js/dhtmlx/dhtmlxGrid/codebase/imgs/");
mygrid.setSkin("dhx_skyblue");
mygrid.setHeader("<% = lib_send %>,<% = lib_date %>,<% = lib_base_intelleco %>,<% = lib_title %>");
mygrid.setInitWidths("60,70,100,537");
mygrid.enableResizing("false,false,false,false");
mygrid.setColAlign("center,center,center,left");
mygrid.setColTypes("ch,ro,ro,ro");
mygrid.setColSorting("server,server,server,server");
mygrid.enableMultiline(true);
mygrid.enableAutoWidth(true);
mygrid.attachEvent("onBeforeSorting",customColumnSort)
mygrid.enableAutoHeight(true);
mygrid.attachEvent("onXLE",setCounter);
mygrid.attachEvent("onCheck", function(rId,cInd,state){
alert('ok1');
mygrid.loadxml('<% = Session("portalUrl") %>/ip-includes/action/nl_record_resource.asp?numPortal=<% = newsletterPortalNum %>&numNewsletter=<% = newsletterNum %>&newsletterNumIssue=<% = newsletterNumIssue %>&num=' + rId + '&state=' + state);
alert('ok2');
});
mygrid.init();
var url = "<% = Session("portalUrl") %>/ip-includes/views/buildTableXMLnewslettersResources.asp?numPortal=<% = newsletterPortalNum %>&numNewsletter=<% = newsletterNum %>&newsletterNumIssue=<% = newsletterNumIssue %>&purpose=listResourcesNewsletter"
mygrid.loadXML(url);
mygrid.attachEvent("onXLE",setCounter);
showLoading()
}