Reloading only specific DIV, not whole webpage

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Reloading only specific DIV, not whole webpage

Post 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.
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reloading only specific DIV, not whole webpage

Post by Pablo »

Maybe this will be useful?
https://api.jquery.com/load/
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Reloading only specific DIV, not whole webpage

Post 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
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reloading only specific DIV, not whole webpage

Post 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.
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Reloading only specific DIV, not whole webpage

Post 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.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Reloading only specific DIV, not whole webpage

Post 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
Post Reply