Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 12th, 2006, 03:33 PM
Authorized User
 
Join Date: Aug 2004
Location: Amsterdam, NH, Netherlands.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alcapone
Default copy date values between date controls

Hi,

I am new to js so correct me if i am wrong.

Is this the correct way to copy values between two datepicker controls?

var date1 = datepicker.value;
datapicker2.value = date1

Thanks
Reply With Quote
  #2 (permalink)  
Old April 13th, 2006, 03:13 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Alcapone!!
by using custom date picker you can't set the values in two datecontrol boxes.
you can change the behaviour by creating a javascript function which you will need to call on click on one date picker ,this javascript function will then call a parent window function which will again set the value of other datecontrol box.
Even you can set the value from the datepicker control(popupwindow),but the problem is that for some datecontrol you may not want to set otherdate control box values and by using parent javascript function you can alter the behaviour of datevalues to other datecontrol boxes too.

Hope this will help you


Cheers :)

vinod
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandatory date values rajat_aggarwal03 XML 3 November 6th, 2008 09:47 AM
DATE / TIMESTAMP default values WarHead MySQL 2 April 20th, 2006 10:18 AM
Validation Expression for Date Values pramesh_it ASP.NET 1.0 and 1.1 Basics 1 April 4th, 2006 09:06 AM
how to copy date from doc files jitendersingal General .NET 0 February 13th, 2006 07:19 AM
how to show 2 different values based on date maria Crystal Reports 1 August 4th, 2004 08:21 AM



All times are GMT -4. The time now is 02:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.