Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
style.display & visibility on checkbox/radio in Mac IE bitsyboffin 07-26-2005
Get Chitika Premium
Posted by bitsyboffin on July 26, 2005, 12:06 am
Please log in for more thread options


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


Posted by Philip Ronan on July 26, 2005, 9:05 am
Please log in for more thread options


"bitsyboffin@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/



Posted by bitsyboffin on July 26, 2005, 2:53 am
Please log in for more thread options


>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 ;-)


Posted by Jedi Fans on July 26, 2005, 10:13 am
Please log in for more thread options


Philip Ronan wrote:
> "bitsyboffin@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');

Similar ThreadsPosted
How do you REALLY toggle visibility in Netscape (using 7.1 right now) August 2, 2004, 4:57 pm
Visibility of form elements December 3, 2004, 8:01 pm
XHTML DOCTYPE breaks JavaScript x.style.top and x.style.left? July 5, 2005, 12:58 pm
7-bar display October 30, 2006, 3:22 am
IE TextArea Display Bug January 12, 2005, 10:16 am
How to display a box in "em" units? April 1, 2006, 12:54 pm
IE7 doesn't display background.. May 23, 2007, 10:55 pm
XML table display using CSS November 27, 2007, 11:05 pm
Display in in frames January 30, 2008, 12:55 pm
Can't get normal display. April 3, 2008, 6:37 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap