Skip to content

Tag: dojo

DojoToolkit widget.placeAt() method reference

In DojoToolkit documentation, the page “Creating a custom widget” (this one) it’s said that in order to instantiate the new widget, you use the following code: I spent quite some time trying to find the documentation for “placeAt” method, and can’t find it. Now I know Dijit…

How to copy a DOM node with event listeners?

I tried It doesn’t seem to copy the event listeners that I added using node.addEventListener(“click”, someFunc);. We use the Dojo library. Answer cloneNode() does not copy event listeners. In fact, there’s no way of getting hold of event listeners via the DOM once they’ve been at…

How to count active javascript timeouts?

I am using Selenium to test a web app that uses Dojo, and it uses java script to display certain elements. I want to wait until all of the elements are desplayed before I try to manipulate the page, however I am having trouble. I have started by waiting for the dojo inFlight variable to be 0, this says that