Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Quick javascript / dhtml question

Thread Tools
 
Search this Thread
 
Old 13 January 2003, 04:57 PM
  #1  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Question

Hi folks.

I am trying to create a draggable floating div on certain pages, (which in effect looks and behaves like a window within the browser window). This all works fine except for one thing.

The background html doc has a form (which the popup window floats over the top of). The div covers / hides all of the elements on this form fine except for the selection box (it goes behind this - the selection box always appearing on top). I've tried fiddling around with the z-index parameters, but this has no effect.

Frustratingly, it works fine in Netscape 7, it's only Internet Explorer 6 that I'm having the trouble with. Anyone got any ideas as to what I might be doing wrong, or is this a "feature" of Microsofts browser....

See here for an example...
http://www.iainbyoung.co.uk/test.htm

Thanks for your help,
Iain


[Edited by Iain Young - 1/13/2003 5:21:02 PM]
Old 13 January 2003, 05:34 PM
  #2  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Post

I seem to recall this is a 'feature'. One of our DHTML web apps using DHTML menus resorts to making all the troublesome elements non-visible while a menu is visible, although I guess this isn't an option for what you're doing.
Old 13 January 2003, 05:35 PM
  #3  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

Iain,

Only thing I can see is that the drop down doesnt have a name/id, your code shows:

<form>
<select>
<option id="wibble">wibble</option>
<option>spam</option>
</select>

try:
<form>
<select id="test">
<option value=wibble>wibble</option>
<option value=spam>spam</option>
</select>

you might also want to give the form a name as well.

HTH

Gary
Old 13 January 2003, 05:38 PM
  #4  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks Andrew, I was afraid that might be the case. Perhaps I can do something sneaky like hide the selection box and replace it with a graphic (which looks like a disabled selection box) when the floating window is open. Not nice, but might be necessary.

Cheers,
Iain
Old 13 January 2003, 05:39 PM
  #5  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks Gary, but it makes no diffeence (the example is just a quick one I knocked up. The actualy page has all this defined ok and it still doesn't work).

Iain
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
Wouldie
ScoobyNet General
4
29 September 2015 05:12 PM
M4RKG
Wanted
4
25 September 2015 09:54 PM



Quick Reply: Quick javascript / dhtml question



All times are GMT +1. The time now is 05:34 PM.