Advertisement

06.24.2008 at 11:14AM PDT, ID: 23511993
[x]
Attachment Details

Need a function to execute when a separate function changes a textfield

Asked by TARDEC in JavaScript

Tags: Javascript, All

I have a text field that is modified/updated when a user clicks on a date on a pop-up calendar.
When the text field is changed, I need a separate function to execute.

Is there any way to know that the text field has been programatically changed?

I have successfully implemented using the onchange() function for the text field, but it only appears to fire when the user actually types something new in the field and not when a different function updates its value.

Also, I am trying to avoid modifying the pop-up calendar code to include a call to my function since it is a frequently used piece of code that is linked to in several places already without the desire for this added functionality.
Start Free Trial
[+][-]06.24.2008 at 11:29AM PDT, ID: 21858745

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 11:40AM PDT, ID: 21858888

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: Javascript, All
Sign Up Now!
Solution Provided By: x_com
Participating Experts: 2
Solution Grade: B
 
 
[+][-]06.26.2008 at 12:44PM PDT, ID: 21878297

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 02:17AM PDT, ID: 21881943

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628