CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Keep in sync two date textboxes clientside

Print topic Send  topic

Author Message
csierra

Posts: 123
Posted: 03/02/2008, 12:16 AM

Hello all, I have some problems trying to make two textboxes in sync, date fields:

Let's say I have two fields (date) in a form, I want to change the 2nd one at a value 3 days after 1st one has changed (via datepicker), so I go and create custom code, OnChange, client, I wrote this; reports no error, however it does not work

  
/tbTicketsTravel_Date_From_OnChange @33-07D27989  
function tbTicketsTravel_Date_From_OnChange()  
{  
    var result;  
//End tbTicketsTravel_Date_From_OnChange  
  
//Custom Code @58-2A29BDB7  
    // -------------------------  
      
	var date1 = document.getElement('tbTicketsTravel_Date_From');  
	var date2 = document.getElement('tbTicketsTravel_Date_To');  
	date2.text = date1.text;  
	return result;  
  
    // -------------------------  
//End Custom Code  

Any ideas very appreciated

Thanks
_________________
Yes! I Can!!!
View profile  Send private message
Oper


Posts: 1195
Posted: 03/02/2008, 3:15 PM

first try without DatePicker?

does it work?

_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.