4 ms·
Most people only use alert() for debugging. It blocks the thread of execution until dismissed which is a nice feature. However, alert() is almost never used to
by bjourne 14y ago
Most people only use alert() for debugging. It blocks the thread of execution until dismissed which is a nice feature. However, alert() is almost never used to display user-visible messages, which one definitely would use your nice looking plugin for. The concept is called "flash messages" and there are some other plugins that also implement them, but they are not as sophisticated as yours.
- bitdestroyer 14y agoThey are also known as Toasts. I believe that's what the Android SDK refers to that concept as, as well as many other libraries.
- masklinn 14y agoYeah: http://en.wikipedia.org/wiki/Toast_(computing) http://en.wikipedia.org/wiki/Toast_(computing) Though they're often known as merely "notifications", that's how Growl calls them and libnotify... well no need to spell it out.
- zackbloom 14y agoI had no idea they had a name, thanks!
- asveikau 14y agoI remember this as a Microsoft term, based on notifications from Outlook and MSN Messenger. The analogy is that it pops up like toast from a toaster.
- derefr 14y ago> It blocks the thread of execution until dismissed which is a nice feature. I've wanted a "just wait a minute, Javascript engine; let me look at what you're doing!" API call for quite a while. Turns out there is one: you can put "debugger;" in any JS code, and (if you have Webkit Devtools or Firebug or what-have-you) it will act as if you had set a breakpoint right at that statement. Much less diddling with the mouse to set a breakpoint in code you already had open in a text editor. Good complement to console.log :)
- 0x0 14y agoThis is one of most important things I've learned this whole month! Thanks for the tip! :)
- ams6110 14y ago> alert() is almost never used to display user-visible messages What bank do you use?
- sgt 14y agoI just realized my bank does this as well. Sad, very sad.