DEMOS / AJAX Replace

Nitrogen allows you to replace elements on the client page. When you click on the 'Replace' button, the page will use wf:replace(mainPanel, Message) to replace the contents of the panel.

Unlike wf:update/2 (which replaces just the inner contents of an element), the replace/2 function replaces the entire DOM element.

View Module Source
This panel will be replaced.

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