jQuery 1.5.1 and Adobe Air
Greetings Everyone,
I have been using jQuery for some time know with great success and today I decided to try my hand at creating an Adobe Air application in Dreamweaver. I made a simple html page (see below) with a button and a span tag to interact with. The page works fine when I run it thought Firefox but when I try to preview (or run it) in Air it doesn't work at all. I did some trouble shooting and discovered that Air is reporting an error when loading jQuery 1.5.1.
The error is (which I got the minified version)
TypeError: Result of expression 'bK' [null] is not an object.
switching to the uncompressed version got me
TypeError: Result of expression 'ajaxLocParts' [null] is not an object
I checked with 1.5.0 and 1.4.4 and they both work as expected.
Because of the error I get a "can't find variable $" when i click the button which launches $('display').html("test message")
I will continue with my testing with 1.5 but figured I would mention this since I have found no mention of this on this site or on google.
Sincerly,
GuardStar
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Testint jQuery in Air</title>
- <script type="text/javascript" src="jquery-1.5.1.min.js"></script>
- <script type="text/javascript">
- function ClickMe(){
- $('#display').html("testing jquery");
- }
- </script>
- </head>
- <body>
- <p><input type="button" name="button" id="button" value="Button" onclick="ClickMe()" /></p>
- <p><span id="display"></span></p>
- </body>
- </html>