PDA

View Full Version : Problem with iframe and conflicting Javascript


OO7girl
06-10-2004, 08:54 PM
I am attempting to do something that I hope is not impossible. I have an html calendar on my site. I want each day on the calendar to be clickable so that information about that day opens up in an iframe below the calendar. I had no problem with this until I added a javascript to the main document. This script is designed to detect the current date and display a certain html file in the iframe upon arrival at the calendar page. For some reason, since I have added the javascript, although the correct information pops up in the iframe automatically, whenever I try to click on a different date in the calendar to load new info in the iframe, it opens in a new window. I really need it to open in the iframe. In addition, I need this to work in Netscape 4.79, so ideally the content would also be loadable in a layer. I would also be open to substituting layers for the iframe altogether.
Does anyone know what I could be doing wrong?

Thanks in advance!

Amanda

homerUK
06-10-2004, 09:20 PM
could you post some code so we can have a look? Or better still a link to the page in question?

cheers! :thumbsup:

OO7girl
06-11-2004, 03:08 PM
sure - here's the URL:

http://www25.brinkster.com/oo7girl/vimy/calendar2.html

thanks!!

canadianjameson
06-11-2004, 09:31 PM
i think what we need is for to use the ["code] paste code here ["/code] tags (minus ") and paste us both the functional page minus the javascript date thing, and then ["code] the javascript that caused the issue ["/code]

["code]["/code] helps format the code properly. example:

<style type="text/css">
input.field, textarea {
border: 1px solid black;
}
</style>


thanks :)