I’m trying to create a short term overlay notification for an app I’m working on. I also happen to be completely constrained to using YUI as my only script library. The goal is to make a YUI-styled notification appear over the page following a post wherein the form was saved. I would use the simpledialog, but the client doesn’t want to have to interact with the notification, and they don’t want any buttons or controls on it whatsoever, just a featureless, styled box that displays a message.
The effect I’m trying to pull off right now is to produce something similar to jQuery’s showGlobalMessage function. So, are there any YUI controls capable of doing this? and if not, what would be the best way, using self-written js, to produce this effect?
Thanks for the help.
Is the YUI Overlay widget what you’re looking for?
I pasted a sample page demonstrating how it works. If that’s more or less what you’re looking for, then you should be able to have a function that, upon form submission, activates the overlay. You will have to lookup the API to learn more about it — http://developer.yahoo.com/yui/3/overlay/
Also, YUI has custom events (but I don’t know much about them): http://developer.yahoo.com/yui/3/event/