Results 1 to 10 of 10
-
14th Jan 2012, 06:53 PM #1OPMemberWebsite's:
imazehost.comAuto 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 ?
Thankstravelmate 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
-
14th Jan 2012, 06:54 PM #2MemberWebsite's:
AnalBay.org Dziunie.euAjax or jQuery
-
14th Jan 2012, 06:59 PM #3OPMemberWebsite's:
imazehost.commore help ? I mean the code i need thanks
-
14th Jan 2012, 07:06 PM #4Member
For HTML try:
Code:<META HTTP-EQUIV="REFRESH" CONTENT="5">
-
14th Jan 2012, 09:34 PM #5MemberWebsite's:
csoffensive.com fagbag.meCode: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
-
14th Jan 2012, 09:41 PM #6Member
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>
SourceNo Signature This Time
-
15th Jan 2012, 12:59 AM #7Member
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>
-
15th Jan 2012, 08:00 AM #8OPMemberWebsite's:
imazehost.comI think this is it web3k that i am looking for, refresh page without the page to we see to load. Thanks
-
15th Jan 2012, 09:07 AM #9OPMemberWebsite's:
imazehost.comQuestion
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
-
15th Jan 2012, 10:54 AM #10OPMemberWebsite's:
imazehost.comThanks all for your help ! Finally the right solution is the answer from "hq320" this code work and make everything i want.
Thanks
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Make new page ( auto ) HTML
By r00ts in forum Webmaster DiscussionReplies: 2Last Post: 14th Feb 2012, 03:23 PM -
Need Help Making This Shoutbox Auto Refresh
By DJboutit in forum Web Application/Script SupportReplies: 20Last Post: 6th Dec 2011, 03:59 AM -
what is code page full script ?
By ctoveloz in forum Webmaster DiscussionReplies: 3Last Post: 20th Jul 2011, 09:04 PM -
auto code mod for smf 1.1.x by me
By MRDJ in forum Web Application/Script SupportReplies: 4Last Post: 5th May 2011, 12:46 PM -
Reload content without page refresh
By AmN in forum Web Development AreaReplies: 7Last Post: 5th May 2011, 07:49 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...