matvespa Posted January 30, 2010 Share Posted January 30, 2010 Hi. Im retrieving data from database to display advertisement at the side of my page. Im displaying my advertisement on random and hope to refresh that section only. Im not interested in <meta http-equiv="refresh" content="25" > as it refreshes the entire page. Does anyone knows how i could achieve to this feature, without refreshing the entire page, but only that advertisement section. Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/ Share on other sites More sharing options...
premiso Posted January 30, 2010 Share Posted January 30, 2010 You can put the ad in an i-frame and refresh the i-frame or use AJAX and put the ad in a DIV and re-generate it using that. If the AJAX way, look into jQuery. Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004119 Share on other sites More sharing options...
matvespa Posted January 30, 2010 Author Share Posted January 30, 2010 Do u have any tutorial on that, I've search google and cant seem to understand any. Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004124 Share on other sites More sharing options...
satya61229 Posted January 30, 2010 Share Posted January 30, 2010 See here: http://www.satya-weblog.com/2007/04/dynamically-populate-select-list-by.html when country value changes in select option then their city also changes dynamically. Similarly you need to do for yourself. Above, it is user who do action (select something), in your case you need to do something using javascript. setInterval() js function should be good for you. http://www.howtocreate.co.uk/tutorials/javascript/timers Do u have any tutorial on that, I've search google and cant seem to understand any. Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004135 Share on other sites More sharing options...
matvespa Posted January 30, 2010 Author Share Posted January 30, 2010 Hi thanks for the code. I hope you could guide me along with this. Add me on skype/msn? matvespa@hotmail.com Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004157 Share on other sites More sharing options...
satya61229 Posted January 30, 2010 Share Posted January 30, 2010 Posting any question here will be good. as you will get reply from any one who is available. Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004163 Share on other sites More sharing options...
hamza Posted January 30, 2010 Share Posted January 30, 2010 You can put the ad in an i-frame and refresh the i-frame or use AJAX and put the ad in a DIV and re-generate it using that. If the AJAX way, look into jQuery. i-frames are not very friend when we talk about browsers. so i suggest use ajax Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004165 Share on other sites More sharing options...
matvespa Posted January 30, 2010 Author Share Posted January 30, 2010 Any direct tutorial on that? Quote Link to comment https://forums.phpfreaks.com/topic/190327-refresh-part-of-a-page/#findComment-1004182 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.