Re: CSS and/or JS questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: CSS and/or JS questions

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Mon May 01 2006 - 04:38:58 CEST

onetitfemme said the following on 4/30/2006 7:13 PM:
>>> The form element I need only in order to format the pop up and to use
>>> the id selector, in order to feed it in with. I need to complete the
>>> forms dynamically because I work on multilang sites
>
>> Then create the form dynamically as well.
>
>> myForm = document.createElement('form')
> ..
> You know when I code JS I expect for things not to work ;-). I wonder
> how cross browser these (to me) naively looking statements are. (new
> Option(...)) statements are DOM 0 so they will probably work flawlessly
> in all browsers, but I wonder if the same applies to check boxes and
> radio buttons.

ISTR a browser that had problems with new Option. I don't remember the
browser and I don't remember the problem to be honest. But, if a browser
doesn't support createElement then it is sufficiently broken/old enough
not to worry with it.

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 05:28:36 2006