Thanks got it working , typo ! Justin
> -----Original Message----- > From: Steve D [mailto:steve@;satachi.com] > Sent: 06 November 2002 17:29 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] JavaScript question > > > timername = "timer" + counter++; does create a dynamic name for your > timer ("timer1", "timer2", timer3", etc) ? Maybe I am not understanding > what you want exactly ? The function below won't work cos it has a > double "))" at the end of the setTimeout line. > > > -----Original Message----- > > From: Justin MacCarthy [mailto:macarthy@;iol.ie] > > Sent: 06 November 2002 17:03 > > To: [EMAIL PROTECTED] > > Subject: [ cf-dev ] JavaScript question > > > > > > Hi , quick JavaScript question. I want to create a timer with > > a dynamic name so I can > > > > e.g. > > > > > > function newtimer() > > { > > timername = "timer" + counter++; > > timername = setTimeout("do something", 1000)); > > return timername; > > } > > > > but I'm having coders block :-) It's probably something like > > eval().. > > > > Anyone put me out of my misery ? > > > > Thanks > > Justin > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] For human help, e-mail: > > [EMAIL PROTECTED] > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
