Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
I agree. The query param is more of a hack "if you don't control the serving template." ;) On 10/31/11 6:19 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: > >>you can add > something like '?cachebuster=' + new Date().getTime() to your request URL. > > Right, but I prefer the first method. > Fi

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread Claude Schnéegans
>>you can add something like '?cachebuster=' + new Date().getTime() to your request URL. Right, but I prefer the first method. First because my Ajax function is getting the url in a parameter, sometimes with ?values in it, sometime with none, so sometimes ?cachebuster=should be added, sometime

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
re code, but work as well. Thanks for the help! Rick -Original Message- From: .jonah [mailto:jonah@creori.com] Sent: Monday, October 31, 2011 6:16 PM To: cf-talk Subject: Re: OT, JS : Why am I getting this error? And if you don't control the that serving template, yo

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
Ok... will do... -Original Message- From: Claude Schnéegans [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans >Nope... no IE for dev. Always FF with FB. OK, but still, use these headers, in case you have some users under IE. ~

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
And if you don't control the that serving template, you can add something like '?cachebuster=' + new Date().getTime() to your request URL. On 10/31/11 3:13 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: > >>Nope... no IE for dev. Always FF with FB. > > OK, but still, use these headers, in case

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
Ha! Nice. We get so used to non-typed CFML. ;) On 10/31/11 3:07 PM, Rick Faircloth wrote: > The console.log showed that all values were correct, > but I needed to use parseInt when calculating values > to avoid concatenation. ~

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread Claude Schnéegans
>>Nope... no IE for dev. Always FF with FB. OK, but still, use these headers, in case you have some users under IE. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?t

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
atpos + 2 || dotpos + 2 == > fieldToValidate.val().length ) > > > > -Original Message- > From: Rick Faircloth [mailto:r...@whitestonemedia.com] > Sent: Monday, October 31, 2011 5:19 PM > To: cf-talk > Subject: RE: OT, JS : Why am I getting this error? > >

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
Nope... no IE for dev. Always FF with FB. -Original Message- From: Claude Schnéegans [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans >and sometimes changes document changes don't refresh Are you using Explorer ? There is a well known bug in IE about caching Ajax requests. See http://coldfus

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread Claude Schnéegans
>>and sometimes changes document changes don't refresh Are you using Explorer ? There is a well known bug in IE about caching Ajax requests. See http://coldfusion.tcs.de/coldfusion-ie-cache-problem-with-repeating-ajax-requests/ I've added this at the top of the called template, and it solved t

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
atpos + 2 || dotpos + 2 == > fieldToValidate.val().length ) > > > > -Original Message- > From: Rick Faircloth [mailto:r...@whitestonemedia.com] > Sent: Monday, October 31, 2011 5:19 PM > To: cf-talk > Subject: RE: OT, JS : Why am I getting this error? > > > We

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
---Original Message- From: .jonah [mailto:jonah@creori.com] Sent: Monday, October 31, 2011 4:51 PM To: cf-talk Subject: Re: OT, JS : Why am I getting this error? what I'd do in this case is log each of the tests above the if. console.log(atpos); console.log(dotpos); console.log(fiel

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
ilto:jonah@creori.com] Sent: Monday, October 31, 2011 4:51 PM To: cf-talk Subject: Re: OT, JS : Why am I getting this error? what I'd do in this case is log each of the tests above the if. console.log(atpos); console.log(dotpos); console.log(fieldToValidate.val().length); console.log(atpos <

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
t; > > > -Original Message- > From: .jonah [mailto:jonah@creori.com] > Sent: Monday, October 31, 2011 4:28 PM > To: cf-talk > Subject: Re: OT, JS : Why am I getting this error? > > > In JS Comparison (what you are doing) is "==", while assignment (what &

RE: OT, JS : Why am I getting this error?

2011-10-31 Thread Rick Faircloth
, 2011 4:28 PM To: cf-talk Subject: Re: OT, JS : Why am I getting this error? In JS Comparison (what you are doing) is "==", while assignment (what it's complaining about) is "=". On 10/31/11 1:19 PM, Rick Faircloth wrote: > Assuming the vars are correctly as

Re: OT, JS : Why am I getting this error?

2011-10-31 Thread .jonah
In JS Comparison (what you are doing) is "==", while assignment (what it's complaining about) is "=". On 10/31/11 1:19 PM, Rick Faircloth wrote: > Assuming the vars are correctly assigned, > why would this statement: > > var atpos = fieldToValidate.val().indexOf('@'); > var dotpos = fieldToValid