Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

Subscribe   OIOpub Blog » Development » Article: OIO 2.32 – souped up javascript

OIO 2.32 – souped up javascript

Filed under: Development

Serving ads using javascript has always been a challenge. You’ll often find ads that display perfectly fine using standard html behave very strangely when using javascript to put them on the page.

Take the classic example of google adsense. If you’ve ever tried to display google ads using OIO’s javascript output code, you’ll probably have found in all but the most simple of cases, the ad refuses to appear where you wanted it to.

It doesn’t just apply to google ads either, but to many javascript-based ads. I’ve come to view it as the javascript within javascript dilemma. It’s a problem I hope will now be a thing of the past….

OIO v2.32 comes with a completely new implementation of the javascript output code. Instead of going into the boring technical details, here are the main benefits of this new version:

  • Ads are only loaded when the page has finished loading in your browser. No matter how many ad zones you put on one page, users won’t see any increase in page loading times.
  • Ads appear exactly where you want them to – even google adsense and other javascript-based ads that used to cause problems – thanks to a “smart” implementation of the problematic ‘document.write’ javascript function.
  • OIO only loads once, even if you display multiple ad zones using javascript at the same time, helping to cut down on server load. In particular, stats tracking won’t ever need to log anything more than once per page load.
  • Refresh ads without the page needing to be re-loaded. Simply add refresh=X to the javascript output code url (where X is the number of seconds between ad zone refreshes).
  • Backwards-compatible with existing OIO javascript output code. You don’t need to replace any of your existing ad zone code, only the “behind-the-scenes” stuff has changed.

As this is a brand new implementation, it’s inevitable that some issues may occur, so please let me know about any strange happenings on the support forum.

How to Upgrade?

If you don’t fancy doing a full upgrade, you can download the latest files and only upload the files called “js.php” and “js_http.php” to your existing OIO install. Nothing else is required after that.

A full change log for this version is available here.

Which files have changed since the previous version?


Known Outstanding Issues?

A small number of users are seeing the “Invalid Request” message when using the OIO admin area. I’ve not been able to replicate the issue, so if you do see it on a regular basis, please let me know.

Comments are closed.

Leave a Comment

Name: (required)

Email: (required)