On Thursday, 21 January 2021 13:27:01 GMT Stephen Wolff wrote:
> This does something like your pseudo code:
> 
>   - https://stackoverflow.com/questions/19794695/flask-python-buttons

It does doesn't it.  :-)  Now I have a new starting point.  Thanks for that.

You guys obviously have a better degree in googling than I do, because I 
searched for 'Flask Python Buttons' and never found that.

> If you want to make it happen without a page refresh, you could use
> ‘Ajax’ - one simple way is to use jquery to submit the form
> (https://api.jquery.com/jquery.ajax/). The Flask end would stay the same
> (or similar), so I’d get a non-ajax version working first, then look
> into Ajax if that’s what you need.

Thanks for that too, although I have stumbled across a tutorial somewhere that 
uses flask-moment (I think) to keep the page refreshed.

Anyway.  That's the next problem :-)

-- 



                Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-02-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to