Note that there are some explanatory texts on larger screens.

plurals
  1. POExoclick adult ads on mobile website with JQuery Mobile
    primarykey
    data
    text
    <p>I'm having an issue using Exoclick adult advertisement to advertise on a mobile website using JQuery UI.</p> <p>I don't know how much I can disclose here until it goes too far into "adult" that I can't post it here anymore.</p> <p>The Exoclick banners show, but only once! Navigating inside the site doesn't the same ad again (we have two ads, bottom and top. Each is only loaded ONCE per site traversal). If you refresh using the refresh function of the browser ("F5"), they will load again... But only once.</p> <p>Alright, Exoclick gives me a snippet like this:</p> <pre><code>&lt;!-- BEGIN ExoClick.com Ad Code --&gt; &lt;script type="text/javascript" src="http://syndication.exoclick.com/ads.php?type=300x50&amp;login=&lt;username&gt;&amp;cat=110&amp;search=&amp;ad_title_color=0000cc&amp;bgcolor=FFFFFF&amp;border=0&amp;border_color=000000&amp;font=&amp;block_keywords=&amp;ad_text_color=000000&amp;ad_durl_color=008000&amp;adult=0&amp;sub=&amp;text_only=0&amp;show_thumb=&amp;idzone=&lt;zone id&gt;&amp;idsite=&lt;site id&gt;"&gt;&lt;/script&gt; &lt;noscript&gt;Your browser does not support JavaScript. Update it for a better user experience.&lt;/noscript&gt; &lt;!-- END ExoClick.com Ad Code --&gt;&lt;/div&gt; </code></pre> <p>The thing is, this works perfectly on static sites, but due to the nature of JQuery Mobile to fetch everything using AJAX, the scripts would be loaded many times over into the browser's execution context (at least this is what I suppose happens!) and in the end... not even execute anymore?</p> <p>What I already thought of: </p> <ul> <li>Cache the output of the Exoclick ad script (is there something like "outputcache" for JS?)</li> <li>Deactivate Ajax</li> </ul> <p>I tried deactivating Ajax requests but for some reason this didn't do anything:</p> <pre><code> &lt;script&gt; $(document).bind("mobileinit", function(){ $.mobile.ajaxEnabled = false; }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload