Realtime web page data


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    95

    Default Realtime web page data

    Im currently using the wiznet chip and I am able to generate a web page. But I would like to have live data without refreshing the page. I know you can use ajax, but im not much of a web coder and the examples ive seen are using a pc server, so you dont realy get to see all the code. So if anyone can point me in the right direction it would be appreciated.

    Thanks Sphere.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Realtime web page data

    Code:
    <?php
    $page = $_SERVER['PHP_SELF'];
    $sec = "60";
    header("Refresh: $sec; url=$page");
    ?>
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2005
    Posts
    95

    Default Re: Realtime web page data

    Not having much luck with the code but thanks for sharing.

    Sphere.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Realtime web page data

    I miss read your question. The code I gave was for a server with PHP.
    The code below will cause the browser to re-load the page every 30 seconds, if the content has changed on the WIZ server it will be displayed.
    Put this in the header of the web page.
    Code:
    <meta http-equiv="refresh" content="30">
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2005
    Posts
    95

    Default Re: Realtime web page data

    Thanks for the code. Works like a champ.

    Sphere

    Ive added this to it to goto a specific url- <meta http-equiv="refresh" content="60;url=http://YOUR-SITE-HERE.com/">
    Last edited by Sphere; - 21st February 2013 at 21:55.

Similar Threads

  1. Please help with DS1307 realtime clock .
    By hatuan291 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th July 2011, 23:48
  2. Darrel's page is out
    By MarioC in forum General
    Replies: 1
    Last Post: - 14th August 2008, 08:34
  3. Realtime video
    By RUBiksCUbe in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 28th November 2005, 08:46
  4. Help with realtime clock and timer
    By geselaw in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 8th October 2005, 10:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts