• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged meta

osTicket> Refresh ticket page every N seconds (1.6RC5)

Aug07
2012
Written by Scott Rowley

Just a simple one today to show you how to get the ticket page to automatically refresh itself every n seconds:

scp/tickets.php
Insert the following just after the requires at the top of the file:

define('MAIN_PAGE',1);
if(defined('MAIN_PAGE') && !isset($_GET['id']) && !isset($_GET['status']) && !isset($_GET['a'])) {
echo "<meta http-equiv='refresh' content='60'>";
}

*60 seconds is my recommendation, you can of course change this number as desired.

Posted in osTicket, Web Development - Tagged content, osTicket, page, refresh, reload, seconds, ticket

Web Dev> Meta-Redirect

Apr27
2011
Written by Scott Rowley

I keep forgetting this and I keep needing it — so I’m just finally going to make note of it here:

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

The zero in this case is the amount of time before a reload (so if you wanted to you could say something like “This page is no longer here — redirecting you in 3 seconds” and then change it to a 3. This code needs to be placed within the <head> tags.

Posted in Web Development - Tagged dev, development, redirect, web

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top