Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 3 of 3
  1. #1
    MomsDigest.com For Sale!
    cursal's Avatar
    Join Date
    Aug 2003
    Location
    Oregon
    Posts
    1,843
    DNF$
    16,854
    Bank
    0
    Total DNF$
    16,854
    Donate  

    Refresh, but only once..Can U Do it?

    Hello all,

    Problem :greensighw:
    -----------------
    I have been searching for a way to refesh a page, but only once, after it has loaded.

    I have tried both a meta refresh and javascript refresh, but the snippits of code I have tried and written get caught in a loop. For example when it reloads the page it see the refresh again and triggers the action.

    Reason
    -----------------------
    The reason is that sometimes contextual ads don't show when the page loads, so I was looking for a way to reload/refresh the page after 2 seconds.

    Reloading/refreshing the page corrects the "blank ad spots" showing relvant ads.

    Can you solve this?

  2. #2
    www.LOL.biz
    Bender's Avatar
    Join Date
    Apr 2004
    Location
    .ro
    Posts
    1,912
    DNF$
    6,243
    Bank
    0
    Total DNF$
    6,243
    Donate  

    Re: Refresh, but only once..Can U Do it?

    of course.
    when the page loads , try to read a cookie.
    -if the cookie is not set, set it, and activate a timed refresh.
    -if it is set, do nothing, this is the second load.
    I could write the actual JS code, but it's almost 2 AM here

  3. #3
    MomsDigest.com For Sale!
    cursal's Avatar
    Join Date
    Aug 2003
    Location
    Oregon
    Posts
    1,843
    DNF$
    16,854
    Bank
    0
    Total DNF$
    16,854
    Donate  

    Re: Refresh, but only once..Can U Do it?

    Thanks daniel,

    I will look into how to do that. Never been much of a "cookie" guy. But guess it's time to learn ...

Similar Threads

  1. refresh DomainSite domain list
    By MediaHound in forum General Domain Name Discussion
    Replies: 2
    Last Post: 09-29-2005, 11:57 PM
  2. Irritating page refresh with Firefox
    By kokopelli in forum Suggestions and Feedback
    Replies: 12
    Last Post: 06-17-2005, 06:31 PM
  3. Annoying live auction refresh and name quality
    By David G in forum Suggestions and Feedback
    Replies: 8
    Last Post: 04-10-2004, 12:00 AM
  4. enom URL redirect and URL frame or META REFRESH
    By Bashar in forum Website Development and Design Discussion
    Replies: 4
    Last Post: 08-19-2003, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com