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: Mutliple Calendars in 1 single form
radnelac
Junior Member

Posts: 3
Registered: 7/30/2007
Member Is Offline
posted on 7/30/2007 at 12:07 PM
Mutliple Calendars in 1 single form


Good afternoon,

I have 2 calendars in a single form and I am experiencing the follwowing problem: both calendar update the first field. I have checked the docuemtation and forum, but I just can't figure out what the problem could be.

Here's a snippet of my HTML code:

<td>Date From </td>
<td nowrap><input name="DateFrom" type="text" id="DateFrom" size="17" maxlength="19" readonly="yes">
<a href="javascript:cal1.popup();"><img src="cal.gif"></a></td>
<td>Date To </td>
<td nowrap><input name="DateTo" type="text" id="dateTo" size="17" maxlength="19" readonly="yes">
<a href="javascript:cal1.popup();"><img src="cal.gif"></a></td>

and the JS:

</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['frmDate'].elements['DateFrom']);
var cal2 = new calendar1(document.forms['frmDate'].elements['DateTo']);
</script>
</table>

Any help would be greatly appreciated.

G.
View User's Profile View All Posts By User U2U Member
radnelac
Junior Member

Posts: 3
Registered: 7/30/2007
Member Is Offline
posted on 7/30/2007 at 12:08 PM

Ok... I think I can now SEE, where th eproblem lies.... !!!

I think I am not fully awake...

G.
View User's Profile View All Posts By User U2U Member
radnelac
Junior Member

Posts: 3
Registered: 7/30/2007
Member Is Offline
posted on 7/30/2007 at 12:11 PM

Changed Cal1 for Cal2 and it works a treat...

G.
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