1

how to remove zk library loading and processing popups

asked 2010-10-05 07:29:31 +0800

kapil4ya gravatar image kapil4ya
172 2

Hi guys,

I was wondering how to remove these pop ups from appearing while the first page loads. After a lot of search, I found this code -


<zk>

<window id="xyz">

<attribute name="onCreate">
	Clients.showBusy("null", false);
</attribute>

</window>

</zk>

I tried this for the window on the home page of the application, but it works only on the localhost, and as soon as the application goes to the production, those pop ups appear again.

Is it because of the loading of too much data? I can see the effect of the above code on localhost, but not on production.

Best,
Kapil

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2010-10-05 20:21:36 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi Kapil
I have tested you sample in my url http://jimmy-pc:8080/ZK50/test.zul,
it worked well,
What ZK version are you using?
do you want to disable all loading icon ?

link publish delete flag offensive edit

answered 2010-10-06 00:46:18 +0800

kapil4ya gravatar image kapil4ya
172 2

Thanks for reply.

Yes, I do want to disable all of them. And the code works well on the local machine but not on prod environment.
As asked, could this be an issue related to bulk loading of the data?

ZK demo site seems to be working fine and does not show these pop up messages.

link publish delete flag offensive edit

answered 2010-10-10 20:46:56 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

set following setting in your zk.xml

<device-config>
		<device-type>ajax</device-type>
		<embed><![CDATA[
			<script type="text/javascript">
				zAu.cmd0.showBusy = function () {return false;}
			</script>
		]]></embed>
	</device-config>

the loading message will not appear

link publish delete flag offensive edit

answered 2014-02-04 16:24:03 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

hi this can be done for only specific pages ?

link publish delete flag offensive edit

answered 2014-02-06 06:04:49 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Yes, you can add a script tag in your zul page

<script> zAu.cmd0.showBusy = function () {return false;} </script>
link publish delete flag offensive edit

answered 2015-08-22 19:20:11 +0800

wcbrown11 gravatar image wcbrown11
1

Hi,

Did this work in production?

Thanks. William

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: 2010-10-05 07:29:31 +0800

Seen: 558 times

Last updated: Aug 22 '15

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