Difference between revisions of "Board18BoxLoad"

From BOARD18 Project WIKI
Jump to navigation Jump to search
(initial contents for this page)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ReleaseNoticeX|2.2|Design_Document_board18BoxLoad_Page}}  
{{ReleaseNoticeX|2.2|Design_Document_board18BoxLoad_Page}}  
The board18BoxLoad script contains some of the js functions
The board18BoxLoad script contains all of the js functions
for the board18BoxLoad page.
for the board18BoxLoad page.


Line 12: Line 12:
   "fail"    - Uexpected error - This email not sent.
   "fail"    - Uexpected error - This email not sent.


== Function doMail(report) ==
== Function doMail(report, login) ==
Function doMail sends an Email report to the author after the
Function doMail sends an Email report to the logged in author after the
ajax loadBox.php call returns a success or an email status.
ajax loadBox.php call returns a success or an email status.



Latest revision as of 17:03, 13 July 2016

This page has been updated to comply with Release 2.2.x of BOARD18. Go Back

The board18BoxLoad script contains all of the js functions for the board18BoxLoad page.

Function emailPlayerResult(response)

Function emailPlayerResult is the call back function for an ajax call to emailPlayer.php. It only needs to check for errors.

Output from emailPlayer.php is an echo return status:

 "success" - Email sent.
 "fail"    - Uexpected error - This email not sent.

Function doMail(report, login)

Function doMail sends an Email report to the logged in author after the ajax loadBox.php call returns a success or an email status.

Function zipBoxOk(resp)

Function zipBoxOk processes the return from the loadBox.php call.

resp.stat will be "success||"fail"||"nofile"||"toobig"||"email"

On a status of success or email it will send an email to the author.