![]() |
Admin 2/7/2013 |
There is a Javascript function that accepts to Date objects and calculates difference in days. Make sure you convert whatever date values you have to Javascript Date objects first. function days_between(date1, date2) {
|
S
|
Suety29 author 2/7/2013 |
There is a Javascript function that accepts to Date objects and calculates difference in days. Make sure you convert whatever date values you have to Javascript Date objects first. function days_between(date1, date2) {
|
![]() |
Admin 2/8/2013 |
The function that I have posted simply calculates the date difference. It doesn't mean to update any fields on any page. |
S
|
Suety29 author 2/21/2013 |
The function that I have posted simply calculates the date difference. It doesn't mean to update any fields on any page. If you want to perform a certain action on field change check this example for inspiration: http://xlinesoft.com/phprunner/docs/how_to_calculate_values_on_the_fly.htm You will need to implement 'change' event handler in similar fashion and update another field value.
var ctrlArrDate = Runner.getControl(pageid,'Arr_Date'); |
![]() |
Admin 2/21/2013 |
I guess there is an error somewhere in your Javascript code. Here is the article that explains how to troubleshoot Javascript code: |
C
|
cgphp 2/21/2013 |
I have made some adjustments. Please, check the following code: var ctrlArrDate = Runner.getControl(pageid,'Arr_Date'); |
S
|
Suety29 author 2/21/2013 |
I have made some adjustments. Please, check the following code: var ctrlArrDate = Runner.getControl(pageid,'Arr_Date');
|