Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:03
Syntax error in non root directories
Poster: IndigoClothing
Dated: Saturday October 18 2003 - 18:05:10 BST
I recently upagraded to the new menu. All fine on most of my pages except my product catalogue and its subpages: http://www.indigoclothing.com/printing-embroidery/index.html
The error in ie6 is: Syntax Error, Line 2, Char 1
Why is this? These are the only pages on my site not in the root folder. Is this the problem? Also all pages in this directory are using a mod rewrite rule in Apache to alter the directory appearance.
Regards
Alex
http://www.indigoclothing.com
Poster: Maz
Dated: Saturday October 18 2003 - 18:58:16 BST
Where your path is, remove http and begin with a /
"/this is my menu folder/menu.js"
Regards
maz
Poster: IndigoClothing
Dated: Saturday October 18 2003 - 19:48:01 BST
Maz,
That is not really ideal as all pages are generated using a SSI header template - is the aboslute URL that is the problem? It is not really possible for me to use a relative one.
Alex
http://www.indigoclothing.com
Poster: John
Dated: Saturday October 18 2003 - 21:42:21 BST
Exactly where are you seeing the error? I've tried 3 different browsers with no error indications at all.
What Maz gave you is a server-relative URL, not document-relative. Your code indicates you have the Milonic code at the root, so /milonic_src.js, etc, should pose no problems, I use SSI to call my Milonic code all the time with server-relative pathing, plus generating all page headers, etc.. No trouble.
Poster: IndigoClothing
Dated: Monday October 20 2003 - 12:56:39 BST
Error still shown in status bar of ie6 on http://www.indigoclothing.com/printing- ... index.html and all other pages in that directory, even when using the /milonic_src.js, etc, URLs
Any clues?
Regards
Alex
http://www.indigoclothing.com
Poster: Andy
Dated: Monday October 20 2003 - 13:08:19 BST
You might want to update the menu code files.
Looking at your data file, it all seems fine but as you are running RC9 it would be wise to go for RC17
-- Andy
Poster: IndigoClothing
Dated: Monday October 20 2003 - 13:19:42 BST
Thanks Andy. Changing to RC17 fixed it.
I also notice that the top menu is now a different colour if a subpage is selected. Toi show you what I mean take a look at http://www.indigoclothing.com/info_delivery.shtml
On this page the 'information' tab is now highlighted becasue the current page is part of that menu. This didn't happen before. How do I remove that feature?
Thanks
Alex
http://www.indigoclothing.com