Re: empty array elements

2008-02-19 Thread Richard White
hi thanks for all your posts i will try it without the list qualify and how you suggested, thanks again. its good to know that i am on the right tracks though!! richard ~| Adobe® ColdFusion® 8 software 8 is the most important

Re: empty array elements

2008-02-19 Thread Richard White
>Apologies, I completely mis-read your OP :o thats ok no problem i thought i was going crazy for a min :) thanks dominic ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: empty array elements

2008-02-18 Thread Dominic Watson
> > hi dominic thanks for this. sorry i am not understanding correctly, why > would i delete an array element when i need to keep them? just want to > understand what you mean Apologies, I completely mis-read your OP :o Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~~~

Re: empty array elements

2008-02-18 Thread Dominic Watson
;) The array stuff is really very useful - I can't remember who had the problem that I just blogged about, and I can't think how that situation could unavoidably arise, but that fixed it in a jiffy. Back to the problem though. In CF8, ditching the listQualify does indeed show a double comma for th

RE: empty array elements

2008-02-18 Thread Brad Wood
Thanks for the link to the post on hidden array methods though-- I have learned my new CF/Java item for the day. :) ~Brad -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 3:07 PM To: CF-Talk Subject: Re: empty array elements > >

Re: empty array elements

2008-02-18 Thread Dominic Watson
> > While helpful, I don't think your blog post has to do with Richard's > actual problem. He does not appear to be dealing with missing array > elements-- just empty ones. Furthermore, he does not wish to remove > them-- but to retain them. ;) yeh - I misread it. Oops. Dom -- Blog it up: ht

RE: empty array elements

2008-02-18 Thread William Seiter
://William.Seiter.com -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 12:40 PM To: CF-Talk Subject: Re: empty array elements >What method are you using to cast your CF array over to a JS array? hi william i am using the following code:

RE: empty array elements

2008-02-18 Thread Brad Wood
on [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 2:58 PM To: CF-Talk Subject: Re: empty array elements I've just blogged about my solution to this problem. I'm not quite sure how it is arising in your case, but the post demonstrates the problem and fix: http://fusion.dominic

Re: empty array elements

2008-02-18 Thread Dominic Watson
I've just blogged about my solution to this problem. I'm not quite sure how it is arising in your case, but the post demonstrates the problem and fix: http://fusion.dominicwatson.co.uk/2008/02/undefined-array-elements.html Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~

RE: empty array elements

2008-02-18 Thread Brad Wood
I think your list conversion is the problem. CF pre 8 ignores empty list elements. Have you considered cfwddx? ~Brad -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 2:40 PM To: CF-Talk Subject: Re: empty array elements >What met

Re: empty array elements

2008-02-18 Thread Richard White
>What method are you using to cast your CF array over to a JS array? hi william i am using the following code: var columnNameArray = new Array(#listQualify(arrayToList(columnName), "'")#); except i am noticing the same problem in cf arrays, is this not usual? thanks ~~~

Re: empty array elements

2008-02-18 Thread Richard White
hi dominic thanks for this. sorry i am not understanding correctly, why would i delete an array element when i need to keep them? just want to understand what you mean thanks richard ~| Adobe® ColdFusion® 8 software 8 is the

Re: empty array elements

2008-02-18 Thread Dominic Watson
> > hi dominic, thanks for this, this looks quite interesting although i want > to know if its possible to actually keep all blank elements Sure, I was thinking about this and it's quite simple really: aTemp = ArrayNew(1); aTemp[2] = ''; ArrayDeleteAt(aTemp, 2); myArray.RemoveAll(aTemp);

RE: empty array elements

2008-02-18 Thread William Seiter
What method are you using to cast your CF array over to a JS array? William -- William E. Seiter Have you ever read a book that changed your life? Go to: www.winninginthemargins.com Enter passkey: goldengrove Web Developer / ColdFusion Programmer http://William.Seiter.com -Original Messa

Re: empty array elements

2008-02-18 Thread Richard White
hi dominic, thanks for this, this looks quite interesting although i want to know if its possible to actually keep all blank elements thanks again ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to

Re: empty array elements

2008-02-18 Thread Dominic Watson
Here's a little something to delete all blank array elements (both undefined and blank strings): aTemp = ArrayNew(1); aTemp[2] = ''; myArray.RemoveAll(aTemp); Here's an article on the underlying java methods of the array object which include the removeAll method: http://coldfused.blogspot.