A2J5 Server Package 5.0.1.17

Newer version here:

Beta viewer 5.0.1.17 (21 May 2014)

Here are the files for preliminary A2J Viewer 5. This is not the final version but there's enough capability to check interview/answer file loading/saving.

It is structured similarly to A2J4. There's a 'host' HTML file (public/viewer/A2J_ViewerHoster.html) which will contain the viewer as an embedded IFRAME. The parameters to specify data access and reporting are declared there and passed on to the viewer.

To demo them, I've just set some simple static/PHP paths that reference a tiny sample interview. The interview and answer file are in /tests.
Although I'm using PHP for the saving bit, loading A2J_ViewerHoster.html in localhost (assuming all files in 'public' are also available from localhost) should work. It will start the interview and initial answer file since those are specified as static file parameters.

I've also setup a live version at:
http://authordev.a2jauthor.org/app/demo/5.0.1.17/viewer/A2J_ViewerHoster.html
The live version just loads the sample interview and answer file which just has a client name, in Chinese. At the end of the interview it just echoes back the answer file.

In the host file you'll also see a parameter to handle automatic saving. This isn't active yet. When autosave is implemented leaving that parameter blank will just disable it.

I'm still looking at error reporting. Currently it's just cloned from A2J4. Since the reporting was added to resolve Flash issues it may no longer be needed.

Both the FAIL and SUCCESS exits are coded to replace the parent frame, the A2J_ViewerHoster. This is to prevent nesting issues. For your own embed project it would mean an IFRAME in an IFRAME.

    A2J5 Server Package 5.0.1.17.zip