JavaScript syntax error in "mobilehidead" span

FlightlessDuck

Y kant Donald fly?
Joined
Jun 20, 2006
Uncaught ReferenceError: googletag is not defined
at post-thread:144
(anonymous) @ post-thread:144

JavaScript:
    <span class="mobilehidead"> 
    <div style="margin-top: 0px; display: block; float: right; line-height: {xen:calc '@headerLogoHeight - 6'}px; *line-height: @headerLogoHeight; height: @headerLogoHeight; vertical-align: middle">
    <!-- /1007433/disboards_top_right_header -->
    <div id='div-gpt-ad-1502208938629-0' style='height:90px; width:728px;'>
    <script>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1502208938629-0'); });
    </script>


This is because the javascript variable "googletag" is not defined until line 1239:

JavaScript:
<!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PJXSRGC"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    <script type='text/javascript'>
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];
    (function() {
    var gads = document.createElement('script');
    gads.async = true;
    gads.type = 'text/javascript';
    var useSSL = 'https:' == document.location.protocol;
    gads.src = (useSSL ? 'https:' : 'http:') + 
    '//www.googletagservices.com/tag/js/gpt.js';
    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(gads, node);
    })();
    </script>
 

GET A DISNEY VACATION QUOTE

Dreams Unlimited Travel is committed to providing you with the very best vacation planning experience possible. Our Vacation Planners are experts and will share their honest advice to help you have a magical vacation.

Let us help you with your next Disney Vacation!











facebook twitter
Top