I have been using jQuery while developing an app with the Rally 2.0 SDK. Everything works fine when I’m using the debug version of the page but when I upload the HTML from the dev version I’m getting a bunch of syntax errors on the jQuery include. What I’ve done is download the jQuery 1.7.2 min distro and saved it as jquery.js in the working folder. Then I changed my config.json to:
{
"name": "overview_v2",
"className": "CustomApp",
"sdk": "2.0p2",
"javascript": [
"App.js",
"jquery.js"
],
"css": [
"app.css"
]
}
When I compile with the Rakefile it includes the jQuery into the HTML correctly but I’m getting a few different errors:
Uncaught SyntaxError: Unexpected identifier
and
unmatched ) in regular expression
The first error comes when loading the page in Google Chrome and the second comes when loading in Firefox. Am I including jQuery the correct way or is there a better alternative?
Thanks!
Try upgrading to the latest version of the app sdk rakefile. There were issues with parsing regular expressions in an earlier version of the rakefile.