I have a local HTML page stored in the bundle which I am loading up into a UIWebView just fine.
In this HTML file are links to the JavaScript files that it needs, as shown below:
Code:
<script type="text/javascript" src="../js/someJavaScriptFile.js"></script>
Now, when I load this file on my Mac it works perfectly fine since the path "../
js/someJavaScript.
js" file is existent from the location of the HTML file.
I have copied the
js folder (which contains all the
js files) into the project bundle (same level as the html file) and changed the link to the JavaScript file in the html file to:
Code:
<script type="text/javascript" src="js/someJavaScriptFile.js"></script>
However, this is still not working.
I am doing wrong something wrong?