The single quotes around the window.location worked like a charm...
Thanks a lot for your help!
On Mar 31, 7:32 pm, James wrote:
> Slight typo on the second option:
>
> setTimeOut(doSomething, 5000);
>
> function doSomething() {
> window.location = 'http://www.google.com';
>
> }
>
> On Mar
Slight typo on the second option:
setTimeOut(doSomething, 5000);
function doSomething() {
window.location = 'http://www.google.com';
}
On Mar 31, 2:31 pm, James wrote:
> In some common ways, you'd have to either do it:
>
> setTimeOut(function() {
> window.location = 'http://www.goog
In some common ways, you'd have to either do it:
setTimeOut(function() {
window.location = 'http://www.google.com';
}, 5000);
or:
setTimeOut(doSomething, 5000);
doSomething() {
window.location = 'http://www.google.com';
}
or:
setTimeout('window.location = "http://www.google.com";',
setTimeout(window.location = "http://www.google.com";, 5000);
It seems that the script just completely ignores the timeout but
executes the code anyways... What is really weird is that if I put
some other code on a timer then it works correctly so maybe I am doing
the redirect wrong??
On Mar 30,
Can you show us how the "//redirect" part of the code looks like?
It should be on the lines of something like:
setTimeOut(function() {
location.href = '/somepage';
}, 2000);
On Mar 30, 4:05 pm, MonkeyBall2010 wrote:
> Yeah, that was just a typo on my behalf... The actual code does list
> t
Yeah, that was just a typo on my behalf... The actual code does list
the correct code... Any idea what I am doing wrong?
On Mar 27, 1:17 pm, James wrote:
> Javascript is case-sensitive:
> 'setTimeOut' should be 'setTimeout'
>
> On Mar 26, 5:08 pm, MonkeyBall2010 wrote:
>
>
>
> > I am using the
Javascript is case-sensitive:
'setTimeOut' should be 'setTimeout'
On Mar 26, 5:08 pm, MonkeyBall2010 wrote:
> I am using the validation plugin and the form plugin to validate my
> form and then submit the information via ajaxSubmit. I have everything
> working with the exception of my success ca
7 matches
Mail list logo