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

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.visibility = '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 3573
"bi*********@gmail.com" wrote:
Hi all,
does anybody know of a bug in MacIE which prevents style.display =
'none' and style.visibility = '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:absolute; left:-100px; top:-100px").

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 26 '05 #2
Philip Ronan wrote:
"bi*********@gmail.com" wrote:
Hi all,
does anybody know of a bug in MacIE which prevents style.display =
'none' and style.visibility = '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:absolute; left:-100px; top:-100px").

document.FORMNAME.ELEMENTNAME.setAttribute('type', '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
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...
1
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: ...
1
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 ?...
2
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...
2
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"...
1
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...
2
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 =...
10
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… ...
2
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...
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?
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
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...
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...

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.