Using: ASP.net 4.0/ C#/ SQL 2008 db
I have an ad rotator control on my website. I made the xml file and everything is working except my jquery. I use the jquery to refresh and change the add every 10 seconds. It works perfect when I load the page for the first time. After I click the log in or registrer page though, it doesn't refresh every 10 seconds. It just does a refresh when I go to another page. Any idea what could cause it not to refresh once a new page is navigated to?
Master Page file:<script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script><script type="text/javascript"> $(document).ready(function () { setInterval(function () { $("#arAdvertisement").load(location.href + " #arAdvertisement", "" + Math.random() + ""); }, 10000); });</script><footer><div class="content-wrapper"><div class="float-left"><p>© <%: DateTime.Now.Year %> - website.com</p></div></div><div class="content-wrapper"><br /><br /><br /><div class="float-center"><asp:AdRotator ID="arAdvertisement" AdvertisementFile="~/Ad.xml" Target="_blank" runat="server" Width="600px" Height="131px" /></div></div></footer>