<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[JS] Errore JavaScript sul plugin CookieChoices]]></title><description><![CDATA[<p dir="auto">Buongiorno a tutti,<br />
sto utilizzando lo script <a href="http://www.cookiechoices.org/" rel="nofollow ugc">CookieChoices</a> per il famoso banner sulla CookieLaw.</p>
<p dir="auto">L'ho già utilizzando e configurato su un sito web senza ottenere problemi, ma su <a href="http://www.agadamedical.it" rel="nofollow ugc">questo dominio</a>.</p>
<p dir="auto">Ho creato <a href="http://www.agadamedical.it/_test.php" rel="nofollow ugc">questa pagina</a> di test, senza contenuto, dove ottente 2 errori, come se non trovasse qualcosa:</p>
<p dir="auto"><em>TypeError: invalid 'in' operand document.body                    cookiechoices.js (linea 25, col 6)</em></p>
<p dir="auto"><em>ReferenceError: cookieChoices is not defined                      _test.php (linea 15, col 4)</em></p>
<p dir="auto">Secondo voi da cosa potrebbe dipendere?</p>
<p dir="auto">Grazie.</p>
]]></description><link>https://dev.connect.gt/topic/215785/js-errore-javascript-sul-plugin-cookiechoices</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 22:04:17 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/215785.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2015 08:36:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [JS] Errore JavaScript sul plugin CookieChoices on Thu, 03 Sep 2015 12:42:05 GMT]]></title><description><![CDATA[<p dir="auto">includi il js alla fine della pagina e funzionerà:</p>
<p dir="auto">&lt;!DOCTYPE HTML&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="content-type" content="text/html" /&gt;<br />
&lt;meta name="author" content="robertino" /&gt;</p>
<pre><code>&lt;title&gt;Senza nome 1&lt;/title&gt;

&lt;!-- Jquery --&gt;
&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.js"&gt;&lt;/script&gt;
</code></pre>
<p dir="auto">&lt;script&gt;<br />
document.addEventListener('DOMContentLoaded', function(event) {<br />
cookieChoices.showCookieConsentBar('Your message for visitors here',<br />
'close message', 'learn more', '<a href="http://example.com" rel="nofollow ugc">example.com</a>');<br />
});<br />
&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p dir="auto">&lt;body&gt;</p>
<p dir="auto">&lt;P&gt;TEST&lt;/P&gt;<br />
&lt;script src="_cookie_law/cookiechoices.js"&gt;&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>https://dev.connect.gt/post/1203776</link><guid isPermaLink="true">https://dev.connect.gt/post/1203776</guid><dc:creator><![CDATA[masterblank]]></dc:creator><pubDate>Thu, 03 Sep 2015 12:42:05 GMT</pubDate></item></channel></rss>