how to define callback in eval script
I am passing a script in the eval 

Here is my script which m passing in eval .

    var query={};
    query.command="execute";
    query.filename="lily/addkb.scr";
    query.paraminput="id=USER.33";
    execscript(query,  function(data){
       console.log(data);
       _callback(data);  
    });

In this script m calling a _callback on complete of this eval .

Here is my eval code .


                function donodescript(script, _callback) {
    			eval(request.script);
    		}
    		donodescript(script, function(result) {
    			callback(result);
    		});


but when i run this code it says **_callback is not defined** why so Please suggest.








how to define callback in eval script
===

I am passing a script in the eval 

Here is my script which m passing in eval .

    var query={};
    query.command="execute";
    query.filename="lily/addkb.scr";
    query.paraminput="id=USER.33";
    execscript(query,  function(data){
       console.log(data);
       _callback(data);  
    });

In this script m calling a _callback on complete of this eval .

Here is my eval code .


                function donodescript(script, _callback) {
    			eval(request.script);
    		}
    		donodescript(script, function(result) {
    			callback(result);
    		});


but when i run this code it says **_callback is not defined** why so Please suggest.







