Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 19, 2008 22:58
open dhtmlx forum
DHX Grid, Tree: Passing parameters to the afterCall function

Hi there,
Can I pass my parameters to the afterCall function which will be called after loading XML ??
Answer posted by Support on Oct 20, 2008 03:27
Technically you can create a function wrapper, which will send all necessary parameters, but there is a much more simple solution - you can use local scoope to transfer any necessary info

var fake_param = "some necessary value"; // local variable, can be not visible from global scoope
mygrid.load(url,function(){
    alert(fake_param); //this code has access to all local variables, defined before mygrid.load call
});