Activity Stream
48,167 MEMBERS
6840 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member
    Website's:
    imazehost.com

    Default Auto refresh page code ?

    Hi !

    I want to have auro refresh every 1 minute on of my web page but i am looking with some way to we don't see when the page reload. I want to we see the changes in the page but without reload the full page.

    How can i do that ? Ajax or how ?

    Thanks
    travelmate Reviewed by travelmate on . Auto refresh page code ? Hi ! I want to have auro refresh every 1 minute on of my web page but i am looking with some way to we don't see when the page reload. I want to we see the changes in the page but without reload the full page. How can i do that ? Ajax or how ? Thanks Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    AnalBay.org Dziunie.eu
    Ajax or jQuery

  4.     
    #3
    Member
    Website's:
    imazehost.com
    more help ? I mean the code i need thanks

  5.     
    #4
    Member
    For HTML try:
    Code: 
    <META HTTP-EQUIV="REFRESH" CONTENT="5">
    5 = 5 seconds
    Link Building - Contact me for 20% discount
    Learn SEO - SEFlame.com

  6.     
    #5
    Member
    Website's:
    csoffensive.com fagbag.me
    Code: 
    javascript: timeout=prompt("Set timeout [s]"); current=location.href; if(timeout>0)   setTimeout('reload()',1000*timeout); else   location.replace(current); function reload(){   setTimeout('reload()',1000*timeout);   fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';   fr4me+='</frameset>';   with(document){write(fr4me);void(close())}; }

    save that as a bookmark in your bookmark bar and click it on the page
    you should get this message



  7.     
    #6
    Member
    I use this sexy code:

    Demo Link

    PHP Code: 
    <html>
    <
    head>
    <!-- For 
    ease i'm just using a JQuery version hosted by JQuery- you can download any version and link to it locally -->
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script>
     $(document).ready(function() {
          $("#responsecontainer").load("response.php");
       var refreshId = setInterval(function() {
          $("#responsecontainer").load('
    response.php?randval='+ Math.random());
       }, 9000);
       $.ajaxSetup({ cache: false });
    });
    </script>
    </head>
    <body>
     
    <div id="responsecontainer">
    </div>
    </body> 




    Source
    No Signature This Time

  8.     
    #7
    Member
    Here's a tutorial we've used in the past from: http://woKWWHava.wordpress.com/2010/02...-using-jquery/


    Code: 
    <html>
    	<head>
    		<Title>Just A Test</Title>
    		<script type="text/javascript" src="jquery.js"></script>
            <script type="text/javascript">
            var auto_refresh = setInterval(
            function ()
            {
            $('#load_me').load('showdata.jsp').fadeIn("slow");
            }, 10000); // autorefresh the content of the div after
                       //every 10000 milliseconds(10sec)
            </script>
       </head>
        <body>
        <div id="load_me"> <%@ include file="showdata.jsp" %></div>
        </body>
    </html>

  9.     
    #8
    Member
    Website's:
    imazehost.com
    I think this is it web3k that i am looking for, refresh page without the page to we see to load. Thanks

  10.     
    #9
    Member
    Website's:
    imazehost.com

    Default Question

    Hi !

    I try this code but on the first load of the page, we see this:

    <%@ include file="gps.htm" %>

    And id don't show me the map, after 120 seconds (this time i give) the map is there, but why the first load it's show me the code ?

    Thanks

    Quote Originally Posted by web3k View Post
    Here's a tutorial we've used in the past from: http://woKWWHava.wordpress.com/2010/02...-using-jquery/


    Code: 
    <html>
    	<head>
    		<Title>Just A Test</Title>
    		<script type="text/javascript" src="jquery.js"></script>
            <script type="text/javascript">
            var auto_refresh = setInterval(
            function ()
            {
            $('#load_me').load('showdata.jsp').fadeIn("slow");
            }, 10000); // autorefresh the content of the div after
                       //every 10000 milliseconds(10sec)
            </script>
       </head>
        <body>
        <div id="load_me"> <%@ include file="showdata.jsp" %></div>
        </body>
    </html>

  11.     
    #10
    Member
    Website's:
    imazehost.com
    Thanks all for your help ! Finally the right solution is the answer from "hq320" this code work and make everything i want.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Make new page ( auto ) HTML
    By r00ts in forum Webmaster Discussion
    Replies: 2
    Last Post: 14th Feb 2012, 03:23 PM
  2. Need Help Making This Shoutbox Auto Refresh
    By DJboutit in forum Web Application/Script Support
    Replies: 20
    Last Post: 6th Dec 2011, 03:59 AM
  3. what is code page full script ?
    By ctoveloz in forum Webmaster Discussion
    Replies: 3
    Last Post: 20th Jul 2011, 09:04 PM
  4. auto code mod for smf 1.1.x by me
    By MRDJ in forum Web Application/Script Support
    Replies: 4
    Last Post: 5th May 2011, 12:46 PM
  5. Reload content without page refresh
    By AmN in forum Web Development Area
    Replies: 7
    Last Post: 5th May 2011, 07:49 AM

Tags for this Thread

BE SOCIAL