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: show calender inline not popup
purplepills
Junior Member

Posts: 2
Registered: 9/23/2007
Member Is Offline
posted on 9/23/2007 at 09:50 PM Reply With Quote
show calender inline not popup


is it possible to show the calendar in a div rather that a popup window?
View User's Profile View All Posts By User U2U Member
purplepills
Junior Member

Posts: 2
Registered: 9/23/2007
Member Is Offline
posted on 9/23/2007 at 11:04 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 9/28/2007 at 09:18 PM Reply With Quote

with slight modification to your code you'll still be able to achieve the same result.
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