After setting the servoy.webclient.blockinputonrequest to FALSE and I run this code:
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:
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 Files - Alternative CSS for webclient - ServoyForge)…
OR is the “Loading” being suppressed when you change the template directory?