How do i make so when i make this call
client.notification("test", "test", function(){
alert("Hello world");
});
I can call the stuff inside the function(){….} in “client.notification”?
ex.
var client = ({"notification" : function(a,b,c){
document.write(a + b);
if ( .... ) {
//call the alert stuff from the function "c"
}
});
I’ve tried this:
$('#notification').click(eval(c));
without luck
try this: