Please help with this DHTML calendar for Web - in Notes development

I’m trying to implement this DHTML calendar (Intro to HTML Basics | WebReference) in my web application and am having trouble. I’m familiar with JS, libraries, HTML and CSS, but I guess I just don’t have the right stuff in the right place…

I pulled in the JS library and edited a couple of attributes, mainly the input_element_id and click_element_id fields to match the id’s I assign in the Notes form.

I have tried using straight HTML to get it to work and just can’t wing it. Everything displays, but nothing happens when I click on the image.

I have included the JS library as a resource doing it the Notes way and also including it the HTML way - all to no avail.

This is all of the pass-thru HTML I have on the form…

<dlcalendar click_element_id=“img_CFR”

        input_element_id="date_CFR"

        tool_tip="Click to pick date"></dlcalendar>

A DHTML Lab Popup Calendar with an associated input text element, a mouseover tooltip and generated from an image element click:

   <img align="middle" id="img_CFR" src="/Projects/cfr.nsf/calendar.gif" height="13" width="13" alt="My tool tip"></p>
I know that's simple, but I just want to get it to at least work and then I can incorporate it into my DB... Please help!

Subject: Please help with this DHTML calendar for Web - in Notes development

Not sure whether to take you too literally, but do you have this line:

… actually on your Notes form marked as pass-thru html? Or is that the BODY tag that is automatically generated by Notes? If the external script references “document.body” and you have two or more body elements listed on the form, it might be getting confused.

If you have that line on the form, try removing it and see what happens.

Subject: RE: Please help with this DHTML calendar for Web - in Notes development

It turns out that it was working, but I was thrown because I kept getting an “Operation Aborted” error in IE upon loading the page. If you click OK and go on, the calendar works.

I don’t get an error in Netscape; however, the users of this app want to only support IE, so now I have to figure out what’s going on with that error!

(BTW, I am still getting the error.)

Thanks for your reply!

Subject: RE: Please help with this DHTML calendar for Web - in Notes development

I just noticed two other things about your code… the “script” line is missing a quotation mark after the script name, and there is no closing script tag.

Try changing that line from