title: Can I update a JavaScript on mobile phones?
body: <p>I have a mobile site where I am using JavaScript to refresh a message counter, JavaScript is enabled but it does not update the counter. The phone I am testing on is a Nokia e90. the other test phone is an HTC innovation and it works perfect on there.</p>
  
  <p>Is it a issue of the JavaScript version on the e90 is out of date?</p>
  
  <p>Here is my JS:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; 
  &lt;head&gt; 
  &lt;title&gt;&lt;?php echo TITLE_HOME;?&gt;&lt;/title&gt;
  &lt;meta http-equiv="content-language" content="en" /&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /&gt;
      &lt;script type="text/javascript" src="include/js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- like this--&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0b2.min.css" /&gt;  
      &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0b2.min.js"&gt;&lt;/script&gt;
  
  
    &lt;script&gt;
      $(document).ready(function()
      {
          refresh();
      });
  
      function refresh()
      {      
          $.get('newMessageCnt.php', function (cnt) {
          $("#msgcntDiv").html("You have " + cnt);
          //console.log(cnt);
          //$("#msgcntDiv").text("You have " + cnt);
          window.setTimeout(refresh,30000);
          });   
      }   
   &lt;/script&gt;
  </code></pre>
  
  <p>and the php:</p>
  
  <pre><code>&lt;?php
  if ($numOfMessages &lt;&gt; 0)
  {
      echo "&lt;span class='headings_sub' id='msgcntDiv'&gt;You have " .$numOfMessages . "&lt;/span&gt;";
      echo "&lt;a class='red_link' href='".ADDRESS."messages.php'&gt; unopened Messages&lt;/a&gt;";
  }
  else
  {
       echo "&lt;span class='headings_sub'&gt;You have no new messages&lt;/span&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>on the HTC <code>$numOfMessages</code> updates without a blink. On the E90 nothing happens</p>