eloqua - elq is not defined error in javascript -


i trying run following javascript function. while running below script, firebug spots error. below error message,

referenceerror: elq not defined elq.dynamic(-57770, 5000, 'replace-me');

code:

<div id="replace-me"> </div>       <script type="text/javascript"> var _elqq = _elqq || []; _elqq.push(['elqsetsiteid', '5000']); _elqq.push(['elqtrackpageview']);  (function () {     function async_load() {         var s = document.createelement('script'); s.type = 'text/javascript'; s.async = true;         s.src = '//img.en25.com/i/elqcfg.min.js';         var x = document.getelementsbytagname('script')[0]; x.parentnode.insertbefore(s, x);     }     if (window.addeventlistener) window.addeventlistener('domcontentloaded', async_load, false);     else if (window.attachevent) window.attachevent('onload', async_load);  })(); </script>   <script type="text/javascript" src="http://img.en25.com/i/elqdyn.min.js"> </script>  <script type="text/javascript"> elq.dynamic(-57770, 5000, 'replace-me'); </script> 

this pdf (page 4) says this

<script type="text/javascript"> var _elqq = _elqq || []; _elqq.push(['elqsetsiteid', 'siteid']); _elqq.push(['elqtrackpageview']); (function() { function async_load() { var s = document.createelement('script'); s.type = 'text/javascript';  s.async = true;  s.src = '//img.en25.com/i/elqcfg.min.js'; var x = document.getelementsbytagname('script')[0];  x.parentnode.insertbefore(s, x); } if (window.addeventlistener) window.addeventlistener('domcontentloaded', async_load, false); else if (window.attachevent) window.attachevent('onload', async_load); })(); </script>   <script type="text/javascript" src="http://img.en25.com/i/elqdyn.min.js"> </script>  <!-- code --> <script type="text/javascript"> elq.dynamic(-57770, 5000, 'replace-me'); </script> 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -