WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: drrehak on February 21, 2022, 06:18:20 PM

Title: MB AjaxDashboard Unlimited updates
Post by: drrehak on February 21, 2022, 06:18:20 PM
What do I set to get unlimited updates for the Saratoga Ajax Dashboard and Gizmo (Meteobridge)?
I set maxupdates=0 in ajaxMBwx.js, but I still get about 10 update cycles over 90 seconds before it pauses and the message changes from "updated" to "paused".
Not sure where to look for more settings.
Thanks.


Title: Re: MB AjaxDashboard Unlimited updates
Post by: Jasiu on February 21, 2022, 07:42:21 PM
Link to website?

I believe that is the only thing that needs to be set.
Title: Re: MB AjaxDashboard Unlimited updates
Post by: saratogaWX on February 21, 2022, 07:59:15 PM
Your browser has likely cached the script.  Do a shift-reload of the page to get the changed script.  Jasiu is correct, that is the only setting needed.
Title: Re: MB AjaxDashboard Unlimited updates
Post by: drrehak on February 21, 2022, 08:32:40 PM
Thanks.  And sorry -- juggling too many things.
Worked as soon as I kicked Chrome into incognito mode.  Had to do some serious manual cache flushing to get it cleared in regular mode.
Title: Re: MB AjaxDashboard Unlimited updates
Post by: saratogaWX on February 22, 2022, 01:03:53 PM
Don't forget that the AJAX update only handles SOME of the variables that can be displayed on the pages in the site.

When you turn on 'unlimited updates', it's always good to add
Code: [Select]
<meta http-equiv="Refresh" content="300" /> to top.php to ensure that every 5 minutes, the browser will refresh the PHP page and get ALL the variables 'fresh'.   Otherwise, you can have a mix of fresh and stale variable displays which would be confusing to your site visitors (especially in the wxtrends.php page).
Title: Re: MB AjaxDashboard Unlimited updates
Post by: drrehak on February 22, 2022, 03:49:07 PM
Thank you.
Checking the headers was on my todo list, but I probably would have forgotten about setting refresh.