Not yet rated

Problem

You can't load jQuery from a cdn such as Google or Microsoft.

Solution

Due to security constraints, you must load it from the same local file system as the AIR application.

Detailed explanation

See Avoiding security-related JavaScript errors.

<html>
<head>
<title>AIR with jQuery</title>
<script type="text/javascript"
src="lib/jQuery/jquery-1.4.3.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$('body').append('jQuery is loaded.')

})
</script>
</head>
<body>
</body>
</html>

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes