<?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=Board18Misc2</id>
	<title>Board18Misc2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=Board18Misc2"/>
	<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=Board18Misc2&amp;action=history"/>
	<updated>2026-06-21T08:11:12Z</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=Board18Misc2&amp;diff=2989&amp;oldid=prev</id>
		<title>Rich: Initial page contents</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=Board18Misc2&amp;diff=2989&amp;oldid=prev"/>
		<updated>2020-08-27T17:40:24Z</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_board18Misc_Page}}&lt;br /&gt;
board18Misc2.js contains all of the code to actually process&lt;br /&gt;
the buttons on game session edit form and to inform players &lt;br /&gt;
of any change in games which they are playing.&lt;br /&gt;
&lt;br /&gt;
== Function changePlayer(login, game) ==&lt;br /&gt;
Function changePlayer is called by the on-&lt;br /&gt;
click method of the submit button on the&lt;br /&gt;
game session edit form. &lt;br /&gt;
It sets BD18.mode based on missing fields&lt;br /&gt;
and does an ajax call to changePlayers.php. &lt;br /&gt;
&lt;br /&gt;
== Function changePlayerResult(response) ==&lt;br /&gt;
Function changePlayerResult is the call back function for the&lt;br /&gt;
ajax changePlayers.php call. &lt;br /&gt;
&lt;br /&gt;
Output from changePlayers.php is an echo return status:&lt;br /&gt;
  &amp;quot;success&amp;quot; - All changes have been made.&lt;br /&gt;
  &amp;quot;fail&amp;quot;    - Uexpected error - No changes have been made.&lt;br /&gt;
  &amp;quot;dupadd&amp;quot;  - Add ID is duplicate - No changes have been made.&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 and emailPlayerRem.php. &lt;br /&gt;
&lt;br /&gt;
Output from either program 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 linkReturn(response) ==&lt;br /&gt;
Function linkReturn is the call back function for the&lt;br /&gt;
ajax linkGet.php call. It creates and displays the&lt;br /&gt;
game_link update division for the current game session.&lt;br /&gt;
The response from linkGet.php is the following stringified &lt;br /&gt;
JSON data structure. &lt;br /&gt;
&lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;stat&amp;quot;:&amp;quot;success||none||fail&amp;quot;,&lt;br /&gt;
    &amp;quot;links&amp;quot;:&lt;br /&gt;
    [&lt;br /&gt;
      {&lt;br /&gt;
        &amp;quot;link_name&amp;quot;:&amp;quot;aaaaaa&amp;quot;,&lt;br /&gt;
        &amp;quot;link_url&amp;quot;:&amp;quot;bbbbbbb&amp;quot;,&lt;br /&gt;
        &amp;quot;act_date&amp;quot;:&amp;quot;mm/dd/yyyy&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      . . . . more links . . . . . &lt;br /&gt;
    ]&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
== Function addLink() ==&lt;br /&gt;
The addLink function is called by the on-click method of the&lt;br /&gt;
Add button in the link form. It checks the input parameters &lt;br /&gt;
for validity and then performs an AJAX call to the &lt;br /&gt;
linkAdd.php function.&lt;br /&gt;
&lt;br /&gt;
== Function addReturn(response) ==&lt;br /&gt;
The addReturn function is the call back function for the&lt;br /&gt;
ajax linkAdd.php call. It processes the response. &lt;br /&gt;
On success, it calls the linkGet function. &lt;br /&gt;
The response is the echo return status: &lt;br /&gt;
  &amp;quot;success&amp;quot;, &amp;quot;fail&amp;quot; or &amp;quot;duplicate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Function deleteCheck(linkname) ==&lt;br /&gt;
The deleteCheck function is called by the on-click method  &lt;br /&gt;
of the Link Name. It queries to make sure that the delete &lt;br /&gt;
request is real.&lt;br /&gt;
&lt;br /&gt;
== Function deleteLink(gameid,linkname) ==&lt;br /&gt;
The deleteLink function is called by the on-click method  &lt;br /&gt;
of the &amp;quot;Yes&amp;quot; button on the delpop form. It  performs an &lt;br /&gt;
AJAX call to the linkDel.php function.&lt;br /&gt;
&lt;br /&gt;
== Function delReturn(response) ==&lt;br /&gt;
The delReturn function is the call back function for the&lt;br /&gt;
ajax linkDel.php call. It processes the response. &lt;br /&gt;
On success, it calls the linkGet function.  &lt;br /&gt;
The response is the echo return status: &lt;br /&gt;
  &amp;quot;success&amp;quot;, &amp;quot;fail&amp;quot; or &amp;quot;missing&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
</feed>