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. 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. 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. 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. 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? [email protected] 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. 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 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? 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
Archived
This topic is now archived and is closed to further replies.