title: How do I troubleshoot jQuery not working on a page loaded on an embedded device's browser?
body: <p>I am developing a web application that is intended to run solely on an embedded device with its own web browser.</p>
  
  <p>This device browser is represented as being similar to (but not an exact match for) Firefox in the documentation.</p>
  
  <p>I would like to use the jQuery library to ease development.</p>
  
  <p>With this in mind I created a trivial test application using jQuery, tested it in Firefox (it works fine) and then tried running it on the device, where I found that only the non-jQuery JavaScript runs (I get the JavaScript alert but not the jQuery alert).</p>
  
  <p>Below is the script I'm testing with:</p>
  
  <pre><code>window.onload = function() {
      alert("JavaScript works");
  };
  
  
  $(function() {
      alert("jQuery works");
  });
  </code></pre>
  
  <p>And I'm including the script in my html page using the following in <code>&lt;head&gt;</code>:</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery.js"&gt; &lt;/script&gt;
  &lt;script type="text/javascript" src="myscript.js"&gt; &lt;/script&gt;
  </code></pre>
  
  <p>I am not really sure how to start troubleshooting this. I've read through the documentation for the device browser and have not found any facilities for troubleshooting it (e.g. a console). I have confirmed via Wireshark and by looking at the log of the web service that the jquery script is being loaded by the device browser as expected.</p>
  
  <p>I will contact the device manufacturer and see if they will/can help but I'm hoping that I'm missing some method of troubleshooting this on my own with the help of the SO community. This is my first serious web application so my web debugging skills are not nearly as developed yet as say my C#/.NET debugging skills.</p>
  
  <p>Below is some information which may or may not be useful. If there is anything useful I omitted please let me know and I'll add it.</p>
  
  <p>Here is an excerpt from the device browser documentation listing the standards supported by the browser.</p>
  
  <pre><code>HTTP/S | 1.1 | 
  HTML | 4.01 |  
  XHTML | 1.0 | Requires following HTML compatibility guidelines.
  XML DOM Level 2 | N/A
  CSS | Level 2.1 |  
  JavaScript | ECMAScript v3 |  
  AJAX | N/A | Ajax is an architecture, not a specific technology. It requires that an object be present, covered under sections below.
  </code></pre>
  
  <p>Here is the <code>User-Agent</code> string from the embedded browser:</p>
  
  <pre><code>Mozilla/5.0 (compatible; ANTGalio/2.1.19.12.020.2.0.00; vxWorks-6.3)
  </code></pre>
  
  <p>The web application is being hosted by a standalone WCF web service run as a Windows Service.</p>
  
  <p>So does anybody see what my issue is or have any suggestions for what I should do next to troubleshoot it?</p>