Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Browser incompatibility in a popup calendar routine - July 16, 1998 at 06:57:40

You are here: irt.org | BBS | Browser incompatibility in a popup calendar routine [This BBS is closed]

Posted by Samir Al-Amar on July 16, 1998 at 06:57:40:

I have found a JavaScript routine that enables the user to click on a calendar icon which launches a calendar popup window. The user can then select the date and then the window closes and the date appears in the text field on the original page.
The problem is that the routine works perfectly in Netscape Navigator 4.x but when run in Internet Explorer 4.x the JavaScript error message "no such interface supported" appears. As I am developing in IE 4.0 I need to get it to work.

The code is:

<FORM NAME=inputForm METHOD=POST ACTION="description.html" onSubmit="return false;">Enter Date: <INPUT TYPE=TEXT VALUE="MM/DD/YYYY" NAME=DATE1 SIZE=10>
<A HREF="#" onClick="window.dateField = document.inputForm.DATE1;calendar =
window.open ('calendar.html','cal','WIDTH=200,HEIGHT=250')"><IMG SRC="calendar.gif" BORDER=0 > Popup Calendar</A> </FORM>

This code calls a "calendar.html" file that displays the calendar, and returns the date value after the click.

Any help would be gratefully appreciated, or if you know of another routine that does the same thing a response would be very helpful.

Thanks.

Follow-ups:

You are here: irt.org | BBS | Browser incompatibility in a popup calendar routine [This BBS is closed]

©2018 Martin Webb