Login Register

while

Simple question, but stuck: dijit input field properties do not hold when in a loop.

Hi,

In the following code, my input field in my form repeats as I would like, however the input dojoType and it's properties do not hold after the first iteration. So for example if I have a input dojoType = dijit.form.NumberTextBox; that outputs 10 times in a loop. only the first form will hold certain properties like constraints and trim and the other 9 will appear/function as just normal input text fields. Anybody have any clue why this is??? Any help would be much appreciated.

<?php
$i=1;
while($i<10){

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()
    }
Syndicate content