iamnoah/writeCapture — Issue #44: el is undefined when calling the function before currents adds have finished
Author: jamiehutber
Created: 2012-01-18 12:46:40+00:00
State: open

Hi there.

Just wondering if you've ever come across 'el is undefined' error before?

The only way i recreate this error is call the function and then calling it again before the adds have finished loading from the first call.

Heres my code, this code runs each time :
ajaxAds.changeAds = function (){
//Remove Current Adds
$('#banner').empty();

var str_html_banner = tmgAdsBuildAdTag("ban", "728x90,468x60", "adj", "", 2);
$('#banner').html(writeCapture.sanitize(str_html_banner));
}

While i'll write something on my end to wait until everything has loaded i just wondered if there was anything you're aware of that might do this?

Again cheers for making this fully sexy plug-in :)