Dialogs

Two most frequntly used dialogs are alert and cofirm. In the case of a alert you just need to display a message to the user and require no feedback besides user acknowledgement. Confirm dialog has similar purpose, but expects from the user a response by accepting or declining to the request. The w2ui library includes these dialogs for your convenience.

Alert

The alert dialog can be called in the following way: The method takes one or two arguments w2alert(msg, [title], [callBack]), where msg is the message to display. You can optionally supply title for the message. If you need to define more options, you can use $().w2popup().

Confirm

The confirm dialog can be called in the following way: The method takes up to three arguments w2confirm(msg, [title], [callBack]), where msg is the message to display. You can optionally supply title for the message and a call back function.

User Comments

comments powered by Disqus