changed show_msg page to redirect instead of showing a link
authornishanth
Tue, 02 Mar 2010 14:04:03 +0530
changeset 173 b8e7a4e86b35
parent 172 f21284458b8c
child 174 d034cd77cfa6
changed show_msg page to redirect instead of showing a link
templates/base.html
templates/show_msg.html
--- a/templates/base.html	Tue Mar 02 04:23:21 2010 +0530
+++ b/templates/base.html	Tue Mar 02 14:04:03 2010 +0530
@@ -1,6 +1,7 @@
 <html>
 <head>
     <title>{% block title %}PyTasks{% endblock %}</title>
+    {% block js_script %} {% endblock %}
 <style type="text/css">
         body {
         font-family: Verdana, Arial, Helvetica, sans-serif;
--- a/templates/show_msg.html	Tue Mar 02 04:23:21 2010 +0530
+++ b/templates/show_msg.html	Tue Mar 02 14:04:03 2010 +0530
@@ -1,11 +1,27 @@
 {% extends 'base.html' %}
+{% block js_script %}
+    <script language="JavaScript"> 
+    <!--
+     function getgoing()
+        {
+            window.location="{{redirect_url}}";
+        }
+     
+    setTimeout('getgoing()',5000);
+    //--> 
+    </script>
+{% endblock %}
 {% block content %}
+
     {% if message %}
         {{message}}<br />
     {% endif %}
+    You will be redirected to {{url_desc}} page in 5 seconds
+    <!--
     {% if redirect_url %}
         <a href="{{redirect_url}}">click here</a> to return to {{url_desc}}
     {% else %}
         <a href="/">click here</a> to return to Homepage
     {% endif %}
+    -->
 {% endblock %}