July 20, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
List order mess-up with cfc and ajax
Resolved by using another technique.Don L 05/12/08 04:22 P 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. Resolved by using another technique.
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||