Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using IE5.0 calendar behavior with ASP

0 views
Skip to first unread message

Chris Nafziger

unread,
Jun 11, 2001, 4:29:56 PM6/11/01
to
I'm trying to use the calendar behavior that shipped with IE5. I have a frames
page with frames named Top & Bottom. Within Bottom, there are two frames; Left &
Right. In the Right frame, I need to display two calendars for date range
selection, along with one select box, Market. I planned on simply using the
onChange event on each calendar so that when one of the dates was changed, it
would fill the value in a hidden form field (one for each calendar) to be sent to
the next .asp page that will process the query. Regardless of what I put into
the onChange event, it doesn't fire! The documentation says it should... If
anyone has any ideas on this, I would really appreciate some input. Thanks!
BTW, I realize this only works (supposedly) in IE5.0+. The calendar.htc file can
be found at the link.

What I have so far... (condensed version)

<html xmlns:IE>
<!--#INCLUDE FILE="IncDefaultStyle.asp" -->
<STYLE>
@media all
{
IE\:Calendar
{
behavior: url(calendar.htc) ;
}
}
</STYLE>
<body><form name="Criteria" method="POST" action="SiteStatisticsSections2.asp">
<table border="0" width="450" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><p><strong>Section Usage Report</strong></p></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>td width="50%" align="center">Starting date:</td>
<td width="50%" align="center">Ending date:</td></tr>
<tr><td width="50%" align="center"><IE:Calendar name="CalStart" id="CalStart"
style="width : 220; height : 170; border : 1px solid black;"
onChange="document.reload(force);"></IE:Calendar></td>
<td width="50%" align="center"><IE:Calendar name="CalEnd" id="CalEnd"
style="width : 220; height : 170; border : 1px solid black;"
onChange="document.reload(force);"></IE:Calendar></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2" align="center">Market:&nbsp&nbsp;<select name="Market">
<option value="1">Contract & Religious</option>
<option value="2">Contract</option>
<option value="3">Religious</option></select></td></tr>
<tr><td colspan="2" align="center"><br><input type="submit" value="Go!">
<input type="hidden" name="Start"><input type="hidden" name="End">
</td></tr></table></form></body></html>

0 new messages