chadypu
08-12-2003, 10:49 AM
i need to make one function that calls 2 functions... how can i do that?
function call() {
func1()
func2()
}
could i do it like that?
function call() {
func1()
func2()
}
could i do it like that?
|
Click to See Complete Forum and Search --> : calling 2 functions chadypu 08-12-2003, 10:49 AM i need to make one function that calls 2 functions... how can i do that? function call() { func1() func2() } could i do it like that? Khalid Ali 08-12-2003, 11:01 AM of course you can..:-) chadypu 08-12-2003, 11:03 AM is that exactly how you do it? kthanks DJRobThaMan 08-12-2003, 12:17 PM This should work.... function call(){ eval('func1()'); eval('func2()'); } Jona 08-12-2003, 12:20 PM Originally posted by DJRobThaMan This should work.... function call(){ eval('func1()'); eval('func2()'); } Yes, but what he posted already should work fine, as well. There isn't any need for the eval() method here, that I'm aware of. [J]ona DJRobThaMan 08-12-2003, 12:26 PM Damn.... I didn't know that Nice Jona 08-12-2003, 12:30 PM Just tellin' ya. :) [J]ona webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |