B
B
Bastax132017-04-02 16:24:03
Python
Bastax13, 2017-04-02 16:24:03

How to make an "AJAX-like" site on Tornado?

In general, I need to update the information on the page without reloading.
I'm not very friendly with JavaScript, so I would like to get by with just Python with its Tornadoweb .
What are the implementation options? Or is it just AJAX?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Bastax13, 2017-04-03
@Bastax13

This article [Eng] (chat on websocket) helped me figure it out a bit .

A
Alexander, 2017-04-02
@fireSparrow

All the same, this will require the page to make requests from the client side. Those. it won't work without js.
In fact, the usual updating of a part of the page is not difficult at all, google the examples and slightly remake them for yourself.

A
Alexey Cheremisin, 2017-04-03
@leahch

I will support javascript at the expense, I will have to do it, write 10-15 lines. I only recommend not a tornado, but its analogue on twisted - cyclone.io Better
yet, abudte about a tornado, and a twisted, and a cyclone. And use aiohttp, this is a further development of all of the above, without many of these diseases, with templates for mako and ninja. This is a flask with the correct batteries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question