simple onClick DOM thing not working in IE


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: simple onClick DOM thing not working in IE

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    2

    simple onClick DOM thing not working in IE

    Hi,

    I have a very simple problem, i'm doing a form of which i want some fields to be enabled/diabled based on selection. Got it working fantastic in FF but not IE.

    I wonder if anyone can help

    Heres the examples (i've cut out the irelevant HTML) :
    Code:
    java example there are 3 functions ( bit up in the head)
     function drinksonlyon()
     {
     	  document.forma.fldHead.disabled=true; 
    	  document.forma.fldVegan.disabled=true;
    	  document.forma.fldGluten.disabled=true;
      }
    
    Part of the html form called 'forma'
    
    <div>
    <label for="fldBuffet">Buffet:</label>
    <select name="fldBuffet" id="sBuffet"  tabindex="14">
    <option >SELECT</option>
    <OPTION VALUE='5' onclick="drinksonlyoff ();">Business Buffet</OPTION>
    <OPTION VALUE='31' onclick="teacoffee(); ">Tea &amp; Coffee with biscuits </OPTION>
    <OPTION VALUE='37' onclick="drinksonlyoff ();">Members Tea Menu 4</OPTION>
    <OPTION VALUE='999' onclick="drinksonlyon (); ">Drinks Only - see below</OPTION>
    </select>
    </div>
    
    here's another just on a radio button
    <input type=radio name="fldblah" id="fldInvoice"   onclick="javascript:document.forma.fldInvoice.disabled=false"/> No<br />
    
    <textarea name="fldInvoice" id="fldInvoice"  tabindex="9" cols=30 rows=5  disabled></textarea>
    like i say all working great in FF, it's my first attempt at anything javaish apart from pre made scripts so i was chuffed it worked in FF.

    Grateful for any replies, if you could use the names etc i've used then it makes more sense when i'm following it through (as i'm a slow learner)

    Thank you

    Gary

  2. #2
    Join Date
    May 2006
    Posts
    2
    Can anyone offer any help with this one?

    Mnay thanks

    Gary

Similar Threads

  1. DOM & SAX Tutorials
    By kellie in forum xml.announcements
    Replies: 0
    Last Post: 09-06-2001, 03:35 PM
  2. Simple Java DOM question
    By Lenin in forum XML
    Replies: 0
    Last Post: 03-21-2001, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center