Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Feedback
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2007, 01:03 AM
rgraham rgraham is offline
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default modification: allow past dates to the entered

Hello,

This is a really nice calendar, unfortunately it did not quite meet my needs - I need to allow dates to be selected that are in the past.

I have modified the script to allow this. It might not be the nicest way to do it (almost no comments in the code make it a bit difficult) but the new script is attached. It works well for me. By default past dates are not allowed (usual behavior) but you can allow them by calling setAllowPast(1). For example, below is my code to make the text area:

<input type="text" value="<?print date("d/m/Y");?>" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select(); setAllowPast(1); lcs(this)">

calendar.js.zip

Last edited by rgraham : 07-12-2007 at 01:05 AM.
Reply With Quote
  #2  
Old 07-16-2007, 01:04 PM
drut drut is offline
Junior Member
 
Join Date: Jul 2007
Posts: 1
Default modification: allow past dates to the entered

Hello

this modification is a great improvement, many thanks :-)

but it only works in one direction : if you set the calendar on 1/1/2007 and click on the right arrow, the calendar jumps to august 2007 (it takes 2 clicks, actually)

is there anything you can do ?
Reply With Quote
  #3  
Old 07-24-2007, 09:04 PM
Dreamweaver Dreamweaver is offline
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default

that is not new! we already got those functions.... just search a little bit
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:17 PM.