Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 882
  • Last Modified:

How to convert javascript array to coldfusion array?

How to get the contents of a javscript array into acoldfusion array? I am coding in Coldfusion MX7.0 and Javascript. My problem is that i am unable to get the values of a javascript array into a coldfusion array. I have a javascript array containing some values. Now i want to insert the values present in this javascript array into the database through a Insert query (within a <cfquery> tag).
1 Solution
Andrew MaurerCommented:
Put your javascript array into a url or form variable and use that medium to pass it to CF.

Here is a small article to describe more..
stu215Systems AnalystCommented:
You could change the array to a delimited list  [ test1,test2,test3, ] and then assign it to a variable in a form and pass it to the next page.

myList=' test1,test2,test3,';
chowdhury_sanjoyAuthor Commented:
It gave me a idea but it didn't help accurately. Anyways thanks. I need to close the question. Since i have another question

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now