OZONE Asylum
Forums
DHTML/Javascript
Running a function by name?
This page's ID:
27758
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I'm sure i've done this before but for the life of me i can't find any reference to it. Basically i want to run a function from within another function, when all i have is the name of the function that i want to run stored as a string. so.. [code] function f1(f2Name) { f2Name(); } f1('f2') function f2() { alert('blah') } [/code] I actually did have it working somehow through a few functions, but not anymore - not sure what I did...
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »