0

How can I disable the progress box

asked 2011-03-09 11:55:43 +0800

paula gravatar image paula
74 2

In ZK by default there is a progress box showing up when doing a process which takes long time.

It turns out that our customer does not like this. So we need to disable it. I found a solution from here:
http://docs.zkoss.org/wiki/ZK/How-Tos/Concepts-and-Tricks#Disable_The_Progress_Bar_of_ZK.

So I added the following script to my zul page based on the instruction.

<script type="text/javascript"><![CDATA[ window.Boot_progressbox = function (){} ]]></script>

But somehow it does not work.

I think there is another way to do it. We could update the css file for the project to make the progress box "hidden". But our project is using default theme from ZK which is silvergray-tod.jar. And there is only an image.css.dsp and a color.css.dsp other than bunch of images when you unzip it. So what should I do to hide the progress box?


Thank You very much!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-03-09 20:13:54 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi paula,
Put the empty function on a separate line

<script type="text/javascript">
<![CDATA[ 
          window.Boot_progressbox = function (){} 
]]>
</script>

link publish delete flag offensive edit

answered 2011-03-09 20:18:35 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

FYI
Note from w3schools CDATA page
A CDATA section cannot contain the string "]]>"

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-03-09 11:55:43 +0800

Seen: 855 times

Last updated: Mar 09 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More