How to convert javascript array to coldfusion array?

Posted on 2008-11-20
Last Modified: 2013-12-24
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).
Question by:chowdhury_sanjoy
    LVL 9

    Accepted Solution

    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..
    LVL 10

    Expert Comment

    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,';

    Author Closing Comment

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
    I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now