473,409 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

divs hide-show form elements showing thru..

I'm doing a page w/lots of divs that I set to visibile or hidden
dynamically using getElementById.. the divs are all forms... sometimes
elements in a hidden form show thru on a visible form.. how can I fix
this.. thank you..

Frances
Sep 9 '05 #1
5 1649
ASM
Frances wrote:
I'm doing a page w/lots of divs that I set to visibile or hidden
dynamically using getElementById.. the divs are all forms... sometimes
elements in a hidden form show thru on a visible form.. how can I fix
this.. thank you..

Frances


that would only append with IE ...
find an other browser.

try display: none / block
insteed of visibility: hidden / visible
--
Stephane Moriaux et son [moins] vieux Mac
Sep 9 '05 #2

"Frances" <fd***@yahoo.com> wrote in message
news:43***********************@news.sunsite.dk...
I'm doing a page w/lots of divs that I set to visibile or hidden
dynamically using getElementById.. the divs are all forms... sometimes
elements in a hidden form show thru on a visible form.. how can I fix
this.. thank you..


I think this is an IE "feature" no work around sorry.
Sep 9 '05 #3
You could always move the div off the canvas. How about this?
document.getElementById("div_i_want_to_hide").styl e.left = "-2000px";

Sep 9 '05 #4

"Jambalaya" <ch*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
You could always move the div off the canvas. How about this?
document.getElementById("div_i_want_to_hide").styl e.left = "-2000px";


sure, good thinking but you never know how big these monitors are nowadays
;)
Sep 9 '05 #5
Zoe Brown said the following on 9/9/2005 3:04 PM:
"Jambalaya" <ch*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
You could always move the div off the canvas. How about this?
document.getElementById("div_i_want_to_hide").st yle.left = "-2000px";

sure, good thinking but you never know how big these monitors are nowadays
;)


Doesn't matter how big it is, nor the resolution , of the monitor. The
only time the div would be visible is if:

a) The div is more than 2000px wide.
b) The user, seeing the scrollbar at the bottom of the browser, scrolled
to the left to get to it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 9 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
12
by: deko | last post by:
Is there any way to work around the blank space created by hidden divs? I'm trying to use a relatively postioned divs with show/hide behaviors to annotate an image. The divs show/hide...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
2
by: Jakub Ɓukomski | last post by:
hi. i've got a problem as follows, to which i can't find a solution to: i've got two divs, which are completely independent of each other (neither is a parent of child of another). they're...
8
by: maroger | last post by:
I'm sure this is a common issue, but I haven't come across anything that works for me thusfar. I am trying to fix my header, which works fine in firefox but has extra space in IE. Here are...
1
by: maya | last post by:
I'm using a function like this to load divs dynamically (and hide current one..) function get_img(curr_img,curr_nav,new_img,new_nav2) { var img_top = eval('document.getElementById(' +...
18
by: maya | last post by:
pls look @ this pg, http://www.mayacove.com/design/divs.html in IE and FF.. in IE it looks fine, but in FF the main div (centered, 800px wide, blue background; in reality the bg will be white..)...
12
by: daniel2335 | last post by:
This problem is everywhere! I have read all forums available, spent about 40+ hours on it and lost a bit of hair. I was going to explain what its ment to look like but I just realised removing the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.