html help sought
Posted: Tue May 04, 2021 7:42 pm
I have written much code in my time but can't be an expert at everything. I have now foundered on what is probably a simple matter for some.
I have some buttons on an Annex web page that change things. When they change, htmleventbutton$ tells me what has been pressed. I use that to modify some text and then want the web page to update some text to reflect the new reality. But repainting the screen doesn't do it, it still shows the old text even though the actual text is different, presumably because it is taking an earlier version from the browser cache. I have to do a refresh (F5) to get the updated screen, which does work.
How do I (in a very simple way) force the update to actually happen? i.e. make the f5 happen from within the paint code.
I'm sure (hope) this is very simple but all I can find are massively complex ways that some say work and some say don't.
Stuart
I have some buttons on an Annex web page that change things. When they change, htmleventbutton$ tells me what has been pressed. I use that to modify some text and then want the web page to update some text to reflect the new reality. But repainting the screen doesn't do it, it still shows the old text even though the actual text is different, presumably because it is taking an earlier version from the browser cache. I have to do a refresh (F5) to get the updated screen, which does work.
How do I (in a very simple way) force the update to actually happen? i.e. make the f5 happen from within the paint code.
I'm sure (hope) this is very simple but all I can find are massively complex ways that some say work and some say don't.
Stuart