Login Register

dom

DOM tracing

Hi,

I'm newbie of dojo and used to use jQuery as JS Framework. I faced a problem when migrate to dojo because in jQuery it's quite easy to do DOM tracing and manipulation such trace parent node. But, in Dojo I can't find the simplest way to do such things in jQuery.

Drag and Drop

Hi,

I'm new to the Dojo toolkit so please bear with me if any of my queries seem elementary. I was going through the step by step tutorial by Revin Guillen on Drag and Drop - http://www.sitepen.com/blog/2008/06/10/dojo-drag-and-drop-1/

I'm building a sample application based on that tutorial. So I have a simple list whose elements the user can reorder using drag and drop. This is the code I'm using.

@import url("http://o.aolcdn.com/dojo/1.1.1/dojo/resources/dojo.css");

Insert HTML code to a DOM node

Hello guys, i'm new here and have a question, do you know a way to add HTML parsed string to a DOM node like dojo.place adds a DOM node to another?, i have seen that there is a dojo.html object that makes this but i don't know if it's on an old version or it's new, the fact is that it's not on version 1.1.1. If it's old, what is the new instruction to do the same?, if it's new, is there another way to insert the HTML code moreover DTL way? i think DTL is to do more complex things. Regards

DOM/html scoping problem is causing a "dijit.byId is not a function" error on dijit.byId()

I have been struggling with the dijit.byId is not a function for a while. I believe it is not a parsing (onAddLoad) problem. Although I am not sure. I suspect it to be a scoping issue with my html.

I get the following errors in firebug when I set a breakpoint a checkbox handler: undefineddojo._scopeArgs = [undefined];

"dijit.byId is not a function"

Here is a copy of html file:

Dons Book Checkbox

Best Practice - Wrapping a DOM Node

I was wondering what the best way to remove a DOM node, then insert it back into a new node in its exact place would be. Basically wrapping the node with another.

What's the Dojo way for XML getElementsByTagName?

What's the right Dojo way to do the following, where I want to get a value for an element from the XML reply to an xhrPost?

function RequestSubmittedSuccessfully (data, ioArgs)
    {
        var elem = data.getElementsByTagName("Filepath")[0];
        if (elem != null) {
            var fp = elem.firstChild.nodeValue;
            // ...
        }
    }

BTW, here's the data:

1216745579265.ext
C:\alpha\beta\gamma

Chaining DOM event with connect

I'm sorry if its been already answered, couldn't find a relevant topic.

In the example below, bar function never gets called. so how do I chain dom events to other methods other than the original target i.e. on keypress, it should call echo and then bar. it calls echo on keypress but bar never gets called. Is it possible to do this? if so how or any workarounds??? Thanks.

Dojo Events are Great

Syndicate content