# Overriding "Loading" With Spinner - 7.2 Issue?

**URL:** <https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493>\
**Category:** Classic Servoy\
**Created:** [September 26, 2013, 6:26pm UTC](https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493 "2013-09-26T18:26:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcusick1332964082](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bobcusick1332964082](https://forum.servoy.com/u/bobcusick1332964082)\
**Post date:** [September 26, 2013, 6:26pm UTC](https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493/1 "2013-09-26T18:26:02Z")

</div>

After setting the servoy.webclient.blockinputonrequest to FALSE and I run this code:

```auto
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](https://www.servoy.com/forum/viewtopic.php?f=12&t=19554))

HOWEVER, when I try to change the WebClient template directory using:

```auto
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](https://www.servoyforge.net/projects/servoy-default-css/files))…

OR is the “Loading” being suppressed when you change the template directory?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [September 26, 2013, 7:08pm UTC](https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493/2 "2013-09-26T19:08:15Z")

</div>

hi Bob, what if you try to set the templates dir first and than fire your js injection-code?

---

<div class="post-metadata">

**Author:** ![bobcusick1332964082](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bobcusick1332964082](https://forum.servoy.com/u/bobcusick1332964082)\
**Post date:** [September 27, 2013, 3:08pm UTC](https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493/3 "2013-09-27T15:08:07Z")

</div>

Yep - I tried that as well. ![:)]( "Smile")

It’s still no-go.

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [September 27, 2013, 10:36pm UTC](https://forum.servoy.com/t/overriding-loading-with-spinner-7-2-issue/17493/4 "2013-09-27T22:36:24Z")

</div>

Need to get familiar with Chrome developer tools and some basic browser debugging techniques if you’re going to venture into web client beyond the basics. Find elements, see what css is being applied, where the css is coming from, set breakpoints in code, insert and modify code/markup/css at runtime manually to test things out, etc. Your issue is a very easy one to track down with the right tools. Not so easy to tell you what might be the issue.
