Hi,

Am trying to display all the items inside a ArrayList, but without using the cfloop.
Could someone help me on this !!!!

Its urgent....

Actually my issue is am trying to call a Javascript function within the loop of that arraylist. I can do that using Cfloop, but its not fullfill my requirement so am trying to execute that Arraylist without cfloop.

I tried with cfscript but not sure how to call a javascript function within cfscript.

Thanks
Ashish

You can convert the array to list using ArrayToList() method. Then you can simpley put the list inside cfoutput inside hash symbol. By this you can display all elements of array without looping over. But here to remember that, you must not be holding any complex variables in array.

Please let me know if this makes sense for you. Also let me know if you have any queries on it.

Regards,
Dipak

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.