pleasewait

Avoid console message form package function

ぃ、小莉子 提交于 2019-12-23 18:36:21
问题 I'm using a package function (corenv, from seewave) which create a "please wait..." message in console. As I call it iteratively, that message is very annoying. So, I need a way for: From my code, to temporarily ban the console messages OR To access the function code and take off the message line The following is not my real code, but a very simple one showing the problem require(seewave) a = seq(0, (2*pi), by=0.01) #simple, unreal example for (i in sequence(100)){ x = sin(a*i/3) #simple,

Dojo “loading”-message

倾然丶 夕夏残阳落幕 提交于 2019-12-22 05:19:24
问题 I'm new to Dojo, so I need a little help. Some of my links takes a while (when the user clicks, it takes several seconds before the page starts loading), and I'd like to add a "loading"-message. I can do it the "old fashion way", but I want to learn the new, easier, smarter Dojo-way. Exactly how it works is not important right now, but I imagine something like this: A rectangle appears in the middle of the browser-windows. (Not the middle of the document.) It has an animated gif, and a

Dojo “loading”-message

微笑、不失礼 提交于 2019-12-05 07:38:08
I'm new to Dojo, so I need a little help. Some of my links takes a while (when the user clicks, it takes several seconds before the page starts loading), and I'd like to add a "loading"-message. I can do it the "old fashion way", but I want to learn the new, easier, smarter Dojo-way. Exactly how it works is not important right now, but I imagine something like this: A rectangle appears in the middle of the browser-windows. (Not the middle of the document.) It has an animated gif, and a message like "Please wait...". All other elements are disabled, maybe "faded out" a bit. Maybe a big white 50

How to invoke a “Please Wait” window only if ajax takes more than X milliseconds to respond?

半城伤御伤魂 提交于 2019-11-28 02:23:53
I'm doing an AJAX call (regular JS) and, if it takes more than, say, 500 milliseconds, I'd like to put up my "Please Wait" box. Normally, if I want to put up the PW box immediately, I'd do: // show semi-transparent grey screen to block access to everything underneath divGreyCoverAllNode.style.display = 'inline'; // show PW box. Prior to these lines, both coverall and PW were display=none divPleaseWaitNode.style.display = 'inline'; // now do the AJAX and follow-up inside a zero timer; the timer is necessary to // make the system pause to display the screen changes we previously invoked

How to invoke a “Please Wait” window only if ajax takes more than X milliseconds to respond?

£可爱£侵袭症+ 提交于 2019-11-27 04:56:30
问题 I'm doing an AJAX call (regular JS) and, if it takes more than, say, 500 milliseconds, I'd like to put up my "Please Wait" box. Normally, if I want to put up the PW box immediately, I'd do: // show semi-transparent grey screen to block access to everything underneath divGreyCoverAllNode.style.display = 'inline'; // show PW box. Prior to these lines, both coverall and PW were display=none divPleaseWaitNode.style.display = 'inline'; // now do the AJAX and follow-up inside a zero timer; the