Login Register

connect

Using wipeIn/Out

Hi, I'm having a really hard time understanding Dojo and how to use the wipeIn/Out effects. I've created some jQuery code to do exactly what I want but cannot seem to figure out how to convert it to Dojo. Can anyone help me with this?

$(document).ready(function(){
        $('.main_navigation ul li:has(ul)').hoverIntent({
                over: function () { $(this).find("ul:first").slideDown('normal'); },
                out: function () { $(this).find("ul:first").slideUp('normal'); },
                timeout: 500
        });
});

connecting 2 moveable image shapes

Hi,

I am new to dojo, and am getting stuck in defining the behaviour of a moveable gfx shape (image).

I have 2 gfx shapes (on two different surfaces), and I want to make them connect to each other - i.e I want the other image to also move in sync with the other (both the images are same, and are in a proportion of 1:2). I am having a hard time connecting these two objects such that they are able to move in sync (with proportionate displacements).

is there an example that show how to connect to Slider events?

I'm using the digit not the dojo byId object, and I can setValue
it just fine. Sot its there, I think. But I have yet to figure
out how to fire a function of my own when it gets changed. The
example on the Slider page in the book just shows it getting its
value set, which isn't that helpful.

Any help greatly appreciated.
Britton

Help with animation loop: onEnd function works, animation doesn't

Let me start off by saying that I am a Dojo noob (and rusty on my JS), so this is probably an easy fix that I am overlooking, but I have been searching the forums for the past two day, to no avail.

I am trying to get an array of nodes, take the first node in the array, fade it out, remove the node, and repeat with the next node until all nodes in the array are gone.

At first I tried using this:

while(arr.length > 0){
       myAnim.play()
    }

Why my _onClick function is never called by my widget ?

I created my own widget and I want to isolate any event that happends inside from outside. In order to achieve that I connected the onclick event to my _onClick function but it is never called.

This is my template:

<div class='dijitContentPane' dojoType="dijit.layout.ContentPane"
         dojoAttachPoint='containerNode' dojoAttachEvent='onclick:_onClick'
         style="border:solid; position:absolute; width:200px; top:${top}; left:${left};">

        <input dojoType="dijit.form.TextBox" class='dijitTextBox' value="test-test" >
        </input>
    </div>
</div>

Grid event onSet don't want be fired :/

Hi !

I've spend about 3hr to found out why the onSet event is never fired, I, desperatly, I ask for your help :)

So, here is my code :

function createGrid (oResponse, ioArgs) {
var grid = dijit.byId("grid");
var store = new dojo.data.ItemFileReadStore({data: oResponse });
var gridModel = new dojox.grid.data.DojoData(null, store, {query:{destination: '*'}, clientSort:true});
grid.setModel(gridModel);
grid.refresh();

dojo.connect(grid.model, 'onSet', onSetEvent);
//dojo.connect(grid, 'onSet', onSetEvent);
}

Performing an action when a data store finishes loading

I'm trying to catch an event when my datastore finishes loading the data originally, but I can't seem to get it.
I need to modify some data (client side) before a grid uses the data.
I've tried connecting to the onLoad, onNew and constructor events with no success.

Here's my last attempt:

pdojo.addOnLoad(function(){
pdojo.connect( questionStore, "onNew", "test123");
});

function test123( )
{

GFX Mover vs Moveable

Can anyone elaborate on the difference between dojox.gfx.Mover and dojox.gfx.Moveable?

(Solved) connect to grid onSet event programmatically

I'm trying to connect to a grid for the onSet event like this:

var gridEventHandler = {
onset: function(item,attr,oldVal,newVal) {}
}
dojo.connect(grid,'onSet',gridEventHandler,'onset');

The event handler does not fire. What am I doing wrong?

Dojo.connect

Please help. I am unable to connect these simple function using dojo.connect. The commented code [dojo.connect(anchor,"onclick",dummyAgain)] works but not the connection b/w [dojo.connect(dummy1,dummyAgain)]

 

function dummyAgain(){
console.debug("dummyAgain");
}
function dummy1()
{
console.debug("dummy1");
}
function dummy(){
console.debug("dummy");
dummy1();
}

Syndicate content