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 593029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:48:07+00:00 2026-05-13T15:48:07+00:00

We use a DHTML calendar picker that only allows you to change the date,

  • 0

We use a DHTML calendar picker that only allows you to change the date, which is desired functionality. However, I need to figure out the javascript to change the date next to the calendar picker, as seen in the image below, and popup an “are you sure” message.

date example

The above image is one row in a table, so the JS needs to be aware of which one of potentially 10+ dates it should be editing.

I’m a bit of a javascript n00b. Still learning new things. Feel free to link me to things to read and tips/hints/etc.

If it helps any, we’re using PERL with CGI. I guess the JS will have to have an AJAX call to update the database, which I can figure out from other examples in the code base. I just need to figure out how to edit the date on the page for now.

And for clarification, the process is… the person clicks on that calendar icon, gets a DHTML date picker, chooses a date, confirms he wants to change datetime1 to datetime2, and then the change gets applied to the text you see next to the calendar icon and gets put in the database.

  • 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-05-13T15:48:07+00:00Added an answer on May 13, 2026 at 3:48 pm

    Having the actual web page (HTML & JS) would really help here. But, in general, you’ll need a way for the JS to “address” the text you’d like to change. The easiest way I know is to wrap the text in a DIV or SPAN, with a unique ID (“datetime1”, “datetime2”, etc.).

    Then, assuming you know which piece of JS is being called when the datepicker runs, access the text item like:

    document.getElementById('datetime1').innerHTML = (insert new datetime here);
    

    You’ll need a way to pass the ID (datetime1, etc) to the JS, but that should be easy if Perl is generating the 10 datetime rows (i.e., the FOR loop in Perl just sticks in sequential IDs into the DIV/SPANs and again as arguments to the datepicker function).

    I assume you know (or can find) how to do “alert()” in JS, so the confirmation should be the easiest part.

    It also sounds like you need to send the new dates back into some DB. I suggest a FORM to send it all back to the Perl CGI, which will have to update the DB. Folks more clever than me might be able to tell you how to do that in JS w/ AJAX, etc.

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

Sidebar

Related Questions

So I have a lot of projects coming that could use a little dhtml
I need to generate Dhtml menus. but i want to use a tool. does
I've got a custom component that I need to use if I create a
I'm going to use that template engine LTP . There is not so much
I need to write a DHTML page. But, since I have most of the
Of the following: HTML, XHTML , DHTML which one is the present standard? Which
I use a Joomla! plugin that takes advantage of the DHTMLxGrid library, particularly version
Many of us use jsfiddle.com to share DHTML situations with other people. You can
I want to use DHTMLX for asp.net and not for mvc. I can only
I've got an old, legacy VB6 application that uses the DHTML editing control as

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.