I did what you suggested and i saw the setInterval() function; which works!
Thanks for pointing me to the right direction and the learning experience!
Jeromy Evans - Blue Sky Minds wrote:
>
> Grish wrote:
>> So I ended up with the following code:
>>
>> var myDiv = dojo.widget.byId("myDivId");
Grish wrote:
So I ended up with the following code:
var myDiv = dojo.widget.byId("myDivId");
myDiv.timer.interval = newInterval;
Great!
Also you need to restart the timer by stopping it and starting again for the
new interval to take effect. Would there be some kind of function I can use
t
Thanks for the reply!
Sorry about the example, the references were indeed wrong in my example but
the code was using the right references. My problem was when I would refer
to myDiv.updateFreq it would be undefined. But when I used your simple
script I was able to get the div widget and access th
.enableSelection($("enabletest"));
}
}
Struts setting of type
Martin--
- Original Message -
From: "Jeromy Evans" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, November 07, 2007 7:52 AM
Subject: Re: [S2] Change updateFreq in a DIV
Your code references "quoteDetails" but the div you provided is
"myDivId". Other than that I don't see anything wrong with it.
updateFreq should be writeable using your approach although I haven't
tried it.
Try a simple script:
var myWidget = dojo.widget.byId("myDivId");
myWidget.updateFreq
Ok I've made some progress but now i'm stuck. What I did was have a a div tag
then I have select box
then on my updateFreq function i have the following:
function updateFreq(obj) {
if (obj.selectedIndex == 0) {
dojo.event.topic.publish("/stopTimer");
}
6 matches
Mail list logo