Dear Forum,
I seem to be experiencing a conflict between jQuery 1.5.1 and PhoneGap
1.4.1 where I receive the message "'$' is undefined" when using the
jQuery namespace. I did find this post
https://github.com/jquery/jquery-mobile/issues/442
which suggested rolling jQuery back to 1.4.3 and this does indeed seem
to work. Could a breaking change have been introduced to jQuery at
some point after that version?
Sticking with an old version of jQuery is not really an option for us
as I'm sure you can appreciate.
Thanks for your help in advance
Dan
The below example demonstrates - if the highlighted line is included,
the reference to $(document).ready fails with "'$' is undefined" when
using jQuery 1.5.1 but not with 1.4.3. Has anyone else experienced
anything like this?
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>jQuery demo</title>
<script type="text/javascript" charset="utf-8" src="scripts/jquery/
jquery.js"></script>
<!-- *** FOLLOWING REFERENCE TO PHONE GAP BREAKS JQUERY WITH
JQUERY 1.5.1-->
<script type="text/javascript" charset="utf-8" src="scripts/
phonegap/phonegap.js"></script>
<script type="text/javascript">
$(document).ready(function () {
console.log('*** doc ready ***');
});
</script>
</head>
<body>
</body>
</html>