keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main > 03/2008

 #1  
03-28-08, 08:46 PM
Just Me
Hi,

I know this is not an IE newsgroup. But im going to ask your opinion on
this. I have a customer who cannot change at this time from IE6. The
following form is a simple example of a problem which exists where Combo
Boxes do not appear to obey the z-index laws. In my example, the top div
contains a DDL, and on the button click, the bottom div is moved over it,
this should obscure the DDL, but it appears on the surface. This has been
fixed in IE7, but I need to find a solution in IE6 if possible as I need to
use draggable divs in the application, and i cant have one div apparently
slicing its way through another div and the DDL's it has on its surface.

Any help would be appreciated.

<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
<script type="text/javascript" >

function moveDiv(){

var divBottom = document.getElementById('divBottom');
divBottom.style.top ="0px";
divBottom.style.left="50px";
divBottom.style.position="absolute";

}
</script>
</head>
<body>
<form id="form1" runat="server">

<div>

<asp:DropDownList ID="DropDownList1" runat="server"
style="position:relative;" Width="113px">
<asp:ListItem>Item 0</asp:ListItem>
</asp:DropDownList>

</div>

</div>

<div id="divBottom" style="position:absolute;top:500px;width: 215px;
height: 100px;background-color:green;">

</div>

<input id="Button1" type="button" value="Move"
style="position:absolute;top:200px" onclick="moveDiv()" /></div>

</form>
</body>
</html>
 #2  
03-28-08, 09:14 PM
Alexey Smirnov
On Mar 28, 9:46 pm, "Just Me" <news.microsoft.com> wrote:
[..]
> height: 100px;background-color:green;">
>
> </div>
>
> <input id="Button1" type="button" value="Move"
> style="position:absolute;top:200px" onclick="moveDiv()" /></div>
>
> </form>
> </body>
> </html>


Try to make it invisible.
 #3  
03-28-08, 09:17 PM
Just Me
LOL

Thanks for that, i had already thought of doing that, but i wanted a better
solution.


"Alexey Smirnov" <alexey.smirnov> wrote in message
news:c05b
On Mar 28, 9:46 pm, "Just Me" <news.microsoft.com> wrote:
[..]
> height: 100px;background-color:green;">
>
> </div>
>
> <input id="Button1" type="button" value="Move"
> style="position:absolute;top:200px" onclick="moveDiv()" /></div>
>
> </form>
> </body>
> </html>


Try to make it invisible.
 #4  
03-28-08, 09:45 PM
Alexey Smirnov
On Mar 28, 10:17 pm, "Just Me" <news.microsoft.com> wrote:
> LOL
>
> Thanks for that, i had already thought of doing that, but i wanted a better
> solution.
>


Well, this is a well known issue with the IE 6 and combo-box will be
always over. You may try another approach with an iframe exactly over
the div. See more http://www.codeproject.com/KB/dotnet/Overlapping.aspx
 #5  
03-28-08, 09:51 PM
Alexey Smirnov
On Mar 28, 10:45 pm, Alexey Smirnov <alexeysmir> wrote:
> On Mar 28, 10:17 pm, "Just Me" <news.microsoft.com> wrote:
>
> > LOL

>
> > Thanks for that, i had already thought of doing that, but i wanted a better
> > solution.

>
> Well, this is a well known issue with the IE 6 and combo-box will be
> always over. You may try another approach with an iframe exactly over
> the div. See morehttp://www.codeproject.com/KB/dotnet/Overlapping.aspx


or maybe try this http://shepherdweb.com/2007/02/14/z-...-6-workaround/

it does the same using CSS only
 #6  
03-28-08, 10:32 PM
bruce barker
there are two solutions to this:

1) make the <select>'s hidden.
2) use a "floating" iframe instead of a div. an iframe because its a
seperate window can be on top of a <select>. javascript can copy the div
inner html to the iframe's document.

-- bruce (sqlwork.com)


"Just Me" wrote:
[..]
 #7  
03-29-08, 12:08 AM
Just Me
Thanks 2 all for your replies.

1.) Hiding is definately an option to consider, and Is probably what I'll
end up doing.

2.) Using an iframe complicates matters, because I wanted the functionality
to be part of the same page/form. Im not sure if i can trigger a postback
from the document in the IFRAME on the host page. I know ive done it in the
past, but newer security measures may prevent this now ?

I keep repeadetly hitting issues with explorer day after day after day,
while with firefox, its not perfect but it seems to work so much more
robustly and seems to conform much better to css.

Ahh well, onwards and upwards.

Again - Thanks to everyone.



"bruce barker" <brucebarker> wrote in message
news:aad8
[..]
 #8  
03-29-08, 12:08 AM
Just Me
Thanks Alexy.

I think ill just hide it. :)

Best regards and thank you.


"Alexey Smirnov" <alexey.smirnov> wrote in message
news:8b6f
On Mar 28, 10:45 pm, Alexey Smirnov <alexeysmir> wrote:
> On Mar 28, 10:17 pm, "Just Me" <news.microsoft.com> wrote:
>
> > LOL

>
> > Thanks for that, i had already thought of doing that, but i wanted a
> > better
> > solution.

>
> Well, this is a well known issue with the IE 6 and combo-box will be
> always over. You may try another approach with an iframe exactly over
> the div. See morehttp://www.codeproject.com/KB/dotnet/Overlapping.aspx


or maybe try this
http://shepherdweb.com/2007/02/14/z-...-6-workaround/

it does the same using CSS only
Similar Threads
Need help with workaround...

I have read all about the web components not included in Office 2007, I understand all of that, but here is my dilemma. We are a small company that does business with a large...

Is there a CSS workaround?

Hi all, Is there a workaround that I can use for IE7 as there was for IE6 with the * html I know that CSS support is improved but I am still getinmg different layouts on...

DX9 workaround

I'm going to install Vista this week-end but I want to play Titan Quest, I've done a bit of research as to whether or not it will run under Vista or not. And what i have...

QAM Workaround?!

I recently bought a DVICO Fusion5 HDTV Tuner, and am currently using a TERK TV5 HDTV Antenna to watch OTA HDTV. The card has support for QAM, but MCE2005 still does not! Has...

Known Bug - Possible Workaround??

Alright, So this morning (as we are a week from launch on our product) I come across an error as I add a simple thing to our system. A display column in our dataset for...


All times are GMT. The time now is 07:30 AM. | Privacy Policy