Login Register

example

ESRI Launches Dojo-based GIS JavaScript API

I recently had a chance to sit down with Jayant Sai of ESRI to discuss their new Dojo-based GIS JavaScript API.

DS: Let's start at the beginning. What is ESRI?

ToolTipDialog

I am working with the ToolTipDialog dijit and am having some problems putting more than one on a page. I am populating a div using ajax and innerHTML, in the html there is a table containing a drop down button in one column, after the html is set i am calling parser.parse(). When there are mutiple rows in the table i used a unique id for each ToolTipDialog dijit to avoid javascript errors for having multiple dialogs with the same id. The problem comes after the parser is finished.

Duplicate Messages with Chatting with Tech Support Example

Right now I am trying to get a feel for what dojo has to offer but am struggling to get all the examples working correctly. In particular I am stuck on the Chatting with Tech Support Example found on this website and demonstrated in the example included with the download of dojo-toolkit 1.0.2. The issue I am running into is that when I have a client send a message to the operator the operator receives the message twice as if the client had sent the same exact message twice to the operator. The operator also gets an indication that the client used as join the chat room twice as well.

Setting a Dialog's Title dynamically

I've seen the question asked a number of times on how to set a Title on things like Dialog and TitlePane after parsing. There is currently no public method to do this, but it's uber easy, so lets take a peek:

the template for Dialog has something like:

${title}

in it. this attaches a "titleNode" attribute to our dijit. Its a pointer to the actual domNode where the text
is:

// what's the current title of the dialog? the innerHTML of the titlenode.
console.log(dijit.byIt("myDialog").titleNode.innerHTML);

uhmm. an example spanning dojo/dijit/dojox

So I got bored last night, and started out making a little container demo using the AOL CDN dojo.js (1.0) ... It covers dumping dojo on a page, the css required, dojo.query, dojo.connect, dojo.NodeList (a little), dijit.form.Button simple use case (and interacts with another button on the page), and using dojox.fx.smoothScroll to animate scrolling to named anchor links in a page (foo.html#part1) ...

Syndicate content