From aece55c786aa47ec15b93e14c4fb0bc96b932d58 Mon Sep 17 00:00:00 2001 From: Sasha MOREL Date: Sun, 5 Sep 2021 19:04:26 +0200 Subject: [PATCH] Autorefresh for people *I know* I can use AJAX, but I don't have the skills yet, I will do the job waiting for AJAX refresh. Pages are light, that's not a big deal. --- sms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sms.py b/sms.py index b50ca4a..7281c5b 100755 --- a/sms.py +++ b/sms.py @@ -300,6 +300,7 @@ class Web_Service (BaseHTTPRequestHandler): elif self.path == '/list': self.send_response (200) self.send_header ('Content-type', 'text/html; charset=UTF-8') + self.send_header ('Refresh', '20') self.end_headers () ls = sms.thread_list () lst = [] @@ -386,7 +387,7 @@ class Web_Service (BaseHTTPRequestHandler): html_form_submit ('Send'), '/send' ) + - html_iframe ('/messages?thread=' + str (id), , height = '100%', width = '100%', name = 'messages') + html_iframe ('/messages?thread=' + str (id), height = '80%', width = '100%', name = 'messages') + html_footer () ).encode ('utf-8')) elif self.path [0:17] == '/messages?thread=':