AJAX Support Specifications

TopLayer code will detect an AJAX type page when the following Javascript variables are defined as true in the iframe the ad is served to:

    inDapIF

    inDapMgrIf

 

Note: The above variables are case-sensitive. Pay particular attention to the casing of the last letter of each variable.

When an AJAX type page is detected, Atlas Rich Media writes ad elements as siblings to the iframe element the ad is served to. The publisher page should remove our ad from the page by removing the iframe element and all its siblings. The Atlas Rich Media code will detect that the ad elements have been removed and run its cleanup logic.

Example Publisher AJAX Page

By downloading Publisher_Page.html and Ad.js into the same directory and pulling up Publisher_Page.html in a browser, you’ll see an example of the above variables being set and a button simulating an AJAX ad request withing an iframe. Contents of the iframe are cleared before requesting the next ad.