Using dojox.widget.Standby in Xpage and try to show “waiting” screen during partial refresh process.

I used image in Standby widget.

When I clicked on button, first time only, image seems twice (like screen flip), after one click, trying again but at this time no problem.

Why Standby widget shows image twice at first run/show ?

Any idea ?

7 Comments

    • Part of code is like this. If I can prepare sample NSF, I will email you Serdar.



      < ![CDATA[#{javascript:noteOperations("save");}]]>


      < ![CDATA[function noteOperationStarted() { // alert(dojo.byId("#{id:panelFormContainer}")); if (this.fullStandby == null) { this.fullStandby = new dojox.widget.Standby({ target:dojo.body(), color:'lightgray', image:'/LotusPleaseWait.png', duration:200 }); document.body.appendChild(this.fullStandby.domNode); this.fullStandby.startup(); } this.fullStandby.show(); } function noteOperationCompleted() { if (this.fullStandby != null) this.fullStandby.hide(); if (this.fullStandbyCompleted == null) { this.fullStandbyCompleted = new dojox.widget.Standby({ target:dojo.body(), color:'lightgray', image:'/LotusPleaseWaitCompleted.png', duration:200 }); document.body.appendChild(this.fullStandbyCompleted.domNode); this.fullStandbyCompleted.startup(); } this.fullStandbyCompleted.show(); setTimeout(function() {if (this.fullStandbyCompleted != null) this.fullStandbyCompleted.hide();}, 500); }]]>

      Reply
  1. Esinlenmek insan dogasinda var Ustad 🙂 Internet aleminde utanma duygusunu da tattirdin ya bana operim 🙂

    Julian, reading this hi-jack tutorial now. I hope, It can help, thanks.

    Reply
  2. function noteOperationCompleted()
    {
    if (this.fullStandby != null) this.fullStandby.hide();
    if (this.fullStandbyCompleted == null)
    {
    this.fullStandbyCompleted = new dojox.widget.Standby({
    target:dojo.body(),
    color:’lightgray’,
    image:’/LotusPleaseWaitCompleted.png’,
    duration:200
    });
    document.body.appendChild(this.fullStandbyCompleted.domNode);
    this.fullStandbyCompleted.startup();
    }
    this.fullStandbyCompleted.show();
    setTimeout(function() {if (this.fullStandbyCompleted != null) this.fullStandbyCompleted.hide();}, 500);
    }]]>

    +1

    Reply

Cancel reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.