🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: rocksolid.shared.helpdesk
13 messages
13 total messages Started by Anonymous@news.n Fri, 04 Jun 2021 14:54
Auto Refresh
#223
Author: Anonymous@news.n
Date: Fri, 04 Jun 2021 14:54
2 lines
473 bytes
I could use some help. I have a site where there's an input form that users will have to type and post in. I want to use an auto refresh, but when I try using a regular meta tag, everything that the users typed out in this form is gone if they haven't sent it. I want to do an auto refresh without having this form affected. By the way, I also want to do this only through HTML and PHP, no JavaScript. Any help and advice would be appreciated.
--
Posted on Rocksolid Light
Re: Auto Refresh
#224
Author: Anonymous@news.n
Date: Fri, 04 Jun 2021 15:12
10 lines
1196 bytes
Anonymous wrote:

> I could use some help. I have a site where there's an input form that users will have to type and post in. I want to use an auto refresh, but when I try using a regular meta tag, everything that the users typed out in this form is gone if they haven't sent it. I want to do an auto refresh without having this form affected. By the way, I also want to do this only through HTML and PHP, no JavaScript. Any help and advice would be appreciated.

When you refresh, it just loads the page again. Whatever they typed will always be gone, it's like they clicked on the form again. An obvious question is why do you want to refresh a page with a form? Is this necessary? Why? Are you displaying constantly changing info that they need to have access to so they can fill it out?

My first comment would be to not refresh a form. It's not something normally done for obvious reasons. But if you really need to display constantly changing information, maybe you need to display that in an iframe that refreshes, and does not refresh the entire page.

If you can explain why you need to do this, maybe we can provide more help that suits your specific requirement.
--
Posted on novaBBS
Re: Auto Refresh
#225
Author: Anonymous@news.n
Date: Fri, 04 Jun 2021 15:55
2 lines
265 bytes
There is constantly changing information that the user needs, and it will be displayed on the same page. The information also needs to be displayed on the same page and can't be displayed on another page. I'll definitely try your idea.
--
Posted on Rocksolid Light
Re: Auto Refresh
#226
Author: Anonymous@news.n
Date: Fri, 04 Jun 2021 18:06
3 lines
187 bytes
could you embed the updated information in animated images ?
without js, i think iframes are the only way to achieve your goal, but iframes are best avoided.
--
Posted on Rocksolid Light
Re: Auto Refresh
#227
Author: Anonymous@news.n
Date: Sat, 05 Jun 2021 01:35
10 lines
384 bytes
Anonymous wrote:

> could you embed the updated information in animated images ?

That sounds interesting. Can an animated image be updated as it's, uh, animating?

> without js, i think iframes are the only way to achieve your goal, but iframes are best avoided.

Yes, iframes should really be the last resort for any site, but in this case it may work.
--
Posted on Rocksolid Light
Re: Auto Refresh
#228
Author: retro.guy@rockso
Date: Sat, 05 Jun 2021 05:59
12 lines
822 bytes
Anonymous wrote:

> There is constantly changing information that the user needs, and it will be displayed on the same page. The information also needs to be displayed on the same page and can't be displayed on another page. I'll definitely try your idea.

Is this a live chat? Not sure if you're the same person asking about that recently.

If so, maybe have the chat refresh, but to post have a "Post Message" button that reloads the page once to a static page with latest info, then when they hit "Submit" it reloads to the reloading page again.

Your "New Message" button would sned a hidden property to reload the page once, and if the page receives that hidden property, it doesn't refresh. Then when they hit "Submit", don't send the property and you're back to a live page.

Retro Guy
--
Posted on Rocksolid Light
Re: Auto Refresh
#229
Author: Anonymous@news.n
Date: Sat, 05 Jun 2021 11:01
4 lines
834 bytes
>That sounds interesting. Can an animated image be updated as it's, uh, animating?
Not really, I think. I overlooked your statement that the info is _constantly_ changing, and thought it might be enough to generate a gif, just displaying some stuff.
But then you could also convert the updated information constantly into a movie which is streamed as part of the page. This kind of streaming you can do in HTML5, methinks, without any nasty user side scripting. In case of a chat this would mean that texts send with the user form would have to converted into some movie format, and this movie would be embedded in the page. If no changes come, the same picture would be send over and over (kind of wasteful in terms of bandwidth :-)). Maybe a bit of a labored approach, but it should fulfill your needs.
--
Posted on Rocksolid Light
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads