Results 1 to 2 of 2

Thread: Problem with onclick IE

  1. #1
    Join Date
    Jan 2008
    Location
    Netherlands
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with onclick IE

    Hi,

    I've got some Javascript, wicht is actually working in Firefox, but in IE doesn't work. I've tried some different things, but nothing really seemed to solve the problem, so maybe you know what i'm doing wrong. Or maybe IE just sux

    this is the code i have:

    Code:
        <tr>
          <td>Begin Tijd:</td>
          <td>
              <select name='pers_tlb1'>
                <option value='#'>Maak een keuze</option>
                <option value='#'>Anders, namelijk...</option>
                <option value='bk_boekingen_tb_inladen' onClick="personeel.pers_tbu1.value='10';this.form.pers_tbm1.value='00'">Inladen - Begin</option>
                <option value='bk_boekingen_te_inladen' onClick="this.form.pers_tbu1.value='11';this.form.pers_tbm1.value='01';">Inladen - Eind</option>
                <option value='bk_boekingen_tb_bouw' onClick="this.form.pers_tbu1.value='12';this.form.pers_tbm1.value='02';">Opbouw - Begin</option>
                <option value='bk_boekingen_te_bouw' onClick="this.form.pers_tbu1.value='13';this.form.pers_tbm1.value='03';">Opbouw - Eind</option>
                <option value='bk_boekingen_tb_show' onClick="this.form.pers_tbu1.value='14';this.form.pers_tbm1.value='04';">Show - Begin</option>
                <option value='bk_boekingen_te_show' onClick="this.form.pers_tbu1.value='15';this.form.pers_tbm1.value='05';">Show - Eind</option>
                <option value='bk_boekingen_tb_breken' onClick="this.form.pers_tbu1.value='16';this.form.pers_tbm1.value='06';">Afbreken - Begin</option>
                <option value='bk_boekingen_te_breken' onClick="this.form.pers_tbu1.value='17';this.form.pers_tbm1.value='07';">Afbreken - Eind</option>
                <option value='bk_boekingen_tb_uitladen' onClick="this.form.pers_tbu1.value='18';this.form.pers_tbm1.value='08';">Uitladen - Begin</option>
                <option value='bk_boekingen_te_uitladen' onClick="this.form.pers_tbu1.value='19';this.form.pers_tbm1.value='09';">Uitladen - Eind</option>
              </select>
              <input type='text' name='pers_tbu1' maxlength='2' size='2'>:<input type='text' name='pers_tbm1' maxlength='2' size='2'> 	   	    	    	    	    	    	 
          </td>
        </tr>

  2. #2
    Join Date
    May 2007
    Location
    Canada
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    onclick event on "option" element isn't allowed in IE. Use onchange on your "select" tag. Someone else just posted regarding the same issue.

    http://www.dynamicdrive.com/forums/s...ad.php?t=28368

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •