JQuery: Combobox always on the top when i show dialog in IE6

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
nv_thien
Forum Newbie
Posts: 4
Joined: Tue Apr 14, 2009 11:38 pm

JQuery: Combobox always on the top when i show dialog in IE6

Post by nv_thien »

i used JQuery to show a dialog. but Combobox in the parent form always show on top. (you can look at my attachment)

it works fine on FF and IE 7+. but in IE6 me show me this problem.

anybody can help me? or so you have any solution to solve this problem?

it's very urgent with my project

Thanks all brothers

Thien Nguyen
Attachments
error.gif
error.gif (13.08 KiB) Viewed 773 times
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: JQuery: Combobox always on the top when i show dialog in IE6

Post by kaszu »

Workaround is to place transparent iframe above the 'combo-box'. Quick google search returned this.
Other solution is to hide all combo-boxes when lightbox is shown and show when lightbox is hidden.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: JQuery: Combobox always on the top when i show dialog in IE6

Post by pickle »

IE6 doesn't listen to z-index very well. There was a plugin for jQuery called bgiframe that I think did just what ~kaszu says to do. I think it's been implemented in the core now, but I'm not sure how to use it to solve your problem.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
nv_thien
Forum Newbie
Posts: 4
Joined: Tue Apr 14, 2009 11:38 pm

Re: JQuery: Combobox always on the top when i show dialog in IE6

Post by nv_thien »

pickle wrote:IE6 doesn't listen to z-index very well. There was a plugin for jQuery called bgiframe that I think did just what ~kaszu says to do. I think it's been implemented in the core now, but I'm not sure how to use it to solve your problem.

Hi guy

i try to use it, but it can't solve my problem. any other idea?

Thanks and best regards
Thien Nguyen
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: JQuery: Combobox always on the top when i show dialog in IE6

Post by kaszu »

From bgiframe documentation:
The element needs to have position (relative or absolute) and should have a background (color or image)
Post Reply