jQuery 1.5.1 and Adobe Air

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



  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Testint jQuery in Air</title>
  6. <script type="text/javascript" src="jquery-1.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. function ClickMe(){
  9.     $('#display').html("testing jquery");
  10. }
  11. </script>
  12. </head>
  13. <body>
  14. <p><input type="button" name="button" id="button" value="Button" onclick="ClickMe()" /></p>
  15. <p><span id="display"></span></p>
  16. </body>
  17. </html>