Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Object is not a function error

0
0
Hi,

I Am trying to use global objects member within event handler, when event fired it throws exception "obj.PROCESSFAX is not a function". code is
var obj=new FaxProcessor.FaxProcess.Main();
var conncect=HotKeyNotifier.HotKeyPressed.connect(function(obj){
    obj.PROCESSFAX('sample.png');
}
does objects static member cause this error. works with other objects and outside of event handler.

Thanks and Regards
Praveen Kumar

Viewing all articles
Browse latest Browse all 2297