fubralimited/WP-Survey-And-Quiz-Tool — pull request #237 by Olliea95 (2012-11-01 12:32:24+00:00)
Title: Timer script error

I added a timer to a quiz. The generated html javascript on my post page causes an error.

The following is html from the post page.

1: <div class="timer" style="float: right;"></div>
2: <script type="text/javascript">
3:	jQuery(document).ready( function(){
4:	var timeSecs = <?= $timerVal; ?>;
5: ...

Shouldn`t line 4 be:
$timerVal; ?> instead of $timerVal; ?>;
Because now the php engine spits out html instead of the contents of $timerVal

In google chrome the following exception is generated because of the javascript error:
Uncaught SyntaxError: Unexpected token <
which is beneath line 4.