|
set dom element class (if element was dynamically created) hi everybody, didn't find this using the search :( this is my problem: i create a dom element dynamically (<span>) and want to assign a class attribute to it such that it has some css style, this works in ie, but not in firefox :( here's the simple code: <div id="somediv"> </div> var div = window.document.get... 26 Jan 2006 20:40
Problems using XMLHTTRequest I've wrote a little test app to use XMLHTTPRquest test app but I'm looking to add some functionality and I'm not quite so how to go about doing it. Below is the source What I'd really like is to be able to use <SPAN onClick = "Select(this);"> where I could pass the object and not have to display the result... 25 Jan 2006 10:38
passing a variable As a newbie to javascript can someone tell me please how to pass a variable from HTML to Javascript? I have the following script which works OK if I input to str from the "prompt" box, but I want to input from a one-line text box on an HTML page. Thanks in advance. Geoff. <html> <head> <meta http-equi... 23 Jan 2006 06:48
passing meta-knowledge about a form element I need to create a table where each element has certain specific properties. For example, elements in the first column should always have a range of 0-100, and increment by 1. Elements in column 2 might have a range of 0-360, and increment by 0.1. Altogether there might be 8 elements in each row. Since th... 20 Jan 2006 16:36
Strange JavaScript Behavior I have a page with two dynamic tables. One is a master list of items for selection. The second is a list of selected items. The master list contains 4 columns. 1) The item code - hidden For example NY 2) The item descrtion - visible For example, New York 3) The item type - hidden For example, st... 20 Jan 2006 01:54
replacement for window.showmodelessdialog in mozilla what is the replacement for window.navigate in mozilla & i was used window.showmodelessdialog in IE5 - in mozilla it is not working *** Sent via Developersdex http://www.developersdex.com *** ... 17 Jan 2006 09:33
Validating a checkbox...... Hi All, I have a form generated from a Perl script. The number of check boxes on the form is unknown until the time the form is generated. The names of the check boxes are created from some values in the database, based upon other user input.......<crazy, I know> The user must choose at least one check box.... 13 Jan 2006 12:27
Object Expected Error - Cookie check script I am using a script (see below) to check if cookies are enabled on my website. The script seems to work but I get an Object Expected error. The error repor says it is at the line incidated by the *** below. Any ideas? <script type="text/javascript"> Set_Cookie( 'test', 'none', '', '/', '', '' ); if ( Get_Co... 12 Jan 2006 19:15
IE Bug SELECT drop-list width incorrect for long text when SELECT is fixed width Setting the width style of a SELECT statement causes the contents of the drop-list to be cropped. This is problematic when attempting to limit the width of the select box for layout purposes (say, a fixed-dimensions application UI) whilst... 14 Jan 2006 04:28
how to expand and hide sub-button Hi, I'm wondering how to use javascript to do something like: TOP_Button when clicking on it, it becomes: TOP_Button sub_button_1 sub_button_2 and clicking TOP_Button again, two sub_buttons get hidden. but clicking on sub_button, it should not be hidden. -- Thanks John Toronto ... 12 Jan 2006 19:15 |