Linked Questions
79 questions linked to/from How do you find out the caller function in JavaScript?
16
votes
4
answers
31k
views
Is there a way to get the name of the caller function within the callee? [duplicate]
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 ...
5
votes
2
answers
12k
views
How do you find the caller function? [duplicate]
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 ...
2
votes
2
answers
8k
views
Determine calling function in javascript [duplicate]
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 ...
22
votes
1
answer
41k
views
JavaScript - Get calling object [duplicate]
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()...
1
vote
2
answers
6k
views
How to use console.log to print out how which function called a piece of code? [duplicate]
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 ...
3
votes
3
answers
1k
views
Get the calling Class in JavaScript [duplicate]
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 ...
1
vote
2
answers
2k
views
Get name of function that passed parameters to current function in jquery [duplicate]
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 ...
1
vote
2
answers
2k
views
how to check calling function in jquery [duplicate]
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?
1
vote
1
answer
1k
views
Finding sender with JavaScript [duplicate]
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 ...
0
votes
3
answers
293
views
Get The Element That Calls a Function [duplicate]
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);"...
0
votes
1
answer
423
views
JS get caller function and re-execute it as async callback [duplicate]
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 ...
0
votes
2
answers
80
views
javascript - Get name of function through a function [duplicate]
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 "...
1
vote
3
answers
94
views
how to know which method is calling other method in javascript [duplicate]
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 ...
0
votes
1
answer
115
views
How to know what function called another in JavaScript? [duplicate]
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 ...' + &...