DEMOS / User Notices

Nitrogen provides you with a variety of ways to notify a user of information.

Flash Message

A flash message is an HTML box that slides into the page at a point specified by the #flash{} element. The flash message can be a simple text-message, or can contain other controls. To display a flash message, call wf:flash(TextOrElements).

Flash messages are stored in session until they are displayed. This allows your application to set a flash message on one page in response to user action and then redirect the user to another page, at which the message is displayed.

Alert Box

The #alert {} action displays a simple Javascript alert to the user.

Confirm Box

The #confirm {} action displays a Javascript confirm box to the user, and posts back if the 'OK' button is clicked.

View Module Source

Copyright © 2008-2024 Nitrogen Web Framework. Released under the MIT License.