SAPO::Widget.Dialog->alert
This method will show an alert window with a message and an OK button
This is static method.
Syntax
SAPO.Widget.Dialog.alert(string, <optional image src to OK button> ,<optional options>);
Compatibility
| All browsers | Yes |
Depends
Input Parameters
- (string) string : Message string
- (string) string : Image URI string or false
- (object) options : Optional options
Options
- width: (int) window width (default: 250)
- height: (int) window height
- onComplete: (function) Function to call after show alert window
- callBack: (function) Function to call when OK button is clicked
- className: (string) CSS class to style alert box
Sample
http://js.sapo.pt/SAPO/Widget/Dialog/sample/
Example
SAPO.Widget.Dialog.alert('This is a message\n\nSecond line', false, {width:500, callBack:function(){ alert('My alert callBack'); }});
Community feedback