persist = (persist == 'TRUE'); $('#notices-container').add_notice(type, message, persist); }); }); </script> </head> <body> <h1>Notices Demo</h1> <p>Number of notices in queue <em>before</em> display: <?php echo Notices::count(); ?> </p> <div id="notices-container"> <?php echo Notices::display(); ?> </div> <br /> <fieldset> <legend><h2>Add a Notice via AJAX</h2></legend> <p> <label for="type">Notice Type (can be anything):</label> <br /> <input id="type" type="text" /> </p> <p> <label for="message">Message:</label> <br />