House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

List order mess-up with cfc and ajax

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Don L
05/12/2008 02:46 PM

What's the odd ball.  Form has dynamic elements with each starts with the letter of "A" (e.g., A1, A2, A..n) among other elements, form is passed to cfajaxproxy/cfc/js combo and submitted multiple times (specifically submitted at each element level, intended). On the cfc end, partially code looks like this: <cfset AList = ""> <cfloop item=i collection="#arguments#">              <cfif Left(i,1) IS "A">   <!-- or <cfif Left(i,1) IS "A" AND !ListFind(AList,"arguments.#i#")> --->      <cfset AList = ListAppend(AList,"arguments.#i#")>    </cfif>   </cfloop> ListLast(AList) does not always return the last appended item, how come? Envs: OS = Windows XP; CF = CF8 Stardard. Thanks.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Don L
05/12/2008 04:22 PM

Resolved by using another technique.


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists