Syntax error in non root directories

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
IndigoClothing
Beginner
Beginner
Posts: 5
Joined: Sat Oct 18, 2003 6:00 pm
Location: Maidenhead, UK
Contact:

Syntax error in non root directories

Post by IndigoClothing »

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- ... 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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Where your path is, remove http and begin with a /
"/this is my menu folder/menu.js"

Regards
maz
User avatar
IndigoClothing
Beginner
Beginner
Posts: 5
Joined: Sat Oct 18, 2003 6:00 pm
Location: Maidenhead, UK
Contact:

Post by IndigoClothing »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
User avatar
IndigoClothing
Beginner
Beginner
Posts: 5
Joined: Sat Oct 18, 2003 6:00 pm
Location: Maidenhead, UK
Contact:

Post by IndigoClothing »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
IndigoClothing
Beginner
Beginner
Posts: 5
Joined: Sat Oct 18, 2003 6:00 pm
Location: Maidenhead, UK
Contact:

Post by IndigoClothing »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Delete pagecolor="#5a319c"; and pagebgcolor="#cccccc";.

Also, you've dropped the drawMenus(); line from the end of your _data file.
John
User avatar
IndigoClothing
Beginner
Beginner
Posts: 5
Joined: Sat Oct 18, 2003 6:00 pm
Location: Maidenhead, UK
Contact:

Post by IndigoClothing »

Thanks for that - all fixed!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Can I assume "all fixed" means up and rinning? If so, great!

Keep up with the RCs. There will probably be a few more before final release.
John
Post Reply