Skip to content
Advertisement

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’s widgets are derived from dijit/_WidgetBase and dijit/_TemplatedMixin classes, but this method isn’t in

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 attached, so your options are: Add all the event listeners manually to your cloned node

Does dojo TabContainer have an event thats triggered when changing tabs?

does DOJO TabContainer have an event thats triggered when changing tabs? I imagine it would but I couldn’t find anything about it in the documentation. 🙁 SOLVED: It looks like I found a solution here: Dijit TabContainer Events – onFocus not the most searchable topic title :/ Answer Connect aspect.after to TabContainer’s selectChild method: Or if you are interested in

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

Advertisement