NormanNewell
Junior Member
Posts: 3
Registered: 4/21/2005
Location: Ireland
Member Is Offline
|
| posted on 4/21/2005 at 02:23 PM |
|
|
how to read the returned date ?
Hi
I am completely new to this ( i normaly program in VB6) so this is probably a realy stupid question. However here goes i have managed to strip down
the code supplied with Tigra Calendar to one instance which is what i need . I wish to use the returned date in a query, however i cannot figure out
how i can get the data that is deposited by the calendar into the text field named input1. my code is as below
<html>
<head>
<!-- European format dd-mm-yyyy -->
<script language="JavaScript" src="calendar1.js"></script><!-- Date only with year scrolling -->
</head>
<form name="tstest">
<tr>
<td bgcolor="#ffffff" valign="top">
Select Date:<br>
<input type="Text" name="input1" value="">
<a href="javascript:cal1.popup();"><img src="Assets/Images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up
the date"></a><br>
</td>
</tr>
</form>
<script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
var cal1 = new calendar1(document.forms['tstest'].elements['input1']);
cal1.year_scroll = true;
cal1.time_comp = true;
//-->
</script>
<!-- /Body -->
<!-- Footer -->
<!-- /Footer -->
</body>
</html>
|
|
|
|