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
>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
>
> 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
~~~
;) 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
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
>
>
>
> 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
://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:
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
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
~
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
>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
~~~
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
>
> 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);
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
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
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.
16 matches
Mail list logo