[jQuery] Re: Validation Success Callback

2009-04-01 Thread MonkeyBall2010
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

[jQuery] Re: Validation Success Callback

2009-03-31 Thread James
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

[jQuery] Re: Validation Success Callback

2009-03-31 Thread James
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";',

[jQuery] Re: Validation Success Callback

2009-03-31 Thread MonkeyBall2010
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,

[jQuery] Re: Validation Success Callback

2009-03-30 Thread James
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

[jQuery] Re: Validation Success Callback

2009-03-30 Thread MonkeyBall2010
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

[jQuery] Re: Validation Success Callback

2009-03-27 Thread James
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