forcing refresh to borwser

7 posts by 3 authors in: Forums > CMS Builder
Last Post: February 20, 2012   (RSS)

Re: [rez] forcing refresh to borwser

By gkornbluth - February 16, 2012

Hi Rez,

I’m not sure what you mean by, “If the screen / browser is offline, the refresh would make the page fail”, but here are a few articles I found. Hope they give you some ideas.

Jerry Kornbluth

http://stackoverflow.com/questions/4061111/make-field-data-change-in-real-time-without-refresh-how-on-a-website


http://www.phpsimplicity.com/tips.php?id=16


http://www.mousewhisperer.co.uk/ajax_page.html

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] forcing refresh to borwser

By rez - February 16, 2012 - edited: February 16, 2012

thanks for the links jerry. i suppose I can work jquery into this. I see some options for that when searching for more info like you found.

Still, I will need something in my function that is set with an interval like below.

On first visit, load everything in cache and save the date and time of the last update in cmsb. in intervals:

1. check to see if server can be reached (internet connection). if not, do nothing. i dont want any errors or the screen going blank because new content check cant be reached.

2. check the date and time to the second of the last save in cmsb? if its the same as saved on load, do nothing because there isnt any new content. That way all these large photos arent loading again and eating bandwidth every interval.

3. if there is a newer save, load that content and replace the current.

Something like that. I'd even get a custom plug-in if thats the way to go.

Re: [rez] forcing refresh to borwser

By gkornbluth - February 16, 2012

OK I see where you're going now,

there's probably an easier approach, but if you could save the updated date in a variable on your viewer when you first load the show, and then use the ideas in the previous post to only perform an update if the updatedDate on the record is later than the previous updated date, that might be an approach.

There's a bunch of information on comparing dates in another post I just answered http://www.interactivetools.com/forum/gforum.cgi?post=92253 and in my CMSB Cookbook at http://www.thecmsbcookbook.com

If you get this working, I hope you'll share the solution here on the forum.

Good luck,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [rez] forcing refresh to borwser

By gkornbluth - February 20, 2012

Hi Rez,

Did you ever get this sorted out?

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [rez] forcing refresh to borwser

By Jason - February 20, 2012

Hi,

There would be a couple of different options for doing this. We would definitely need to use jQuery to attempt to connect to the server to look for differences and then update parts of the page if a difference was detected. If you are interested in this, please send in an email to consulting@interactivetools.com with a list of requirements and we can go over some options.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [gkornbluth] forcing refresh to borwser

By rez - February 20, 2012 - edited: February 20, 2012

I didn't jerry. looking over some things i searched, i think i get it but im sidetracked right now with some other projects. not sure if ill dive back in or go the custom route right now. if i get back to it, i'm sure ill be here with questions.

thank you both.