0

Positioning the "Loading..." message

asked 2007-03-20 21:44:38 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4217328

By: waqinator

When an asynchronous request is sent to the server upon an operation, the mini spinner/dialog that shows the "Loading..." message is positioned in the top-right of the page by default. Is there a way to center it on the page?

Similarly, the ERROR message (default session timeout message for example), shows in the top left corner. We'd like to position it in the center too.

Is there a configuration that could achieve this?

Thanks.

delete flag offensive retag edit

11 Replies

Sort by ยป oldest newest

answered 2007-03-22 19:34:25 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4222841

By: ddbb88

I have the same question. In addition, I have the following questions along the same line:

* Can I change the message from the current "Processing..." to something else, ex. "Please wait ..."?
* Can I change the font size of this message?
* Can I add a delay of say 1 sec before this message disappears? It now flashes too quickly for the user to see on our site.
* Can I grey out the background page while this message is showing?

If I need to change the Javascript files to achieve these goals, is there a better way than directly modify ZK's own code (namely, boot.js etc.)?

Thanks in advance!

link publish delete flag offensive edit

answered 2007-03-23 13:56:29 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4224037

By: ilcavero

I don't know much but maybe this helps.
you can change the message in the mesg.js file located on the zk.jar \web\js\zk\html\lang I believe there is a way to override those files without changing the .jar but I dont know how.
About the style and delay of the message I would like to find out too.

link publish delete flag offensive edit

answered 2007-03-26 04:12:50 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4227175

By: moab_dabomb

I also think this would be a great thing to be able to modify as well.
Any ideas?

link publish delete flag offensive edit

answered 2007-03-27 17:24:53 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4230378

By: ddbb88

No reply from the ZK development team yet? :( They usually reply within 24 hours.
Let's hope someone can give us some answers here ...

link publish delete flag offensive edit

answered 2007-03-27 22:24:48 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4230791

By: c_armeanu

For all I can see, the styling of the progress block element is currently hard-coded.
You'll have to edit boot.js to achieve your goals.

Chris


link publish delete flag offensive edit

answered 2007-03-28 02:23:31 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4230976

By: robbiecheng

Please post this to feature-request, and sorry for the late response.

/robbie

link publish delete flag offensive edit

answered 2007-04-02 04:36:53 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4239025

By: henrichen

Try this.

http://sourceforge.net/tracker/index.php?func=detail&aid=1683475&group_id=152762
&atid=785194

/henri

link publish delete flag offensive edit

answered 2007-06-21 11:24:14 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4372992

By: marygrace

hi,

my test/example, for center 'Loading...'

MaryGrace


myWaiting.zul
-------------
<zk>
<window>
<button label="go !" onClick="go()"/>
<zscript>
<![CDATA[
public void go() {
Thread.sleep(5000);
}
]]>
</zscript>
</window>
<script type="text/javascript" src="progress-prompt.js" /> </zk>

progress-prompt.js
------------------

function Boot_progressbox(id, msg, x, y) {

var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth
|| document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}

x = (myWidth-180) / 2;
y = (myHeight-70) / 2;

var html = '<div id="'+id+'" style="left:'+x+'px;top:'+y+'px;'
+'position:absolute;z-index:79000;background-color:white;'
+'white-space:nowrap;border:4px solid #77a;padding:15px; font-weight:bold;">'
+'<img alt="." src="'+zk.getUpdateURI('/web/zk/img/progress.gif')+'"/> '
+" Attendere prego..."+'</div>';
document.body.insertAdjacentHTML("afterbegin", html);
return $e(id);
}


link publish delete flag offensive edit

answered 2007-06-25 10:39:45 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4379472

By: simon_massey


MaryGrace you are a star.

Thanks!


link publish delete flag offensive edit

answered 2007-06-25 10:56:02 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4379489

By: simon_massey


Okay I am sure that I saw somewhere how to swap out the alert messages and the error message - but I cannot find it anywhere. Could someone be so kind as to point me in the correct direction? Thanks.

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: 2007-03-20 21:44:38 +0800

Seen: 1,060 times

Last updated: Jun 25 '07

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