473,378 Members | 1,209 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,378 software developers and data experts.

Hide/Show Divs & Input Box problem.

6
Hey all,
I've got a div that hides and shows when I click a link which works good. However, the div that is toggled contains a couple of input boxes for logging into the site.

When the div is hidden, sometimes I can still see the cursor flashing in the input box of the hidden div and I can still type in the box whilst the div is hidden.

Is there any way around this problem?
Currently I'm just toggling the Visibility property on the layer, should I be using another property instead?

Thanks!
Kevin
Jul 13 '07 #1
3 2320
drhowarddrfine
7,435 Expert 4TB
I'm going to bed right now so won't test this but that's an interesting problem. You could use display:none but that removes it from the space altogether and might mess up your layout. You should supply the code or a link to try this with.
Jul 13 '07 #2
lilkev
6
I'm going to bed right now so won't test this but that's an interesting problem. You could use display:none but that removes it from the space altogether and might mess up your layout. You should supply the code or a link to try this with.
Yeh, sorry, been playing around with the site for a few hours to hopefully find a way around it but I couldn't.

The Link is here: ArtistsVale.
When the page loads in mozilla, the cursor is flashing on the page, and I can input text into the box despite the div being hidden. The 'Admin' link down the bottom below the copyright is what shows the panel.

The problem, I realized only occurs in Mozilla, and currently only onload. (after showing/hiding the login frame once, the problem is rectified) I tried assigning visibility: hidden to the input boxes via tag and classes which didn't work, so I'm a little unsure of what to do. I'm sure I'm doing something wrong but would appreciate some wisdom into the matter.

Thanks ahead!
Kevin

PS. The display:none property worked a charm, but I wasn't sure how to make it show again when you click the link.
Jul 13 '07 #3
lilkev
6
Nevermind!

I got it to work by replacing the visibility:show/hide code with the display:block/none code.

Sorry, I'm only new to all this stuff. -.-

Kevin
Jul 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: KathyB | last post by:
Hi, totally new to the div show/hide thing. I have some rows in a table. When I first load the page, I only want to see divs where the divID=ForView. When I load now, I see BOTH rows...even...
10
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer...
4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
5
by: tlyczko | last post by:
Hello, I've searched on toggling divs and didn't really find what I was looking for, I saved a bunch of different threads. I have a form with several different text boxes for things like dates,...
2
by: Eero Tuomenoksa | last post by:
Hi Does someone knows how i can show/hide multible divs at one click? -- Käytössä Operan vallankumouksellinen sähköpostiohjelma: http://www.opera.com/mail/
1
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
5
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
15
by: worked | last post by:
I have a script that hides / shows form elements, and wrapped in a tab script (tab navigation). When the code is duplicated (per tab content), the hide / show function works for the first tab but...
11
by: dusk | last post by:
Hi, I'm very new to javascript, and I'm having trouble finding a way to display a string of divs without the code getting really messy. I have several different pages to write, each with about...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.