<?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[Errore javascript su &quot;getElementById() is null&quot;]]></title><description><![CDATA[<p dir="auto">Salve a tutti,<br />
e da tanto che non faccio javascript, oggi mi sono messo a fare un semplice scrip per modificare la larghezza di un div ma mi da questo errore:<br />
"typeError: el is null" che non riesco a capire.<br />
Qualcuno di voi sa di cosa si tratta?</p>
<p dir="auto">Grazie in anticipo</p>
<pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link rel="stylesheet" type="text/css" href="css/style.css" /&gt; &lt;title&gt;Documento senza titolo&lt;/title&gt; &lt;style type="text/css"&gt;  #colum_left { 	width:0px; 	float:left; 	border: #060 1px solid; }  #colum_right { 	position: absolute; 	top:0px; 	width:0px; 	right:0px; 	float:right; 	border:#30F 1px solid; } #header { 	width:auto; 	height:229px; 	background:url(images/header.png) repeat-x; } &lt;/style&gt; &lt;script type="text/javascript"&gt;  var el = document.getElementById("header");  el.innerHTML = "&lt;b&gt;nuovo contenuto&lt;/b&gt;"; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="page" &gt;   &lt;div id="colum_left"&gt; &lt;div id="header" &gt;&lt;/div&gt; &lt;/div&gt;  &lt;div id="colum_center"&gt; &lt;div id="header" &gt;&lt;/div&gt;    &lt;/div&gt;  &lt;div id="colum_right" &gt; &lt;div id="header" &gt;&lt;/div&gt; &lt;/div&gt;    &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/177190/errore-javascript-su-quot-getelementbyid-is-null-quot</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 05:34:11 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/177190.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Sep 2012 20:37:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Errore javascript su &quot;getElementById() is null&quot; on Thu, 20 Sep 2012 21:56:07 GMT]]></title><description><![CDATA[<p dir="auto">Grazie, adesso funziona</p>
]]></description><link>https://dev.connect.gt/post/1087105</link><guid isPermaLink="true">https://dev.connect.gt/post/1087105</guid><dc:creator><![CDATA[giovandres90]]></dc:creator><pubDate>Thu, 20 Sep 2012 21:56:07 GMT</pubDate></item><item><title><![CDATA[Reply to Errore javascript su &quot;getElementById() is null&quot; on Thu, 20 Sep 2012 17:17:29 GMT]]></title><description><![CDATA[<p dir="auto">Ciao giovandres90,<br />
hai 2 div con lo stesso ID.</p>
]]></description><link>https://dev.connect.gt/post/1087098</link><guid isPermaLink="true">https://dev.connect.gt/post/1087098</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Thu, 20 Sep 2012 17:17:29 GMT</pubDate></item></channel></rss>