[Dojo-interest] Why does dojotype="select" not fire events?

Rene A. Krywult rene.krywult at gmx.at
Fri Feb 23 08:42:50 MST 2007


Hi!

I'm using Dojo 0.4.1 $Id: bootstrap1.js 6824 2006-12-06 09:34:32Z alex  with IE 7.0.5730.11.

I want a function to be executed, whenever the user selects something from the dojotype:"select". I tried "onchange", "onpropertychange" and "onblur", none of them seems to be fired, when a user clicks the arrow and then clicks on one of the two options. 

Any idea what I do wrong?

Here's the code:

<html>

<head>
<title>MIS Report Commentary</title>
<!-- SECTION 1 -->
<script type="text/javascript" src="dojo/dojo.js.uncompressed.js"></script>
<!-- SECTION 2 -->
<script type="text/javascript">
      dojo.require("dojo.widget.*");
	  dojo.require("dojo.io.*");
	  killbill= function()
	  {
	  	alert("yes");
	  }
    </script>
</head>

<body>
        <select dojoType="select" 
                onblur="killbill();" 
                id="cbReport" 
                value="noVal!" 
                style="width: 370px;" 
                maxListLength="15">
        	        <option>Yadda Yadda</option>
			<option>Yuck</option>
        </select> 
  </body>

</html>


Thanks

Rene
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


More information about the Dojo-interest mailing list