Linked Questions

16 votes
4 answers
31k views

Possible Duplicate: Javascript how do you find the caller function? I'm experimenting with javascript/jQuery a bit this morning and was trying to capture the caller name of the currently executing ...
Jannis's user avatar
  • 17.4k
5 votes
2 answers
12k views

Closed as exact duplicate of "How can I find the method that called the current method?" Is this possible with c#? void main() { Hello(); } void Hello() { // how do you find out the caller is ...
Serhat Ozgel's user avatar
  • 23.8k
2 votes
2 answers
8k views

Possible Duplicate: How do you find out the caller function in JavaScript? How can I find out in a javascript function which was the calling (the former in the call stack) function? I would like ...
Nyla Pareska's user avatar
  • 1,375
22 votes
1 answer
41k views

Possible Duplicate: Javascript how do you find the caller function? Is there a way to get the value of this from the function which has called the current function? Look at this: function TraceMySelf()...
Van Coding's user avatar
  • 24.6k
1 vote
2 answers
6k views

Possible Duplicate: How do you find out the caller function in JavaScript? If I put console.log() inside a function, is there anything that I can put inside the console.log() statement to find out ...
BrainLikeADullPencil's user avatar
3 votes
3 answers
1k views

Is it possible to get the class calling a function in JavaScript? For example: function Foo(){ this.alertCaller = alertCaller; } function Bar(){ this.alertCaller = alertCaller; } function ...
Ood's user avatar
  • 1,857
1 vote
2 answers
2k views

I am trying to get the name of a function which called the current function in jquery. For example, say there are three functions function a, function b, function c and when one of those functions ...
Brian Tyndall's user avatar
1 vote
2 answers
2k views

I have a common error function which is called from many places. I want to know from which function this was called. Is there any way to do it?
user2682527's user avatar
1 vote
1 answer
1k views

I am trying to find out which button in a GridView is calling a JavaScript function by figuring out which row it is in. I am using ASP.NET. Here is the necessary code: The JavaScript function (only ...
wlyles's user avatar
  • 2,316
0 votes
3 answers
293 views

Possible Duplicate: How do you find out the caller function in JavaScript? I have the following code: JS: function myfunc(mynumber){ console.log(mynumber); } HTML: <div onclick="myfunc(5);"...
Dzhuneyt's user avatar
  • 8,741
0 votes
1 answer
423 views

Is there a way in vanilla Javascript (ES5) to get the caller function and re execute it after an async call is done without the need to pass it as a callback function? I am building a caching ...
Kamal's user avatar
  • 1,964
0 votes
2 answers
80 views

So say, I have function Hello_world() : function Hello_world() { b(); } I want to create function b() where b() returns the name of the function in which called it. In this case I want b() returns "...
chris97ong's user avatar
  • 7,080
1 vote
3 answers
94 views

consider i have many methods in jscript.. method1() method2() method3() Now method1() and method2() are independent. where method3() is called by both the methods. I want to know from which method ...
Mani Deep's user avatar
  • 1,356
0 votes
1 answer
115 views

Is there a way to automatically know who called a specific function in JS? Let's say I have this code: function1() { function2(); } function2() { console.log('the function who called me is ...' + &...
delphirules's user avatar
  • 7,750

15 30 50 per page
1
2 3 4 5 6