Topic: Get the name of function been executing

Hi guys, i´m a xajax lover, and i´ve been using it for the past 3 years, and that´s why i didn´t learn jquery yet smile

But now i´m having a weird problem, that seems xajax is timeouting  ...

I tried a bunch of things, but none with sucess.

now, what i´m tryng to do is

<script type="text/javascript">
xajax.callback.global.onRequest = function()
{
  alert([b]THE NAME OF THE FUNCTION, IE: xajax_AddItens, or any other function[/b]);
}
xajax.callback.global.onComplete = function() 
{
  alert('Terminou de rodar');
}
xajax.callback.global.onFailure = function() 
{
  alert('Deu erro rodando algo no xajax');
}
</script> 

in other words, i want to put an alert in the page, displaing the name of the xajax_function that i´m executing when it starts, and the name when its processing ... i read the manual online, but i can´t figure out how.

Can you guys help me ?

Thanks in advance.

Re: Get the name of function been executing

Any ideas ?

Re: Get the name of function been executing

HI,

Isn't the called function included in the debug output?

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Get the name of function been executing

Ed, the debug window isn´t shown because the script freenzes, and i don´t know where ...

Thxs for the answer.

Re: Get the name of function been executing

Duh! I'll look in the xajax js and see if it is available there...

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Get the name of function been executing

did you find a solution? I also need to get the name of the called function. But for a different purpose. I want to exclude a loading image to display for some calls based on the name of the function beeing called

Re: Get the name of function been executing

I found a solution to my problem, maybe it helps you too. See here:

http://community.xajax-project.org/topi … -function/