Good morning, I tried using the loader in an application I'm developing but on a button that defined the class "LoaderPage" I'm using ajax refresh during the flow, so the loader stopped working for all buttons.
It only works the first time.
How can I solve the problem?
Hi Suman,Are you still having this problem?A colleague of my ran into the same issue.We fixed it by replacing the refresh of the javascript block with a RunJavaScript action from the HttpRequestHandler module.That will run the following javascript:
var pl = pageLocker(); pl.initializer();
this fixed it for us.Kind regards,Eric
Jorge Rodrigues wrote:
Hi Jorge,
In case you do an ajax refresh in a button, you will have to apply the page loader again by doing an ajax refresh in the Page Loader script as well.
Cheers
Hi Matheus,
I am also facing similar problem as Jorge faced i.e. Page Loader works only for the first time on my button which does Ajax refresh. It doesn't work the second time when the same button is clicked.
I am not able to follow your solution provided above. Can you please elaborate.
Thanks,
Suman
If you apply an ajax refresh to the button, but not to the ``Page loader script (or container where the script is), it will not reapply the loader.
I have applied an AJAX Refresh on the PageLoader script as well, but it is still working for only the first time. In my screen I have 2 buttons "Search" and "Refresh" and it works only for the first time for either one of the buttons.
Here is a snippet of the Widget Tree:
Here are both the buttons:
LoaderPage has been applied to both buttons Style Class:
Both the buttons call the same action where I am doing the Ajax Refresh on PageLoader too:
Here is the ScreenLoader webblock with its values:
Not sure if I need to anything else here so that it works regardless of the number of times I click on Search or Reset in the same screen.