View previous topic :: View next topic |
Author |
Message |
Vermule
Joined: 23 May 2006 Posts: 27
|
Posted: Wed May 24, 2006 3:29 pm Post subject: Triggering an onXXXXX event of the element that will be changed. |
|
|
I want to trigger the onChange Event of the Text Field that the calendar will be changing the value of.
I was wondering if I could get some help with this.
I have a date field that when the value is changed, it automatically sets the date value of two other fields. I need to do this when they select a date from the calendar as well, but I am having trouble where to call the onChange event from.
Thanks for any help.
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed May 24, 2006 4:10 pm Post subject: |
|
|
You just need the following code in plugins.js:
Code: | function fAfterSelected(y,m,d) {
if (gdCtrl.onchange) gdCtrl.onchange();
} |
Also, you may take a look at the following FAQ for other related usage.
http://www.calendarxp.net/forum/viewtopic.php?t=30
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
Vermule
Joined: 23 May 2006 Posts: 27
|
Posted: Thu May 25, 2006 8:28 pm Post subject: |
|
|
This helped, thank you!
|
|
Back to top |
|
|
|