OK, hopefully someone can help me with today's problem.
I've been working on a responsive website design with a SilverStripe 3.0 backend (for those who haven't tried it, responsive design allows a single site to be optimised for a wide range of screen sizes, form smartphones to desktop and beyond). Anyhoo, one of the trickier elements of Responsive Design is site navigation. Thin of it this way. When working on a smartphone you don't want the whole screen taken up with multi-level navigation. So the trick is to 'hide' the navigation until you need it. Often this involves a bit of Javascript wizardry.
So I found a script called 'flaunt.js' and played with it, ending up with a static prototype that worked just as I wanted it to. The next part was to port this to a Silverstripe theme. And this is where I've hit the wall.
In my Page.ss file head I added the following:
<% require javascript(mysite/javacript/flaunt.js) %>
And I put the Javascript file in the appropriate location.
Ran the page up and Firebug tells me something different:
localhost/site/index.php/js/flaunt.js (and then a 404 error)
I've tried other locations (themes/mytheme/javacript/) and changed the path appropriately. I've removed flaunt.js and the path completely, done a ?flush=1 and ?flush=all for good measure, dev/build/ etc, but the error remains. Silverstripe is now looking for flaunt.js -- somewhere...
Can anybody offer any advice? Thanks!