Function
Shows a bar at the top of the screen when the user is to be notified that they should upgrade their browser or a plugin.
You can insert custom validations to trigger the UpgradeBar to display. An evaluation of 'true' shows the bar (as this version *is* less than it should be). Multiple validations may be checked, although only the first in the list will be displayed. Markup and programmatic are supported. Markup is a little cleaner, since a majority of the parameters are the HTML snippets to be displayed. In markup, the validate code should be an expression that will evaluate to true or false. This expression is wrapped in a try/catch, so if it blows up, it is assumed to be true and trigger the bar. In programmtic, a function should be used that returns true or false. You would need to use your own try/catch in that.
See tests for examples.
Array
An array of objects that hold the criteria for upgrades. message: String The message to display in the bar. Can be HTML. validate:Function The expression to evaluate to determine if the bar should show or not. Should be a simple expression if used in HTML: <div validate="!google.gears"> <div validate="dojo.isIE<8">
Function
Internal. Go through the notifications Array and check for any that evaluate to true.
Function
Function
Triggers the bar to display. An internal function, but could ne called externally for fun.
Function
Internal. Shows the bar. Do not call directly. Use notify();
Function
Hides the bar. May be called externally.
Function
Called when user clicks the "do not remind" link.
Function
Called when user hovers over close icon
Function
Called when user stops hovering over close icon
Object
Object