ripeie
Newbie
Posts: 1
Registered: 10/3/2007
Location: Ireland
Member Is Offline
|
| posted on 10/3/2007 at 03:15 PM |
|
|
Won't work on IE just in firefox
Hi guys,
Can somebody help me fix this :(. It won't open in IE just in Firefox. Is the code wrong or where is the bug?
| Code: |
<script language="JavaScript" src="calendar1.js" type="application/javascript" ></script>
----------------------------------------------------------------
<input type="Text" name="date" readonly="readonly" style="background-color: #CCCCCC ;color:#000000" value="">
<a href="javascript:cal1.popup();"><img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the
date" /></a>
-------------------------------------------------------
<script language="JavaScript">
var cal1 = new calendar1(document.forms['form'].elements['dates']);
cal1.year_scroll = true;
cal1.time_comp = false;
//-->
</script>
|
|
|
|
tigra
Administrator
Posts: 1868
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/3/2007 at 03:37 PM |
|
|
1. make sure form has name="form" (which is not very descriptive name, consider changing)
2. in your input box you have
name="date"
but in the calendar call you have:
elements['dates']
those two have to match
|
|
|