Otherwise, you may be running into a bug with the dialog in alpha-7. It wasn't showing the dialog on a page if it's default state was "not" hidden. This is fixed in the current cvs version (not trunk, the alpha-7 branch). It could be that that you are experiencing?
jesse
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
