-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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!
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.
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?
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 ...
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
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
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
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);
}
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4379472
By: simon_massey
MaryGrace you are a star.
Thanks!
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.
Asked: 2007-03-20 21:44:38 +0800
Seen: 1,086 times
Last updated: Jun 25 '07