<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=Board18New2</id>
	<title>Board18New2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=Board18New2"/>
	<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=Board18New2&amp;action=history"/>
	<updated>2026-04-23T18:33:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.0</generator>
	<entry>
		<id>https://wiki.board18.org/index.php?title=Board18New2&amp;diff=2997&amp;oldid=prev</id>
		<title>Rich: Initial page contents</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=Board18New2&amp;diff=2997&amp;oldid=prev"/>
		<updated>2020-08-28T17:04:56Z</updated>

		<summary type="html">&lt;p&gt;Initial page contents&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ReleaseNoticeX|2.6|Design_Document_board18New_Page}}&lt;br /&gt;
board18New2.js contains all of the code to actually create a&lt;br /&gt;
new game and inform the players of this fact.&lt;br /&gt;
&lt;br /&gt;
== Function isNumber(n) ==&lt;br /&gt;
I found this generalized numeric test function&lt;br /&gt;
at http://stackoverflow.com/questions/18082/&lt;br /&gt;
   validate-numbers-in-javascript-isnumeric &lt;br /&gt;
&lt;br /&gt;
== Function goToMain() ==&lt;br /&gt;
The goToMain function transfers control to the&lt;br /&gt;
board18Main.php page.&lt;br /&gt;
&lt;br /&gt;
== Function delayGoToMain() ==&lt;br /&gt;
The delayGoToMain function waits 3 seconds before&lt;br /&gt;
calling the goToMain function.&lt;br /&gt;
&lt;br /&gt;
== Function killGoToMain() ==&lt;br /&gt;
The killGoToMain function stops any delayed&lt;br /&gt;
calling of the goToMain function.&lt;br /&gt;
&lt;br /&gt;
== Function makeNewGame(name, boxid, players, player) ==&lt;br /&gt;
Function makeNewGame creates a JSON object for the ajax&lt;br /&gt;
newgame call. &lt;br /&gt;
&lt;br /&gt;
== Function emailPlayerResult(response) ==&lt;br /&gt;
Function emailPlayerResult is the call back function for the&lt;br /&gt;
ajax calls to emailPlayerAdd.php. It only needs to check for&lt;br /&gt;
errors and it only needs to report the first error. Before  &lt;br /&gt;
reporting this error it will call the killGoToMain() function.&lt;br /&gt;
&lt;br /&gt;
Output from emailPlayerAdd.php is an echo return status:&lt;br /&gt;
  &amp;quot;success&amp;quot; - Email sent.&lt;br /&gt;
  &amp;quot;fail&amp;quot;    - Uexpected error - No email sent.&lt;br /&gt;
&lt;br /&gt;
== Function newgameOK(response) ==&lt;br /&gt;
Function newgameOK is the callback function for the ajax&lt;br /&gt;
newgame call. After sending emails to all players it calls&lt;br /&gt;
the delayGoToMain() function.&lt;br /&gt;
&lt;br /&gt;
== Function doNewGame() ==&lt;br /&gt;
Function donewgame is called by the on-click&lt;br /&gt;
method of the newgame submit button. It &lt;br /&gt;
checks the input for missing fields &lt;br /&gt;
and invalid values. It then &lt;br /&gt;
does an ajax call to createGame.php.&lt;/div&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
</feed>