Login Register

dojo.connect

dojo.connect of a Dijit to onchange event does not work in IE7

dojo.connect(object, "onchange", function) does not work in IE7.

This code replicates it. The utterly bizarre thing is that if I remove the dojo.require of dijit.form.Form and dijit.form.ValidationTextBox, the dojo.connect will work. The form looks ugly, as expected, but the event handler works.

Also, only onchange is a problem -- onclick works with no problems. I tried grepping the tests to find a dojo.connect with onchange, but I can't find one.

Am I doing something wrong in the below example, or should I submit a bug?

event not working

hi,
i am an absolute beginner i am afraid. i did the following script:

dojo.addOnLoad(function() {
	var sendTagForm = function(){
		console.log("schicke jetzt die Form ab");	
		document.forms('tagesform').submit();
	}

	console.log("verknuepfe den event");
	Datepicko = dijit.byId('tagPick');
	dojo.connect(Datepicko, 'onvaluechange', sendTagForm);
})

together with this html:

Event binding and bubbling for checkbox nested within a table row

I am sure that what I am asking for here is education on my part, rather than an issue with Dojo or the browsers' event models, but I have not been able to make the following scenario function correctly, and I would appreciate any help that you can offer.

I am trying to create an application which serves data in a table. Each entire table row should be bound to the click event, which will open the supporting document for that row. This is easy enough to do with dojo.connect.

dojo.connect for dojox.grid.publicEvent on dojox.Grid

Dear all,

I want to add a simple event when the user edit a cell of my grid.
What I don't understand is that works:

<div class="partsContainer">
<div class="gridContainer">
<div id="grid" dojoType="dojox.Grid" model="model" structure="structure" autoWidth="true">
<script type="dojo/connect" event="onApplyCellEdit" args="a,b,c">
console.debug("new value"+a);
</script>

But the following code doesn't work (nothing append when I edit a cell):

Are you able dojo.connect to a dojo.data stores event like dojo.connect(myStore, "onItem", function() { console.log("item") });?

It seems like you should be able to but this didn't work for me. myStore is a jsId.

dojo.connect(myStore, "onItem", function() { console.log("item") });
Syndicate content