- Code: Select all
var js = 'function centerElem(elem) {\
var parent = window;\
elem.css({\
"background-color": "transparent",\
"position": "absolute",\
"top": ((($(parent).height() - elem.outerHeight()) / 2) + $(parent).scrollTop() + "px"),\
"left": ((($(parent).width() - elem.outerWidth()) / 2) + $(parent).scrollLeft() + "px")\
});\
}\
centerElem($("#indicator"));\
$("#indicator").html("<img src=\'ajax-loader.gif\' />");'
plugins.WebClientUtils.executeClientSideJS(js)
I get a nice spinner rather than the word "Loading" (EXCEPT ON DIALOGS - using mod_dialog - but that's a different issue).
(This code is THANKS TO SCOTT BUTLER: viewtopic.php?f=12&t=19554)
HOWEVER, when I try to change the WebClient template directory using:
- Code: Select all
application.putClientProperty('templates.dir', 'custom');
The styles apply just fine - but then the spinner goes away....
So, my question is - is there something in the CSS that is making the "Loading..." invisible (I'm using Harjo's default CSS as a test - from https://www.servoyforge.net/projects/servoy-default-css/files)...
OR is the "Loading" being suppressed when you change the template directory?