Is there a way to run a function dynamically. For instance:
If I have a function: validatePage()
and I also have a function: savePage()
Is it possible to do something like:
function doAction(action_type){
{action_type}+Page();
}
Then I could do: onClick="doAction('validate');"
which would run:
doAction('validate'){
validatePage();
}
I hope this make sense. Let me know if you have a question.
_______________
_brian.
If I have a function: validatePage()
and I also have a function: savePage()
Is it possible to do something like:
function doAction(action_type){
{action_type}+Page();
}
Then I could do: onClick="doAction('validate');"
which would run:
doAction('validate'){
validatePage();
}
I hope this make sense. Let me know if you have a question.
_______________
_brian.