Does it work if you don't use the tacos defaultLinkAction call? My first gut instinct says that might be the problem. You could also try enabling the debug console (documentation on main tacos site, or example in the demo) to see what's going on, possbily post some of your response data into an email.
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?
jesseOn 2/1/06, Jeremy < [EMAIL PROTECTED]> wrote: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
P.S. I just fixed a few outstanding bugs in the dialog component last night,...Everything should be working perfectly in it now, so you may want to sync to cvs (alpha-7 branch) to make sure some of your problems aren't related to those issues...
On 2/1/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
- [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
