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?
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?


