Re: function and arguments as aguments



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 =)

.



Relevant Pages

  • Re: I need help please....
    ... > I've copied the appropriate Java Script code into my html code on the index ... From the OS/2 WARP v4.5 Desktop of Brad BARCLAY. ...
    (comp.lang.java)
  • Re: Contents of a Directory
    ... the java script code bombed. ... If I comment out the above statement, my java script function does not bomb. ... >> names that are contained in a specified directory path. ... > Here's a reference to the Platform SDK: ...
    (microsoft.public.inetserver.iis)
  • RE: How to use a variable in web.config
    ... Store the value in a variable in code behind. ... Public serverval as string = configurationsettings.appsettings ... Now in java script call a function which has something like ... > How can I use the CompanyName in my jscript? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Sending an email with Java or VB Script
    ... I want to know how to send an email with Java Script or VB Script, ... On the client? ... On the server you can. ... string that I want to send it by email. ...
    (microsoft.public.scripting.jscript)
  • java script
    ... I have java script code to put into my web page. ... in the Publisher software to have it wrk correctly. ... Prev by Date: ...
    (microsoft.public.publisher.webdesign)