Alright I got a really weird application.
I have a couple of functions that I have converted into strings. I then run those through an Eval statement, and they work just as if I had written the functions directly.
Now that the initial tests are successfull I want to abstract my code a bit and run the eval statement inside a function.
The function as it stands now:
The function is created successfully, but now it is scoped localy and available only inside the function. Is there a way to make the function available globaly like you can do with a variable?Code:function loadFunction(functionString){ eval(functionString); }






Bookmarks