So, I'm managing a wiki and we'd like the entire mini-view calendar from our calendar app which is displayed in the side bar to act as a link to the main calendar page with the full size calendar, because if you try to actually use it with the mini-calendar in the iframe it won't be displayed correctly and everything gets cut off.
I know this might not be strict html, but here's what I've gotten to work quite well in firefox so far:
first i set a style sheet in the html head file that loads with every page:
then in the sidebar code, i just put a div around the mini-calendar page in an i-frame, with the style that i specified above, and a link to where i want it to go. (note: i didn't write this code myself, its adapted from something i found on another forum, but i thought i knew what it was doing)HTML Code:<style type="text/css"> div.iframe-link { position: relative; float: left; width: 175px; height: 205px; margin: 0 1em 1em 0; } a.iframe-link { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } </style>
it works in firefox, but doesn't in IE 8. in firefox it does what its supposed to do and makes the entire mini_calendar.asp iframe a link that goes to calendar.ashx, in IE it only makes the background of mini_calendar.asp a link while the foreground links still make the asp page try to load other calendar asp pages in the tiny iframeHTML Code:<table><tr><td><div class="iframe-link"> <iframe src="mini_calendar.asp?style=sandbeach" style=" border-width:0 " width="175" height="175" frameborder="0" scrolling="no"></iframe><a href="Calendar.ashx" class="iframe-link"></a> </div></td></tr></table>
i believe it might've worked in IE when the iframe was linking to a mini goolgle calendar instead of our own asp calendar, but i'm not 100% on that. i should go back and check though.
maybe i should try moving around the order of the <div> and the <a> tags, i think i maybe even had them outside the table cell at one point which is why that one-cell table is in there.



LinkBack URL
About LinkBacks
Reply With Quote
Can you change the mini_calendar.asp at all or is that a 3rd party program? Wondering if you could cause IT to redirect to the other calendar program (but that would probably break it everywhere else too). 

Bookmarks