...

View Full Version : how to reload a website without reloading of main content ?



freeinfo.in
03-20-2012, 04:03 AM
how can refresh my website without interrupting of main content. suppose user reading a post in my website .
during that i want to refresh my ads in my website without interrupting of main content.
ex: go this link. http://www.novamov.com/video/xl58zuy4sd1a9
in this page site will automatically refreshes the ads
every 1 minute without interrupting of main content.

how can i do that in same manner. please help me.

Old Pedant
03-20-2012, 08:06 AM
AJAX.

Pure and simple.

Start here:

http://www.w3schools.com/ajax/default.asp

Old Pedant
03-20-2012, 08:07 AM
Though another way is to put the ads into <iframe>s and then simply refresh the <iframe> contents.

webdev1958
03-20-2012, 09:55 AM
You could use setInterval() to periodically reset link hrefs, img src's etc etc depending on how your ads are being displayed originally.

freeinfo.in
03-20-2012, 12:18 PM
i just need reload content in <div> where ads placed in my html widget.

Old Pedant
03-20-2012, 08:42 PM
i just need reload content in <div> where ads placed in my html widget.

Yes? So did you look at the AJAX tutorial I referred you to? That's the only practical way, if you don't want to use <iframe>s. (You could easily put an <iframe> into each of your ad <div>s and then just refresh the <iframe>s if you don't want to use AJAX.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum