I am developing a web application that is intended to run solely on an embedded device with its own web browser.
This device browser is represented as being similar to (but not an exact match for) Firefox in the documentation.
I would like to use the jQuery library to ease development.
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).
Below is the script I'm testing with:
window.onload = function() {
alert("JavaScript works");
};
$(function() {
alert("jQuery works");
});
And I'm including the script in my html page using the following in <head>
:
<script type="text/javascript" src="jquery.js"> </script>
<script type="text/javascript" src="myscript.js"> </script>
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.
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.
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.
Here is an excerpt from the device browser documentation listing the standards supported by the browser.
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.
Here is the User-Agent
string from the embedded browser:
Mozilla/5.0 (compatible; ANTGalio/2.1.19.12.020.2.0.00; vxWorks-6.3)
The web application is being hosted by a standalone WCF web service run as a Windows Service.
So does anybody see what my issue is or have any suggestions for what I should do next to troubleshoot it?