Skip Navigation

[Resolved] Update view without refresh

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 3 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2082365

Hello,
Im about to build a new custom post type that i will call "Leader board".
To this CPT i will add some fields, ofcourse , and one of them is "points" 🙂

Now in back-end i will add posts to the cpt and will have around 50 posts.
In the front-end i like to have a view that shows this "Leader board" as a simple table.
Thats no problem to do. And the leader board (front end) will be shown on a big public screen. (digital signage)

Now to my question:
I like the view to be updated without reload.
Like with Ajax reload that checks if any new/edited data has been posted to the CPT.
With manual reload this is no problem to do, but we cant click reload on the big screen.
AND I had hoped to avoid meta-refresh every 30 sec because the big screen will flash every 30 sec and that is not so nice...

is this doable with toolset?

#2083533

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Patrik,

Thank you for getting in touch.

Unfortunately no this isn't possible. You won't be able to ajax refresh the view. You will need to write custom code to refresh the page/view without any interactions.

This is not something that is doable with Toolset.

Thanks,
Shane

#2083633

Oh! thats was very unfortunately for me 🙂
I hade so much hope to do this in toolset, because toolset have saved me alot of times where no other plugin can deliver.

So what you are saying is that with custom code there might be a chance (big/small?) to make it work ?
And custom code you taking about ajax/jquery ?
Why im asking is if i need to find any contractor that can make it happen because i cant code...

thanks

#2083749

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Patrik,

So what you are saying is that with custom code there might be a chance (big/small?) to make it work ?

Yes there is a possibility to make it work, if they are able to write the jquery to refresh only a portion of the page, this might help to reload the view.

Also you can try approaching one of the registered contractors from our site. They usually have extensive knowledge about Toolset so that can be a bonus as well.
https://toolset.com/contractors/

Please let me know if this helps.
Thanks,
Shane

#2086695

Hey!
Okej i have checked this out (Google it)
🙂
Im not a js-coder so its quite hard to know what i can do with this, but if i use this guide and change the #main to the viewid and instead of "property-detailed.php" url i have the url to a page that contains the view?
Ex domian.com/lederboardview
Or does it have to be an php?

The guide:
$(document).ready(function() { /// Wait till page is loaded
setInterval(timingLoad, 3000);
function timingLoad() {
$('#main').load('property-detailed.php #main', function() {
/// can add another function here
});
}
}); //// End of Wait till page is loaded

#2088523

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Patrik,

I highly recommend getting an experience developer to implement this for you as there can be more to this.

Given that this is a dynamic website you won't be able to simply reload a php file as wordpress uses more templating and dynamic content loading on the templates.

Perhaps you can even try using this plugin below.
https://wordpress.org/plugins/force-refresh/

Thanks,
Shane