How to use toggleSpinner in javascript for a client Action?

I have a medium-long running client action and are trying to use aras.browserHelper.toggleSpinner() while the client is busy and waiting for the server method to complete. It works fine in Firefox browser but I cant get it to work in Chrome or IE. These browsers just freeze until the action have completed and the "red spinner" is never shown. If someone have an idea about this please share.

The Action (Type: Item, Location: Client) is calling a javascript method (Method: test_client_method, Target: None)

The JS Method (test_client_method)

try
{
aras.browserHelper.toggleSpinner(document, true);

this.apply("long_running_server_method");
}
finally
{
aras.browserHelper.toggleSpinner(document, false);
}

Parents
  • Just to chime in.

    I have the same scenario, only that I can't display a spinner in any of the three browsers.

    I tried the "topWnd" from VCN_OnShowItem and experienced no difference. I also found a use in the aras codetree with an extra parameter, which does also not produce a spinner

    aras.browserHelper.toggleSpinner(topWnd.document, true, 'dimmer_spinner_whole_window');

Reply
  • Just to chime in.

    I have the same scenario, only that I can't display a spinner in any of the three browsers.

    I tried the "topWnd" from VCN_OnShowItem and experienced no difference. I also found a use in the aras codetree with an extra parameter, which does also not produce a spinner

    aras.browserHelper.toggleSpinner(topWnd.document, true, 'dimmer_spinner_whole_window');

Children
No Data