0

I'm trying to load a local html file in a UIWebView with an external jquery file. I have put both html and jquery file in the resources folder, but I can not get it to work. The animation from jquery works great in a web browser.

Any input would be greatly appreciated.

Thanks

Felipe Sabino
  • 17,825
  • 6
  • 78
  • 112
pcsteven
  • 1
  • 1

1 Answers1

3

I think there exist the possibilitythat jQuery is not being copied inside your app contents, check it out in the targets under the elements that are not compiled (or see if is in the compilable files and move it to copy only).

tyoc213
  • 1,223
  • 18
  • 21
  • Yes, JS files default to being "compiled" when imported to XCode. THis is likely the problem. Marking them as not compiled should allow them to be copied into your bundle like a normal asset file. – Alex Wayne May 11 '11 at 00:25
  • To add to what tyoc213 already mention, steps to do this in xcode4 http://stackoverflow.com/questions/5959941/how-to-add-javascript-file-to-xcode4 – Rahul Choudhary Sep 01 '11 at 05:28