|
Hi everyone. I’m trying to put a ProgressBar in a
Dialog. I modified the startObject of the standard ProgressBar demo so it looks
like this: startObject.responseComplete =
function(responseElements) { if (!document.progAnim) { var progNode =
document.getElementById("progress"); dojo.fx.html.fadeShow(progNode, 1000); document.progAnim = new
dojo.animation.Animation( new dojo.math.curves.Line([1],[20]), 2000, //2 second pauses 0, //no acceleration -1 //repeat forever ); à
dojo.widget.byId('myDialog').show(); // dojo.event.connect(document.progAnim,
"onAnimate", function(e) { // tacos.defaultLinkAction({url:
linkString, processScripts:true, useSync: true}); // }); // document.progAnim.play(true); } } The little arrow shows the line that I added to show the
Dialog when the progress worker starts. You can also see that I’ve
commented out the code for testing. The problem is that instantiating the new
dojo.animation.Animation object interferes with the “showing” of
the Dialog. The Dialog shows for an instant, and then disappears. If I comment
out the lines that do the instantiation, the dialog comes up fine. But, of
course, the ProgressBar doesn’t work. I’d appreciate any hints or guidance. All the best, Jeremy |
- [Tacos-devel] ProgressBar in a Dialog Jeremy
- Re: [Tacos-devel] ProgressBar in a Dialog Jesse Kuhnert
- Re: [Tacos-devel] ProgressBar in a Dialog Jesse Kuhnert
