I've done this sort of thing but not experienced the problem you are referring to. IIRC, I ensured both the HTML source and the referenced Javascript files were both copied to the resources folder. the HTML source then includes the javascript in the normal fashion, without specifying a full pathname:
<script type="text/javascript" src="filename.js"></script> BTW, this group is the closest I know of to handling hybrid applications: http://groups.google.com/group/PhoneGap/topics HTH, /dave On Feb 6, 3:19 pm, anmldr <[email protected]> wrote: > Has anyone here created a hybrid app displaying HTML through the > UIWebView? If so, did you use javascript? How did you address the > problem below? > > I include the HTML, css and js files in a folder in Xcode. I compile > and run it in the simulator. The javascript is not being included > when the HTML page opens. > > There is an error: > warning: no rule to process file '$(PROJECT_DIR)/testing.js' of type > sourcecode.javascript for architecture i386 > > I have Googled this error and other people have experienced the same > thing. But, they just mention removing any reference of javascript > files from the "Compile Sources" folder in Xcode. I do that and the > error goes away but the js file is still never utilized. > > I apologize if this seems off topic but since it is a hybrid app, > there is no "hybrid" group to post this on that I could find. > > If you use Xcode and you want to look at an example of what I mean, > you can download a very simple demo of the problem > fromwww.anmldr.com/testing.zip > > Thank you, > Linda --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
