now the counter for questions start after the document has loaded completely
authornishanth
Fri, 23 Apr 2010 12:25:39 +0530
changeset 52 adab2d07981a
parent 51 80df28feac72
child 53 8cc852e205aa
now the counter for questions start after the document has loaded completely
templates/base.html
templates/display_question.html
--- a/templates/base.html	Thu Apr 22 12:31:29 2010 +0530
+++ b/templates/base.html	Fri Apr 23 12:25:39 2010 +0530
@@ -7,7 +7,7 @@
 {% block script %}
 {% endblock %}
 </head>
-<body>
+<body{% block onload %}{% endblock %}>
 {% block content %}
 {% endblock %}
 </body>
--- a/templates/display_question.html	Thu Apr 22 12:31:29 2010 +0530
+++ b/templates/display_question.html	Fri Apr 23 12:25:39 2010 +0530
@@ -15,9 +15,10 @@
         function dopost (){
             document.getElementById("queform").submit();
         }
-		setTimeout("dec_counter()", 1000);
+//		setTimeout("dec_counter()", 1000);
     </script>
 {% endblock %}
+{% block onload %} onload="dec_counter()" {% endblock %}
 {% block content %}
 {{question.description|linebreaksbr}}	<br />
 {% if question.code %}