Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Selected date different then form date

Posts: 1
Registered: 6/15/2009
Member Is Offline
posted on 6/15/2009 at 08:34 PM Reply With Quote
Selected date different then form date

I want my form to have a default date of 12/31/2999, but the popup calendar selected date to be todays date. I tried the setup as below, but it didn't work. It seems the selected date is always whatever date is input into the field.

Help please?

<input type="text" name="PUdate" value="12/1/2999" size="10">
<script language="JavaScript">

// - set selected day to today
var d_selected = new Date();
d_selected.setDate(d_selected.getDate() );
var s_selected = f_tcalGenerDate(d_selected);

new tcal ({
// form name
'formname': 'swfpu_entry',
// input name
'controlname': 'PUdate',
'selected' : s_selected


View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum

Go To Top

Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004