View Full Version : setTimeout()
08-21-2002, 04:14 PM
Please help me with this line :
I want to pass arg1, arg2, arg3, arg4 as arguments to the function funcName().
I am having probs using this line.
08-21-2002, 04:18 PM
setTimeout("funcName('" +arg1+"','" +arg2+'",'"+arg3+"','"+arg4+"')",arg4);
does that work for you?
08-21-2002, 07:30 PM
You'll only need the extra quotes if the function requires them; this varies from case to case (sometimes strings won't be evaluated as such unless they're there.
A memo to the mods: why is this editor randomly wrapping posted strings - it ruins a lot of code that way. vBulletin doesn't generally do that - a switch?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.