purplepills
Junior Member
Posts: 2
Registered: 9/23/2007
Member Is Offline
|
| posted on 9/23/2007 at 09:50 PM |
|
|
show calender inline not popup
is it possible to show the calendar in a div rather that a popup window?
|
|
|
purplepills
Junior Member
Posts: 2
Registered: 9/23/2007
Member Is Offline
|
| posted on 9/23/2007 at 11:04 PM |
|
|
Ok it seems I have to buy Pro to achieve this which is not problem. But I have a question before I buy it. Currently I am using the free version
that works well and it seems this snippet of code was added to take the date from the calendar input and subract the difference of days from the input
date to the current date and send the value to another field letting the user know how many days are left until that particular day.
It is as follows
var today = new Date();
//var targetdate = new Date("Jan 31, 2999")
fieldname = "00N30000001D4et";
//var targetdate = new Date(window.opener.earthcalc_form.elements['00N30000001D4et'].value);
var targetdate = new Date(obj_caller.target.value);
var msPerDay = 24 * 60 * 60 * 1000 ;
var daysLeft = (targetdate.getTime() - today.getTime()) / msPerDay;
//var daysLeft = "5";
daysLeft = Math.ceil(daysLeft);
opener.document.earthcalc_form.dayslefttil.value=daysLeft;
Will this still work if I upgrade to the modal Pro version? I still need to calculate the days left and send it to another field.
|
|
|
tigra
Administrator
Posts: 1869
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 9/28/2007 at 09:18 PM |
|
|
with slight modification to your code you'll still be able to achieve the same result.
|
|
|