The program exports complete web pages you can use. This topic describes options for more advanced usage if you want to customize the behaviour of the applet on your website. The first topic shows how to modify the parameters passed to the applet in the HTML page, the second topic describes how to customize display using CSS and use JavaScript functions programmatically.

Solving applet parameters

The XML data is exported from Crossword Compiler as a .js file containing a JavaScript string called "CrosswordPuzzleData". The applet is called from JavaScript in your web page, with an #id containing the id of a DIV element that will actually contain the applet content (see Crossword Compiler's default output for an example). The main call is of the form
$(“#id”) .CrosswordCompiler(1,2,3);

URL Format

Each URL given for a puzzle can contain placeholders to be replaced with data from the puzzle. The following list describes them:

%SUBMIT%

Is replaced by progress considering “Friendly Submit” value

%MARKED%

Is replaced by progress plus mark for the answers

%PROGRESS%

Is replaced by progress of the puzzle

%TIME%

Is replaced by time in seconds

%CHARSET%

Is replaced by the Charset

%KEYWORD%

Is replaced by the keyword progress.

Customizing using JavaScript and CSS

In addition to changing options using the applet settings and parameters above, you can also access some functions of the puzzle applet at runtime using JavaScript, and customize certain aspects of the default display using CSS. Javascript functions are available from the CrossWord object of the DIV element containing the puzzle, e.g.
getElementById('CrosswordCompilerPuz').CrossWord