Re: function and arguments as aguments
- From: "UnaCoder" <unacoder@xxxxxxxxx>
- Date: 15 Feb 2006 14:01:59 -0800
Well I thought there was and I researched java script to see if you can
invoke a string containing java script code. the solution that seemed
intuitive would be to do something like:
function Tunnel() {
function_name= arguments[0];
arguments.shift(); args = arguments.join();
eval function_name + "(" + args + ");";
}
I didn't put any error checking in there, or test that code, but as far
as I know that should work =)
.
- Follow-Ups:
- Re: function and arguments as aguments
- From: RobG
- Re: function and arguments as aguments
- From: Telmo Costa
- Re: function and arguments as aguments
- References:
- function and arguments as aguments
- From: Telmo Costa
- Re: function and arguments as aguments
- From: UnaCoder
- Re: function and arguments as aguments
- From: Telmo Costa
- function and arguments as aguments
- Prev by Date: Creating Arrays from Strings
- Next by Date: Re: Refreshing Part of a Page
- Previous by thread: Re: function and arguments as aguments
- Next by thread: Re: function and arguments as aguments
- Index(es):
Relevant Pages
|
|