How to add a timeout to a javascript ad tag

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Sandow

    How to add a timeout to a javascript ad tag

    My web site with servers located on the West Coast runs ads served by an
    adserver on the East Coast. A not-infrequent problem occurs when a
    user on the West Coast tries to load a page but for whatever reason
    can't reach the adserver. It causes a portion or the entire page to
    hang until the request times out. This can take up to 30 seconds or
    more. Is there a way to set up a time frame which will drop the
    request or route it to a local default file under these circumstances?

    Thanks! -Neil

  • VK

    #2
    Re: How to add a timeout to a javascript ad tag

    Do it from the opposite direction, it's the common way:

    1. First load a local page somepage.html
    The best is to create just blank page with the bgColor of the main page, so
    it doesn't waste visitor's attention untill all is done.

    2. Now you can attach onLoad="this.sr c='blah-blah-blah-_on_another_ser ver';"
    to the iframe.

    Neil Sandow <rx@rxlist.co m> wrote in message
    news:_%_ab.420$ cW6.69571741@ne wssvr14.news.pr odigy.com...[color=blue]
    > My web site with servers located on the West Coast runs ads served by an
    > adserver on the East Coast. A not-infrequent problem occurs when a
    > user on the West Coast tries to load a page but for whatever reason
    > can't reach the adserver. It causes a portion or the entire page to
    > hang until the request times out. This can take up to 30 seconds or
    > more. Is there a way to set up a time frame which will drop the
    > request or route it to a local default file under these circumstances?
    >
    > Thanks! -Neil
    >[/color]




    Comment

    Working...