The MU forums have moved to WordPress.org

How can I force IE to refresh after entering a post? (7 posts)

  1. inthedark2
    Member
    Posted 16 years ago #

    Hi,
    I'm not sure if this is possible but I would like to force IE to refresh after a post has been entered.

    I have created a messaging system, using a theme I created that fills the whole screen (1024 x 768).
    I then wish to use this around our campus to display on 28inch+ monitors (http://www.greshams.biz/blog/test/).

    Our receptionist will enter new posts (messages) but the display, via IE, will not be displaying the latest post as it will need refreshing (F5).
    I could add:
    <META HTTP-EQUIV="REFRESH" CONTENT="15 URL=http://www.greshams.biz/blog/test">
    in the header of my theme but I would have to work out how many messages are in use and adjust the timing to suit.
    I wondered if there was an easier way to do this?

  2. Ovidiu
    Member
    Posted 16 years ago #

    what do you mean by:

    how many messages are in use ?

  3. SteveAtty
    Member
    Posted 16 years ago #

    You don't need to to anything apart from put the meta tag in the header but might want to look at how often you post and how often you refresh. There is no point refreshing every 30 seconds if you only post a new post every 2 hours.

  4. inthedark2
    Member
    Posted 16 years ago #

    Hi Ovidiu,
    Sorry my explanation is not not very clear.
    I'm using J Post Slider plugin to scroll my posts (messages) and only one post is viewable at anyone time.
    This message is then scrolled away and another scrolls into view.

    Posts (messages) will be added and removed constantly by our receptionist.
    As a new message is needed it will be added, when an old message is no longer required it will be deleted, there is no requirement to keep old messages.

    I envisage the 'display' will only contain about 10 or so messages at any one time which will be scrolling one after the other, the time of each scroll is set by J Post Slider, currently 12seconds display then scrolled away.

    It would be ideal if a WordPress, or the theme I'm using, could 'automagically' ask IE to refresh when a new message (post) is added or removed, this way the display would always be up to date.

    I have added meta http-equiv="refresh" content="120" to the header.php but, if I use 7 messages with each one scrolling away after 12seconds this will refresh IE in the middle of displaying a message. However if there are 10 messages it will refresh after the last message is shown and looks OK.
    I have no idea how many messages will be added at any one time and I would rather not keep altering meta http-equiv="refresh" content="120" to suit.

    I would be very grateful for any help. very

  5. inthedark2
    Member
    Posted 16 years ago #

    Hi SteveAtty,
    Yes, this is what I wish to change.

    If 10 posts and each post is viewable for 12seconds then meta refresh for 120seconds is OK. This is fine until some posts are removed and the meta refresh will then kick in half way through a post display.

    Is there a way to tell wordpress to refresh IE when a post is added or removed?

  6. Ovidiu
    Member
    Posted 16 years ago #

    you might want to read up on different headers, like the last-modified or the expires headers, here is a link to get started: http://www.askapache.com/

  7. SteveAtty
    Member
    Posted 16 years ago #

    The problem is of course that a browser unless its refreshing would not know that the site has updated so there is no easy way of "telling" IE that you've added a post. I suppose that you could do something using Ajax/

About this Topic

  • Started 16 years ago by inthedark2
  • Latest reply from SteveAtty