I have a local file in which I try to load texture like this:
var texture = THREE.ImageUtils.loadTexture( \'image.jpg\' );
var cubeGeo = new THREE.CubeGeomet
To further explain (because I was confused as well), you can install a local server (I used node - http://nodejs.org/download/ to download node).
After, to install server cd to your project directory and run in command line:
npm install http-server -g
To run:
http-server
Then go to the default local page
http://localhost:8080/
and you should see your project there.