Login Register

dojo.connect

dojo.connect(Dijit._Calendar, "onChange", function()) doesn't work in ie

Just like the subject says, the function is never called in IE 6 or 7. Works fine in every other browser. However, onclick and onmouseup all work fine. I can't seem to find anyone else with the same problem (maybe my search-fun is weak). Any help would be appreciated.

dojo.connect(_myCalendar, "onChange", function()//_myCalendar is a dijit._Calendar
{
        alert("change"); //Never see this
});

Connecting events with dojo.connect() and memory leaks

Hi!

There is a code, that uses dojo.connect() extensively to attach handlers to DomEvents.
1) If there is no dojo.disconnect() on page unload, could it result to memory leakage?
2) If there is a dojo.disconnect(), could it also result to memory leakage?

And the third more general question: is there any articles about "dojo best practices to avoid memory leakage"?
I'm working on js-rich site, and each page reload causes IE6.0 to eat about 10 to 15 MB of memory and it is rather scary... Btw, FF2 works good enought...

Thanks for any info!

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