POST
|
Robert, Thank you very much for your continuous help, but still notworking,I don't know why it is.
... View more
12-22-2016
10:33 PM
|
0
|
1
|
397
|
POST
|
Hello all,let me post my partial code in which I have difficulty to figure out its solution: I have a button with "FadeIn" id and I want to call the FadeInPrimaryOpacity(op) function for each value of i repeatedly till the limit value of i is reached after the FadeIn button is pressed.so,is there any wrong with my code postCreate: function() { registry.byId("FadeIn").on("click", lang.hitch(this, this.PrimaryLayer_Visibility)); }, PrimaryLayer_Visibility:function () { // don't worry about "this.primaryLayer" since this is partial code of the whole code if (this.primaryLayer.visible) { for(var i=0;i<=10;i++) setTimeout(function(){ FadeInPrimaryOpacity(i/10.0); },2000); } else { for(var i=10;i>=0;i--){ setTimeout(function(){ FadeInPrimaryOpacity(i/10.0); },2000); } } } , FadeInPrimaryOpacity:function(op) { this.primaryLayer.setOpacity(op); },
... View more
12-22-2016
03:42 AM
|
0
|
5
|
1604
|
POST
|
Robert, Thank you very much for your fundamental directions toward the point,but,let me clear with my question: my intention is to have function with for loop or any loop statement and that loop has counter,then the function must return every value of the counter,which means,as soon as the value of counter is updated the function must be called. Awet
... View more
12-21-2016
09:12 PM
|
0
|
1
|
424
|
POST
|
hello all,I am beginner for dojo coding,and I am trying to develop widgets with dojo,and I want to have recursive function in one of my widgets that can be executed n times and return the values (0 to n-1) on each call of the function,so,is there anyone who has know how to solve this problem with dojo and share me? thanks in advance.
... View more
12-21-2016
05:31 AM
|
0
|
3
|
1769
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|