Page 1 of 1
Reloading only specific DIV, not whole webpage
Posted: Fri Sep 02, 2022 4:33 am
by Aris
Hello.
I would like the user, by pressing a button (or a hyperlink), to refresh / reload the content of a specific DIV (it contains an animated GIF) of the webpage.
I know I can refresh the entire webpage by entering:
Event: on click
Action: JavaScript
target: history.go(0);
However, I would prefer --instead of renewing the entire webpage-- that only the content of the specific DIV be renewed.
Thank you.
Re: Reloading only specific DIV, not whole webpage
Posted: Fri Sep 02, 2022 5:50 am
by Pablo
Re: Reloading only specific DIV, not whole webpage
Posted: Fri Sep 02, 2022 6:24 am
by Aris
Thank you, Pablo.
This suggestion seems too difficult for me. I'm afraid I don't understand what I'm reading.
I thought this is a simple function.
If there is some easy way to understand code (some script) it would be appreciated.
I admit that before I send this mesage I tried various solutions within WB. I tried the bookmarks and Events of the layout grid, but no luck.
Aris
Re: Reloading only specific DIV, not whole webpage
Posted: Fri Sep 02, 2022 6:40 am
by Pablo
Sorry, I do no think there is an easier way.
Note that this is not specific to WWB. This is standard HTML functionality.
Alternatively, you can use an inline frame and reload the contents.
Re: Reloading only specific DIV, not whole webpage
Posted: Fri Sep 02, 2022 7:15 am
by Aris
Pablo,
Don't think I'm criticizing WB. After all, I have been using it for so many years, and it has impressive results in my work.
I just get upset sometimes because I can't understand javascript or jQuery code.
I will also try the solution you suggest.
Thanks.
Re: Reloading only specific DIV, not whole webpage
Posted: Tue Sep 06, 2022 8:03 pm
by crispy68
@Aris,
I would like the user, by pressing a button (or a hyperlink), to refresh / reload the content of a specific DIV (it contains an animated GIF)
I offered a suggestion on this thread for a gif. Is this what you are looking for?
https://www.wysiwygwebbuilder.com/forum ... 81#p477081