bobatomik Posted March 24, 2007 Share Posted March 24, 2007 there's my site: cdfrdp.qc.ca/2 its french, but u'll understand quite ez ^^ The fact is that my banner (which cycles throught 1 to 4 and loop) is reloaded with the page index.php handles these parameters: left, main, quote and the quote code is: <?php $quotenb = $_GET['quotenb']; $quote = 'quote/' . $quotenb . '.php'; If (file_exists($quote)) { include($quote); } else { $quotenb=1; include('quote/1.php');} ?> which is in a table... the reload itself is triggered by the included quote code in the <head>: <META HTTP-EQUIV="Refresh" CONTENT="10;URL=?<?php echo 'main=' . $_GET['main'] . '&' .'left=' . $_GET['left'] . '&' . 'quotenb=' . ++$quotenb ; ?>"> That way, it works perfectly but... I was wondering if there was a way to reload only this "included" instead of reloading all the page because it can be quite annoying to have the page go back to the top each 10 sec (even if I put it 20...) Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/ Share on other sites More sharing options...
DanDaBeginner Posted March 24, 2007 Share Posted March 24, 2007 frame the inlcuded page, in that way the page that will reload is the frame not entirely the page.. Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214130 Share on other sites More sharing options...
jitesh Posted March 24, 2007 Share Posted March 24, 2007 You can use frames or you can do it by AJAX. Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214132 Share on other sites More sharing options...
DanDaBeginner Posted March 24, 2007 Share Posted March 24, 2007 yeah, AJAX is the better one, set a time in javascript when the request will going to made.. Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214133 Share on other sites More sharing options...
bobatomik Posted March 24, 2007 Author Share Posted March 24, 2007 ok, if you look on the link, you see there's some background, I can't do frames on a page built like this Or else you mean the included page as a frame And for AJAX got no clue of what it is, ill search a lil Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214139 Share on other sites More sharing options...
DanDaBeginner Posted March 24, 2007 Share Posted March 24, 2007 ofcourse you can do frames.. you can do it by CSS so that the frame will not be visible, it will look like a normal page with no frame.. Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214143 Share on other sites More sharing options...
bobatomik Posted March 24, 2007 Author Share Posted March 24, 2007 how u do this? I use dreamweaver, is there an embedded fonction? Link to comment https://forums.phpfreaks.com/topic/44101-simple-banner/#findComment-214321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.