Subj : Querying the name of the function being called in the static callback To : netscape.public.mozilla.jseng From : "Stephen Jones" Date : Wed Mar 12 2003 09:38 am Is it possible to point multiple methods/function to the same static callback and somehow determine which method is being called? Ideally, I would like to query the string name of the method. Something like this: static JSBool StaticMethod(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { string theName = GetMethodName( ); if ( theName == "foo" ) { // do foo } else if ( theName == "bar" ) { // do bar } return JS_TRUE; } Thanks, - Stephen Jones .