M
mayur_hirpara
Hi,
I am looking to call a javascript function using variable number of
parameters.
Suppose I have a function
foo(param)
{
.....
}
I want it to be called unpredictebly when certain action occurs.
For example, I am using AJAX to make server call and get some data.
When I make the call, I also pass the name of my function in thi case
i.e. "foo". the server return some data and the name of the
client-function I originally passed in htis case i.e. "foo".
When the server call returns a callback funciton is invoked where I
process all data returned by server. Now when the callback function is
about the finish, I want it to call whatever function I passed to the
server, passing some data to it.
Any suggestion is highly appreciated.
Thank
--mayur
I am looking to call a javascript function using variable number of
parameters.
Suppose I have a function
foo(param)
{
.....
}
I want it to be called unpredictebly when certain action occurs.
For example, I am using AJAX to make server call and get some data.
When I make the call, I also pass the name of my function in thi case
i.e. "foo". the server return some data and the name of the
client-function I originally passed in htis case i.e. "foo".
When the server call returns a callback funciton is invoked where I
process all data returned by server. Now when the callback function is
about the finish, I want it to call whatever function I passed to the
server, passing some data to it.
Any suggestion is highly appreciated.
Thank
--mayur