barrykap
09-17-2011, 08:42 AM
Hi
I have a very basic allwebco website and in the root I have menu.js which puts a small menu on the top right of every webpage that calls it.
The index.html page in the root calls this menu.js and also another page in a folder from the root calls it (I prefix menu.js in this page with '../' so as to step back to the root). Also on this sub-page I call another page which is in the same folder. This also calls up 'menu.js' and again I prefix it '../' in order to access it from the root, which is the preceding folder.
However, on this second page, it does not display the menu.
I have tried everything by prefixing it with '/', './', '../' and just leaving it as 'menu.js' but it will not find it.
Can anyone help please?
Thanks.
Barry
I have a very basic allwebco website and in the root I have menu.js which puts a small menu on the top right of every webpage that calls it.
The index.html page in the root calls this menu.js and also another page in a folder from the root calls it (I prefix menu.js in this page with '../' so as to step back to the root). Also on this sub-page I call another page which is in the same folder. This also calls up 'menu.js' and again I prefix it '../' in order to access it from the root, which is the preceding folder.
However, on this second page, it does not display the menu.
I have tried everything by prefixing it with '/', './', '../' and just leaving it as 'menu.js' but it will not find it.
Can anyone help please?
Thanks.
Barry