# 'loading' bar

**URL:** <https://forum.servoy.com/t/loading-bar/11082>\
**Category:** Classic Servoy\
**Created:** [August 26, 2009, 8:08am UTC](https://forum.servoy.com/t/loading-bar/11082 "2009-08-26T08:08:38Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Voorboom](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mark\_Voorboom](https://forum.servoy.com/u/Mark_Voorboom)\
**Post date:** [August 26, 2009, 8:08am UTC](https://forum.servoy.com/t/loading-bar/11082/1 "2009-08-26T08:08:38Z")

</div>

Hi There is it possible to change the color/font of the ‘loading’ bar in the webclient?

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [September 3, 2009, 6:23pm UTC](https://forum.servoy.com/t/loading-bar/11082/2 "2009-09-03T18:23:57Z")

</div>

No, you should file a feature request for this.

---

<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 3, 2009, 9:11pm UTC](https://forum.servoy.com/t/loading-bar/11082/3 "2009-09-03T21:11:18Z")

</div>

You can modify the default template that Servoy uses to generate web client forms:

```auto
<html xmlns:servoy>
    <head>
        <title servoy:id='title'>Container for holding a form and navigator</title>
        <style servoy:id='dynamic_css' type="text/css">
        </style>
		<link servoy:id='main_form_style' rel='stylesheet' type='text/css' />
		<meta servoy:id='refresh' http-equiv="refresh" />
	</head>
    <body servoy:id='servoy_page' id='servoy_page' topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0 bgcolor='#FFFFFF' STYLE="HEIGHT: 100%; WIDTH: 100%;overflow: auto;">
	  <div id='mktipmsg' class='mktipmsg'></div>
	  <span style="display:none;position:absolute;right:0px;top:0px;z-index: 99999; background: #ff0000; foreground: #000000;" id="indicator">Loading...</span>
	  <span servoy:id='contribution'></span> 
      <div servoy:id="modalwindow"></div>
	  <form id='servoy_dataform' servoy:id='servoy_dataform' method='post'>
	  <input servoy:id='defaultsubmitbutton' type="submit" style="top: 0px;left: 100px;width: 0px;height: 0px;position: absolute;z-index: -2" value="">
		<div servoy:id='forms'>
        	<div servoy:id="webform"></div>
        </div>
      </form>
    </body>
</html>

```

The line you are looking for is:

```auto
<span style="display:none;position:absolute;right:0px;top:0px;z-index: 99999; background: #ff0000; foreground: #000000;" id="indicator">Loading...</span>

```

To modify the default template, connect to “[http://localhost:8080/servoy-webclient/templates](http://localhost:8080/servoy-webclient/templates)” via webdav and it is called “MainPage.html”.

I agree with Nicola – it would be nice if there was a “default” way to change the loading indicator style. Maybe via styles like how the default navigator is done:

```auto
.navigatornumber
{
   font: 10pt "Arial";
}

.navigatornext
{
   display: none;
}

.navigatorprev
{
   display: none;
}

.navigatorfirst
{
   display: none;
}

.navigatorlast
{
   display: none;
}

```

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 8, 2009, 9:38am UTC](https://forum.servoy.com/t/loading-bar/11082/4 "2009-09-08T09:38:31Z")

</div>

Hey David,

What WebDAV editor do you use on the Mac? (from a MAC newbie) ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![agiletortoise](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@agiletortoise](https://forum.servoy.com/u/agiletortoise)\
**Post date:** [September 8, 2009, 1:29pm UTC](https://forum.servoy.com/t/loading-bar/11082/5 "2009-09-08T13:29:07Z")

</div>

I use one called “Finder”. ![;-)]( "Wink")

---

<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 8, 2009, 4:42pm UTC](https://forum.servoy.com/t/loading-bar/11082/6 "2009-09-08T16:42:23Z")

</div>

Good thing I read your blog this morning Bob or I might have missed the subtleties of this exchange ![:)]( "Smile") “Finder” lol.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 8, 2009, 6:58pm UTC](https://forum.servoy.com/t/loading-bar/11082/7 "2009-09-08T18:58:09Z")

</div>

Greg & David - ![:oops:]( "Embarassed")

Thanks very much guys!

---

<div class="post-metadata">

**Author:** ![Mark\_Voorboom](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mark\_Voorboom](https://forum.servoy.com/u/Mark_Voorboom)\
**Post date:** [September 9, 2009, 6:42am UTC](https://forum.servoy.com/t/loading-bar/11082/8 "2009-09-09T06:42:56Z")

</div>

Thanks David for your solution.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 9, 2009, 7:12am UTC](https://forum.servoy.com/t/loading-bar/11082/9 "2009-09-09T07:12:19Z")

</div>

Has anyone had any luck in getting a “loading” image to work along with the text “loading…” ? I’ve put the .gif file in almost every directory up the tree - but Servoy doesn’t seem to recognize it… IDEAS?

---

<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 9, 2009, 9:11pm UTC](https://forum.servoy.com/t/loading-bar/11082/10 "2009-09-09T21:11:17Z")

</div>

Looks like you need to qualify from Servoy’s webclient root:

```auto
<span style="display:none;position:absolute;right:0px;top:0px;z-index: 99999; background: #ff0000; foreground: #000000;" id="indicator"><img src="/servoy-webclient/templates/default/clickware.gif" alt="Clickware" /></span>

```

If in a custom css file:

```auto
#someContainer
{
	background-image: url(/servoy-webclient/templates/default/clickware.gif)
}

```

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [September 10, 2009, 10:10am UTC](https://forum.servoy.com/t/loading-bar/11082/11 "2009-09-10T10:10:28Z")

</div>

Hey guys, are you aware that if you edit the templates through webdav you cannot use anymore the servoy.webclient.templates.use\_local\_ids option? Using local ids reduces the weight of the html and makes things be snappier so if your app is quite complex I’d rather stay with the default loading bar to maximize on performance.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 10, 2009, 2:23pm UTC](https://forum.servoy.com/t/loading-bar/11082/12 "2009-09-10T14:23:46Z")

</div>

Hey David - ![:oops:]( "Embarassed") duh… I suck.

---

<div class="post-metadata">

**Author:** ![bobcusick](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@bobcusick](https://forum.servoy.com/u/bobcusick)\
**Post date:** [September 10, 2009, 2:24pm UTC](https://forum.servoy.com/t/loading-bar/11082/13 "2009-09-10T14:24:40Z")

</div>

> ngervasi:  
> Hey guys, are you aware that if you edit the templates through webdav you cannot use anymore the servoy.webclient.templates.use\_local\_ids option? Using local ids reduces the weight of the html and makes things be snappier so if your app is quite complex I’d rather stay with the default loading bar to maximize on performance.

I’ve never really used this option - what’s the purpose of it? How much much more efficient is it?

Thanks for bringing it up!

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [September 10, 2009, 2:28pm UTC](https://forum.servoy.com/t/loading-bar/11082/14 "2009-09-10T14:28:04Z")

</div>

It reduces the weight of the html by using shorter IDs, try to open a complex webclient page in a browser, save the source code, turn the option on and do it again, then compare the 2 saved html pages, you’ll see quite a difference in KB. The more complex the form is the more saving you get, it’s especially noticeable with complex table view forms.

---

<div class="post-metadata">

**Author:** ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)\
**Post date:** [July 16, 2010, 1:39pm UTC](https://forum.servoy.com/t/loading-bar/11082/15 "2010-07-16T13:39:32Z")

</div>

I am using Sevoy 3.5.10 and i want to modify the “Loading” label, therefore “Loading” word from MainPage.html to other word, but i am not sure how to do it since it is not a physical file on the server. Can anyone give me some advices?  
Thank you,  
Diana

---

<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:** [July 16, 2010, 2:08pm UTC](https://forum.servoy.com/t/loading-bar/11082/16 "2010-07-16T14:08:57Z")

</div>

See my post above: it’s in the MainPage.html template.

> david:  
> The line you are looking for is:
> 
> ```auto
> <span style="display:none;position:absolute;right:0px;top:0px;z-index: 99999; background: #ff0000; foreground: #000000;" id="indicator">Loading...</span>
> 
> ```

More webdav instructions:

[http://www.servoymagazine.com/home/2007 … t-web.html](http://www.servoymagazine.com/home/2007/10/how-to-edit-web.html)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 16, 2010, 2:20pm UTC](https://forum.servoy.com/t/loading-bar/11082/17 "2010-07-16T14:20:11Z")

</div>

in servoy \> 5.2 you can try to inject some css/js so that you set the text of the “indicator” element in the web  
Or you overwrite the html template of the MainPage.html (but this must then be checked and tested with every upgrade!)

In the next version of servoy there will be a i18n key that you can set.
