I have this jquery function
function example(file, targetwidget, callback){
$(targetwidget).load(file, {limit: 25}, function(){
$(\"#widget_acco
well.. You do this way:
function example(file, targetwidget, callback){
$(targetwidget).load(file, {limit: 25}, function(){
if(typeof(callback)==='function'){
callback.call(this, 'other parameters');
}
});
The paramenters of callback will help you to send data back to callback function. ATTENTION, don't forget the this
keyword!