Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:32:12+00:00 2026-06-17T15:32:12+00:00

I have an update query to which I am passing a JavaScript array called

  • 0

I have an update query to which I am passing a JavaScript array called “newdata”, obviously, that didn’t work so I don’t know how to pass my JavaScript variables to ColdFusion in order to run an update query. How I can see surfing some webs? ColdFusion doesn’t have access to Javascript variables. Here’s my code, regards!

<cfquery name="updatereserva" datasource="Prueba">
    UPDATE reserva_habitac 
    SET FechaENTRADA = newdata["#firstdate#"]
    WHERE idRESERVA = newdata["idreserva"]                  
</cfquery>

Is there another way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:32:13+00:00Added an answer on June 17, 2026 at 3:32 pm

    There are several ways.

    • You could put the JavaScript variables into a form, and submit that to a specific page in your app.
    • You could execute an AJAX request that posts your JavaScript array as JSON to the desired page in your application
    • Etc.

    ColdFusion has some built in support for AJAX, but there are also a ton of JS libraries and frameworks that could do just as good (if not way better) of a job. There is, after all, nothing ColdFusion-specific about an AJAX request; CF just ships with some functionality to help, if you want to use that.

    The important thing is that in designing your app, you need to remember that JavaScript and ColdFusion operate in different contexts–the former on the client (browser), the latter on the server. While this is certainly not an impediment to making a very robust JavaScript-fronted app (or even an app that just used JavaScript here and there to talk to ColdFusion), you do have to design a bit differently than you would with a non-JS app, so it’s important to get the difference clear and go from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up an update query which will update values entered into text
i have a file which contains a lot of update query and some other
I have a bit of a monster update query that I can't quite fit
I have a query that is ExcelQuery = Update [Sheet1$] +set CITIZEN_ID = #
I have a MySQL UPDATE query which takes a long time to complete. Am
I have written a query which is a composite query like one update query
I have used a class in which i have this update query for Payment
I have an SQL query that takes the following form: UPDATE foo SET flag=true
I have the following code that I use in a Query to update a
postgreSQL question...I have an update query below which updates a column with the results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.