Problems incorporating menu into existing site

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aideenm
Beginner
Beginner
Posts: 3
Joined: Fri Oct 06, 2006 2:57 pm

Problems incorporating menu into existing site

Post by aideenm »

I have built my licensed menu and have tested it off line and it looks and works perfectly. However, when I try to add it (following the milonic intructions) to the existing website I am working on (which contains php, java script, & tables) it does not show up at all and it says at the bottom of the page "error on page".

Am I the only one having this problem?

Can anyone help- Please, please, please I'm desperate!! 8O

(I can send you the script if it's 2 hard to tell from just the info above)

Regards, Miss A
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Miss A,

Hard to tell what may be wrong from your description... lots of possibilities. A link to the page where you're testing would be most helpful, so we could examine the code, the error message, etc.

Cheers,

Kevin
aideenm
Beginner
Beginner
Posts: 3
Joined: Fri Oct 06, 2006 2:57 pm

Post by aideenm »

:oops: [/b]
Last edited by aideenm on Sun Oct 08, 2006 4:30 pm, edited 1 time in total.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Miss A,

Thanks for the link. There are actually four error messages generated when the page first loads. Three are js syntax errors and one is an object expected error that's related to the first syntax error.

All of these appear to be because the server cannot find milonic_src.js, mmenudom.js, and menu_data.js. What's odd, however, is that your server, instead of letting these files go as simply not found, is serving html code in their place; it's basically substituting the html code for the same page a visitor to your site would get with a http 404 "page not found" error. I have to assume this has something to do with the way you have php set up on your server, but that's just a guess. The important result is that from the browser's point of view, there does appear to be a milonic_src.js file, but it's not the real file; it's the html code from your generic "file not found" page, beginning with a DOCTYPE specification (that's why your getting the syntax errors).

I would think that the easy solution would be to upload the .js files (milonic_src.js, mmenudom.js, mmenuns4.js, and menu_data.js) to your server, in the location specified in your pages where you load the milonic scripts. Right now, your pages are looking for the milonic script files in the same directory that the page files themselves are in. That'll work, as long as you don't have links to pages in other directories.

Hope that helps,

Kevin
aideenm
Beginner
Beginner
Posts: 3
Joined: Fri Oct 06, 2006 2:57 pm

IT WORKED!

Post by aideenm »

THANK YOU THANK YOU THANK YOU

I CAN'T THANK YOU ENOUGH

:lol: YOU HAVE SAVED MY BACON :lol:
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

As a big fan of bacon, I'm happy to have helped save yours. ;)

Cheers,

Kevin
Post Reply