codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  selects jump around when containing div is shown  karaokeyoga at 19:19 on Wednesday, March 22, 2006
 

Hi,

This is an IE-specific problem.

If I "display block" (via JavaScript) a DIV that contains a SELECT, the SELECT will sometimes be drawn in the wrong spot (i.e., be shifted vertically). This is a sporadic but quite reproducable problem.

Seems to be affected by the scrollbar or possibly other DIVs being shown/hidden (via "display", not "visiblity").

I have tried hacks such as attempting to nudge the position of the SELECT itself before/after revealing the containing DIV, but haven't come up with a consistent solution.

(In the application, I have two radio buttons... if you click the 2nd radio button, it will show a DIV that contains additional form elements such as SELECTs, etc.)

Ideas?









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  help Plz....
•  ASP with MYSQL
•  Re: need help with event please..
•  how to receive emails using CDONTS in ASP
•  Need to use C++/COM to add document to FileNET
•  Re: Do - While loop
•  selects jump around when containing div is shown
•  JavaScript Form Question
•  Java From Question


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006