Time:
Scotland: Sat, 6:52 am
Rhode Island: Sat, 1:52 am
Florida: Sat, 1:52 am
New Mexico: Fri, 11:52 pm
California: Fri, 10:52 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

Selanac Embroidery and Screen Printing

Embroidery
Screen Printing
Signs and Banners
Promotional Advertising

WEBSITE

Contact Paul Canales
TEl: USA 732-901-8417
CELL: USA 732-773-1339


Please click here for more information


For continued disscussion on this topic : setInterval Cold Fusion and Strings


Chucker
11-07-2001, 07:08 PM
So, when I call the pre-defined function:

waitforIt('#theKey#');

it works fine. The # is because it is a Cold Fusion variable and the ' ' are to treat it as a string.


What I want to do is run this function through setInterval like:

theInterval = setInterval('waitforIt('#theKey#')', 1000);

but this doesn't work. The variable '#theKey#' isn't being passed. I think the single quotes inside the other single quotes are screwing things up.

Does anyone know the correct syntax to make this work?

Baz
11-07-2001, 07:26 PM
theInterval = setInterval("waitforIt('#theKey#')", 1000);
Does this solve it?

Chucker
11-07-2001, 07:37 PM
no sir.

Baz
11-07-2001, 08:13 PM
Erm... Where is "theInterval=" necesary for???

Vincent Puglia
11-09-2001, 01:24 AM
Hi Chucker,

setInterval requires a string, so normally I would say do something like:

theInterval = setInterval('waitforIt(' + "'theKey#'"+')', 1000);

note the single quotes within the double quotes.

However, since I don't have Coldfusion, I do not know that the above would work. But...it's worth a try.

Vinny