« Return to Thread: [TRINIDAD] How to display "Page loading..." while page is loading?

Re: AW: AW: AW: [TRINIDAD] How to display "Page loading..." while page is loading?

by Daniel Niklas :: Rate this Message:

Reply to Author | View in Thread

Hi,
Markus Döring wrote:
Maybe
<tr:form onsubmit="document.getElementById('busyIconIndicator').style.display='inline'">
        ...
</tr:form>

works?
Ok, this seems to work:

...

function showStatusBusy() {
    document.getElementById("statusIndicator::busy").style.display="inline";
    document.getElementById("statusIndicator::ready").style.display="none";
}

...

<tr:form onsubmit="showStatusBusy();">

...

  <tr:statusIndicator id="statusIndicator">
      <f:facet name="busy">
          <tr:outputLabel value="loading ..." />
      </f:facet>
      <f:facet name="ready">
        <tr:outputLabel value="ready" />
      </f:facet>
  </tr:statusIndicator>

...


But isn't there a solution whith (trinidad) javascript, where i can get the information, that a request will be send? I could avoid the onload within the form component then.

best regards
Daniel

 « Return to Thread: [TRINIDAD] How to display "Page loading..." while page is loading?