Forums

update only part of a page asynchronously with Flask

Hi all, I'd love to load parts of pages with only Flask. Is this now possible in some easy way (yay)? Or do I still have to use a JS framework (ugh)? Thanks for any ideas.

well. found this explanation. https://www.shanelynn.ie/asynchronous-updates-to-a-webpage-with-flask-and-socket-io/

edit: seems to require python 2.7 and jquery which could be a problem.

I think you'd need to use a JS framework to get that working well :-( That said, JS frameworks aren't as terrible as they used to be -- we're quite happy with React, and have heard good things about Angular 2.

Thanks a lot for the reply. I kind of flip flopped from "Flask only might work, yes!" to "oh ... I see ...". It's ok. Initial look at some JS doesn't seem too bad.