Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:52

Problems incorporating menu into existing site


Poster: aideenm
Dated: Friday October 6 2006 - 15:06:03 BST

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


Poster: kevin3442
Dated: Friday October 6 2006 - 20:26:02 BST

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


Poster: aideenm
Dated: Saturday October 7 2006 - 14:42:00 BST

:oops: [/b]


Poster: kevin3442
Dated: Sunday October 8 2006 - 4:14:26 BST

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

IT WORKED!


Poster: aideenm
Dated: Sunday October 8 2006 - 16:29:58 BST

THANK YOU THANK YOU THANK YOU

I CAN'T THANK YOU ENOUGH

:lol: YOU HAVE SAVED MY BACON :lol:


Poster: kevin3442
Dated: Monday October 9 2006 - 5:11:17 BST

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

Cheers,

Kevin