Refactored JS to use module pattern for proper encapsulation

Extensive jslinting to improve cross-browser support
Added some debugging statements
Fixed redirection to exitUrl when survey complete
Added www_deleteResponses
Added security restrictions on www_ methods
This commit is contained in:
Patrick Donelan 2008-11-25 06:33:55 +00:00
parent 3f25f2668f
commit 31dec565b7
4 changed files with 595 additions and 494 deletions

View file

@ -130,9 +130,9 @@ sub currentSection {
sub recordResponses {
my $self = shift;
my $responses = shift;
my $session = shift;
my $responses = shift;
my %mcTypes = (
'Agree/Disagree', 1, 'Certainty', 1, 'Concern', 1, 'Confidence', 1, 'Education', 1,
'Effectiveness', 1, 'Gender', 1, 'Ideology', 1, 'Importance', 1, 'Likelihood', 1,