util/ Recorder.js

This library is used to track client movements and form fill ins.  It can be used to spy on site visitors or as a QA / Unit testing tool - its your conscience.  To get the tool bar and cursor for the neat-o UI add the following to the page.

//add the cursor icon and the contorl for the recorder
neuro_addLoadListener(replay_addCursor);
neuro_addLoadListener(replay_addSimpleControl);

You’ll also need to have a file called cur.gif in the root of the site for the pointer graphic

Copyright

2004 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Related

ui/Mouse.js ui/EventManager.js util/Log.js

Summary
This library is used to track client movements and form fill ins.
library version
this is where the replay commands are stored.
This method needs to be set to run on page load.
Make a simple tool bar to control the record and play back
used to record clicks.
record key presses
record mouse movements
gets a time stamp
This is a system generated callback.
This is a system generated callback.
helper function called from replay_ElementFilled
Call this function when you wish to begin recording client input
Call this function when you wish to stop recording client input
Replay the items displaying the time stamp
Clear the replay items array.
Dump all the currently saved actions to the log

Variables

RECORDER_VERSION

var RECORDER_VERSION

library version

replay_items

var replay_items

this is where the replay commands are stored.

Functions

replay_addCursor

function replay_addCursor(e)

This method needs to be set to run on page load.  It creates a div and an image reference to an cursor image for playback display

Parameters

ethe event

replay_addSimpleControl

function replay_addSimpleControl()

Make a simple tool bar to control the record and play back

click_happened

click_happened = function(event)

used to record clicks.  Added to the add click listeners

key_happened

key_happened = function(event)

record key presses

mouse_moved

mouse_moved = function(event)

record mouse movements

replay_TimeStamp

function replay_TimeStamp()

gets a time stamp

replay_MouseMove

function replay_MouseMove(x,
y)

This is a system generated callback.  When the mouse is moved one of these gets put into the command array.  You should not need to call it directly

Parameters

xthe x position to move to
ythe y position to move to

replay_ElementFilled

function replay_ElementFilled(control,
value)

This is a system generated callback.  When the client clicks a control (ticks a check box or fills in a text box).  You should not need to call it directly

Parameters

controlthe control that this happened on
valuethe value of the control

replay_setSingleElement

function replay_setSingleElement(control,
value)

helper function called from replay_ElementFilled

Parameters

control value

replay_start

function replay_start()

Call this function when you wish to begin recording client input

replay_stop

function replay_stop()

Call this function when you wish to stop recording client input

replay_item_with_stamp

function replay_item_with_stamp(cmd,
stamp)

Replay the items displaying the time stamp

Parameters

cmdthe command to run
stampthe time stamp to display

replay_clear

function replay_clear()

Clear the replay items array.  In other words, remove all the currently recorded actions

replay_dumpReplayItems

function replay_dumpReplayItems()

Dump all the currently saved actions to the log

var RECORDER_VERSION
library version
var replay_items
this is where the replay commands are stored.
function replay_addCursor(e)
This method needs to be set to run on page load.
function replay_addSimpleControl()
Make a simple tool bar to control the record and play back
click_happened = function(event)
used to record clicks.
key_happened = function(event)
record key presses
mouse_moved = function(event)
record mouse movements
function replay_TimeStamp()
gets a time stamp
function replay_MouseMove(x,
y)
This is a system generated callback.
function replay_ElementFilled(control,
value)
This is a system generated callback.
function replay_setSingleElement(control,
value)
helper function called from replay_ElementFilled
function replay_start()
Call this function when you wish to begin recording client input
function replay_stop()
Call this function when you wish to stop recording client input
function replay_item_with_stamp(cmd,
stamp)
Replay the items displaying the time stamp
function replay_clear()
Clear the replay items array.
function replay_dumpReplayItems()
Dump all the currently saved actions to the log