<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.freedesk.purplepixie.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://wiki.freedesk.purplepixie.org/w/index.php?action=history&amp;feed=atom&amp;title=JS_Alerts</id>
		<title>JS Alerts - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.freedesk.purplepixie.org/w/index.php?action=history&amp;feed=atom&amp;title=JS_Alerts"/>
		<link rel="alternate" type="text/html" href="http://wiki.freedesk.purplepixie.org/w/index.php?title=JS_Alerts&amp;action=history"/>
		<updated>2026-05-29T17:52:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.freedesk.purplepixie.org/w/index.php?title=JS_Alerts&amp;diff=25&amp;oldid=prev</id>
		<title>Dave: Created page with &quot;= Overview =  The on-screen alerts are the little coloured information bars you get at the top of the screen and are created using the Alerts instance of FreeDESK_Alerts  = Us...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.freedesk.purplepixie.org/w/index.php?title=JS_Alerts&amp;diff=25&amp;oldid=prev"/>
				<updated>2012-06-27T23:22:09Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Overview =  The on-screen alerts are the little coloured information bars you get at the top of the screen and are created using the Alerts instance of FreeDESK_Alerts  = Us...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
The on-screen alerts are the little coloured information bars you get at the top of the screen and are created using the Alerts instance of FreeDESK_Alerts&lt;br /&gt;
&lt;br /&gt;
= Use and Example =&lt;br /&gt;
&lt;br /&gt;
To add an alert call the method Alerts.add(text, level, autoRemove) with the options being the text to display, the level (0 is good and green in default CSS, 1 is warning and yellow in default CSS and 2 is bad and red in default CSS), the autoRemove is the number of seconds to display the alert for (0 means display forever until user manually clicks to close.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Alerts.add(&amp;quot;Hello World&amp;quot;,0,20); // a green ok alert for 20 seconds&lt;br /&gt;
Alerts.add(&amp;quot;Error!&amp;quot;,2,0); // An error (red) that must manually be removed&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Other Functions =&lt;br /&gt;
&lt;br /&gt;
Alerts.clear() will clear all alerts.&lt;br /&gt;
&lt;br /&gt;
Alerts.randomTest() will display a random-level and random-text alert for the default timeout.&lt;/div&gt;</summary>
		<author><name>Dave</name></author>	</entry>

	</feed>