<?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</p>
<pre><code class="language-php">if (!isset ($_GET['larghezza'])){
        echo '&lt;script type="text/javascript"&gt;

   
   
   
   var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == "number" ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
   window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;
  } else if( document.documentElement &amp;&amp; ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in "standards compliant mode"
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
   window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;
  } else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
   window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;
  }

   window.location = "index.php?larghezza="+myWidth+"&amp;altezza="+myHeight;


&lt;/script&gt; ';


    
}
</code></pre>
<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://dev.connect.gt/topic/123143/larghezza-finestra-browser-problemi-con-internet-explore</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 02:54:13 GMT</lastBuildDate><atom:link href="https://dev.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>