I’ve seen in quite a few examples of asp.net ajax client side script the following:
function fHelloWorld(source, eventArgs)
{
}
If I run an alert on the source it’s returned as an object. Can I use this to access what called the function? And if so how? i’ve tried things like
source.id;
Without luck
The best advice that I can offer is, given an object, enumerate over the properties and write them out, including their values to the page. Then inspect the property values and will surely find out if such a property exists. You could also use Firebug, Fiddler2 or host of other tools to inspect the object.
Here’s an example