473,738 Members | 4,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

style.display & visibility on checkbox/radio in Mac IE

Hi all,
does anybody know of a bug in MacIE which prevents style.display =
'none' and style.visibilit y = 'hidden' from "sticking" in MacIE?

I'm making some graphical checkboxes & radios (I know, bad idea, don't
tell me, I just implement what I'm told), seeking to do it in a
backwards compatable mode by using javascript to hide the real
checkboxes and radios and link dynamically inserted images to them
instead. But in Mac IE I have a few problems (works everywhere else),
I tried display = 'none' that didn't work, so I tried visibility =
'hidden' which works until the I do checked = true, at which point they
become visible again, I can make them hidden again after that
(providing i make them visible, set checked, and make them invisible
afterwards) but it seems to leave artifacts on the window until you
force it to redraw (by scrolling for example).

Anybody got any ideas, or know of any documented bugs in this area? I
can't find anything that sounds right in google searches, which is
strange, because it seems like it's a big that somebody else must have
come across before.

---
James Sleeman

Jul 26 '05 #1
3 3593
"bi*********@gm ail.com" wrote:
Hi all,
does anybody know of a bug in MacIE which prevents style.display =
'none' and style.visibilit y = 'hidden' from "sticking" in MacIE?


Is it possible for Javascript to change these input elements from
type="checkbox" to type="hidden"? That would probably be the neatest
solution.

Alternatively, try positioning these elements off-screen somewhere (e.g.,
"position:absol ute; left:-100px; top:-100px").

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 26 '05 #2
Philip Ronan wrote:
"bi*********@gm ail.com" wrote:
Hi all,
does anybody know of a bug in MacIE which prevents style.display =
'none' and style.visibilit y = 'hidden' from "sticking" in MacIE?


Is it possible for Javascript to change these input elements from
type="checkbox" to type="hidden"? That would probably be the neatest
solution.

Alternatively, try positioning these elements off-screen somewhere (e.g.,
"position:absol ute; left:-100px; top:-100px").

document.FORMNA ME.ELEMENTNAME. setAttribute('t ype','hidden');
Jul 26 '05 #3
>Is it possible for Javascript to change these input elements

Not that I'm aware of, I know at least in IE windows that the type of a
field is write once, once written you can only read from it.

In any case, problem is that a hidden field will always send a value
(even if empty), while a checkbox will only return a value when
checked, I could fart about and remove the unused hiddens on.

I think I'll probably try positioning them offscreen or something like
that. IE mac sucks so I don't want to put too much effort into it ;-)

Jul 26 '05 #4

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

Similar topics

13
40755
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
1
6217
by: David Wake | last post by:
I have two radio buttons and two checkboxes in a form. I'm trying to write some code so that when a radio button is selected, its corresponding checkbox is disabled. My code looks like this: function radioClicked(index) { document.table_config_form.my_checkbox.disabled = true;
1
3504
by: John Mullen | last post by:
I want to take the following HTLM and use javascript to turn on radio buttons if checkbox is checked, can I do this with javascript (maybe onClick or an array) or do i need a server side script ? <li>ABACAVIR SULFATE</li> <INPUT NAME="ingredient0" TYPE=checkbox VALUE="ABACAVIR SULFATE"><br> <input name="ABACAVIR SULFATE AMOUNT" type="radio" value="EQ 300MG BASE">EQ 300MG BASE<br> <input name="ABACAVIR SULFATE AMOUNT" type="radio" value="EQ...
2
2721
by: Pat Scott | last post by:
I am looking for a general purpose javascript snippet that enables me to <div> or <span> HTML to make portions of the form be hidden and then appear. The form contains about 12 sections and some sections can contain subsections. When the user clicks on a checkbox, I want previously hidden text boxes, radio buttons, text, drop down menus, and additional checkboxes to appear. In some cases, clicking on a checkbox in a section can cause...
2
9066
by: Jake Barnes | last post by:
Imagine I've this block of HTML: <p>Alex Schein Mailing List <input type="checkbox" name="newslettersToUse" value="133156"> (<a href="mcControlPanel.php" onClick="hideOrShowDivById('emailList133156'); return false;">See emails?</a>)</p> <form method="post" action="mcControlPanel.php" id="emailList133156" style="display:none;"><textarea name="formInputs">nazjeehaj@son.org,
1
1444
by: simonZ | last post by:
I have checkBox control: <asp:CheckBox runat="server" ID="chkDelete" Checked="true" /> In code behind, I add stlye to this checkBox: chkDelete.Style.Add("display", "none"); When page is rendered to the client, the style is performed with span: <span style="display:none;"><input id="ctl00_ContentPlaceHolder1_chkDelete" type="checkbox" name="ctl00$ContentPlaceHolder1$chkDelete" checked="checked" /></span>
2
2364
by: Steve JORDI | last post by:
Hi, I have a strange problem using Internet Explorer. My page has a table included in a <DIV> I have a checkbox that shows the div when checked and hides it when unchecked. var division = document.getElementById("passport") ; Then I use division.style.visibility = "visible" ;
10
12063
ammoos
by: ammoos | last post by:
Hi friends I am using the asp.net 2003 and I would like to change the visibility of a checkbox and textbox to “true” when I click on a radio button… I want to do this function by using JavaScript… Pls help me...
2
2181
by: LayneMitch via WebmasterKB.com | last post by:
I'm trying to add more form options depending on what you chose and then remove the form options if the main option is deselected. The latter is what I'm having the problem with. I only need suggestions on the checkbox options, not the radio options. Depending on what advice I get for the checkbox options, I can alter the code for the radio options. The form code is very long so I'll only post the problem area and it's related...
0
8968
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8787
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9259
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8208
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6750
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.