<?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[larghezza finestra browser: problemi con internet explore]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho bisogno di calcolare la larghezza della finestra del browser per posizionare i contenuti all'interno. Questa è la mia funzione<br />
[PHP]if (!isset ($_GET['larghezza'])){<br />
echo '&lt;script type="text/javascript"&gt;</p>
<p dir="auto">var myWidth = 0, myHeight = 0;<br />
if( typeof( window.innerWidth ) == "number" ) {<br />
//Non-IE<br />
myWidth = window.innerWidth;<br />
myHeight = window.innerHeight;<br />
window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;<br />
} else if( document.documentElement &amp;&amp; ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {<br />
//IE 6+ in "standards compliant mode"<br />
myWidth = document.documentElement.clientWidth;<br />
myHeight = document.documentElement.clientHeight;<br />
window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;<br />
} else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {<br />
//IE 4 compatible<br />
myWidth = document.body.clientWidth;<br />
myHeight = document.body.clientHeight;<br />
window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;<br />
}</p>
<p dir="auto">window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;</p>
<p dir="auto">&lt;/script&gt; ';</p>
<p dir="auto">}[/PHP]</p>
<p dir="auto">il problema è che explorer non mi restituisce la variabile come tutti gli altri browser ma il valore è nullo... avete una soluzione ?<br />
Grazie!</p>
]]></description><link>https://connect.gt/topic/123143/larghezza-finestra-browser-problemi-con-internet-explore</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 09:16:32 GMT</lastBuildDate><atom:link href="https://connect.gt/topic/123143.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Mar 2010 10:22:13 GMT</pubDate><ttl>60</ttl></channel></rss>