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!!
(I can send you the script if it's 2 hard to tell from just the info above)
Regards, Miss A
Problems incorporating menu into existing site
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
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!
THANK YOU THANK YOU THANK YOU
I CAN'T THANK YOU ENOUGH
YOU HAVE SAVED MY BACON
I CAN'T THANK YOU ENOUGH
YOU HAVE SAVED MY BACON