Forum Moderators: open

Message Too Old, No Replies

Overlib + Netscape Relative Positioning

need a suggestion from overlib users

         

mediko

11:21 pm on Jul 15, 2002 (gmt 0)

10+ Year Member



We use overlib on our site for the on-click event that shows some dynamically pulled data from database in a STICKY <div> that is placed in the table cell. And for IE it works just the way we want it to but there some issues with Netscape relative positioning... The problem is that it will not show the div( with absolute positioning) in the table cell where it is defined but rather at the point of click.<layer></layer> works just the same. I tried using <ilayer></ilayer> instead of a div and defining <ilayer> as a style with position:relative to force it to appear in the table cell, but when the on-click event happens nothing shows up. Has anyone found a workaround for this problem ?
I appreciate any suggestion or opinion. Thank you !

tedster

5:40 pm on Jul 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a guess, but the problem may well be deep in the overLIB library code. That's quite a labor of love that Bosrup offered to the world, but it's too much for me to untangle, especially becuase I don't use it except at play time!

Have you tried writing to him?

mediko

6:02 pm on Jul 16, 2002 (gmt 0)

10+ Year Member



Yes I have. No reply from him.
I personally would not use it for the purpose that it's used on our site for many reasons and one is that it's not supported by Netscape 6 and looks absolutely ugly on Netscape 4.... when overlaps form controls. But I have to.
The Java code that he wrote is pretty simple and I looked at it. It should work the way I want it to but it does not may be I am missing something or may be it's not supposed to. I don't have time to re-write the whole feature on the site, thought I'd spend some time trying to fix it's functionality.
And I agree, it's good for a play time.

tedster

6:11 pm on Jul 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What's the exact function and variables you're using? I've got the library here and I'll take a look -- maybe I'll spot something.

mediko

6:42 pm on Jul 16, 2002 (gmt 0)

10+ Year Member



Thank you !
Here:
return overlib(str, STICKY, WIDTH, '234', FGCOLOR, '#ffffff', CLOSECOLOR, '#FFFFFF', BGCOLOR, '" & PortBgColor &"', BORDER, 4, CAPTIONFONT, 'Verdana', CAPTIONSIZE, '2', FIXX,'0', FIXY,'0', TEXTFONT, 'Courier', TEXTSIZE, '3', CAPTION, '" & rs("schedule_date") & " - " & weekdayName(weekday(rs("schedule_date"))) & "')"" >" & intPrintDay & "

and here is the div that works for IE

<div id="overDiv" style="position:relative; visibility:hidden; z-index:1000;"></div>

and here is what I use to make the relative positioning work on Netscape

<STYLE type="text/css">
<!-- #overDiv {position:relative; }-->
</STYLE>
<ilayer ID="overDiv" z-index="1000" visibility="hide"></ilayer>

My task is to make the STCKY show up in the table cell where the div / layer / ilayer defined NOT at the point where the click happened.
Please keep in mind that RIGHT, ABOVE, SNAPX, SNAPY is not helpfull !
I am apologize if code posting is not allowed !
Thank you !

tedster

3:06 pm on Jul 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Code is totally allowed - in fact, we thrive on it! Just take out any specific URLs or convert them to "example.com" if they need to be in there.

I'm under the gun right now, but I'll take a look later today.

mediko

4:39 pm on Jul 17, 2002 (gmt 0)

10+ Year Member



Thank you tedster ! :-)