In my webroot (i.e. C:\wamp\www) I have the folders alpha and bravo. A JavaScript file named aScript.js is in alpha and an HTML file called user.html is in bravo. I reference the external JavaScript by
but whenever I call a function in it the browser console says the function is not defined. If I copy and past the exact same files onto the desktop it works fine. Does WAMP have some permissions I must change? I haven't set up any of my own .htaccess files
Well it works when you have it coded correctly and you have apache configured properly. So something else must be wrong.
if you want I can TeamViewer in to your system and have a look.
If you want to do this install team Viewer ( its free for casual use ) and send me a Private message with the ID and Password. I am on GMT and an available now for an hour or so, or tomorrow.
RiggsFolly Wrote: ------------------------------------------------------- > Well it works when you have it coded correctly and > you have apache configured properly. So something > else must be wrong. > > if you want I can TeamViewer in to your system and > have a look. > > If you want to do this install team Viewer ( its > free for casual use ) and send me a Private > message with the ID and Password. > I am on GMT and an available now for an hour or > so, or tomorrow.
Did you get my private message? I thought I sent it but my sent folder is empty.
RiggsFolly Wrote: ------------------------------------------------------- > Are you sure this is not just your cross site > scripting filter denying the load of a script from > another site. > > That is basically what you are doing, loading a > script from another site. > > Try placing the script in the bravo folder and > loading it from there, see if it runs then.
Yes it does run if they are both in bravo. The thing that surprised me is it seems to work ok if the directories are on the desktop but as soon as they are in the WAMP directory it doesn't work.