A
anoop.kn
Is there anyway to access Global Function Pointer from its name ?
I want to call the function at runtime during a script execution.
PS: eval() works, I looking for a more efficient way of doing the
same !
Ex:
function testfunction ( msg )
{
alert( msg );
}
function onclickCallback( )
{
var fname = "testfunction";
/*
I want to call the function testfunction here by having access to its
name
without the use of eval. Is it possible ?
*/
}
I want to call the function at runtime during a script execution.
PS: eval() works, I looking for a more efficient way of doing the
same !
Ex:
function testfunction ( msg )
{
alert( msg );
}
function onclickCallback( )
{
var fname = "testfunction";
/*
I want to call the function testfunction here by having access to its
name
without the use of eval. Is it possible ?
*/
}