Closed Thread Icon

Topic awaiting preservation: Dynamic Menu - Allwebmenus® (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=26796" title="Pages that link to Topic awaiting preservation: Dynamic Menu - Allwebmenus&amp;reg; (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Dynamic Menu - Allwebmenus&reg; <span class="small">(Page 1 of 1)</span>\

 
Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-05-2005 19:30

Does anyone here use Allwebmenus to create a dynamic menu? I'm having some javascript errors, and have no idea how to enterpret them. The site is www.labelsinc.com



(Edited by Rondavu on 10-05-2005 19:34)

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-05-2005 19:58

It looks like you're not pointing to the correct .js file. Or there's some other server side redirection issue becuase it's going to your /construction.html page, which I'm assuming is just your custom 404 message.

Check your file paths.



.:[ Never resist a perfect moment ]:.

(Edited by bitdamaged on 10-05-2005 19:58)

Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-05-2005 20:54

How did you test where it was pointing to? Yes I do have a custom 404. I know it's some kind of hierarchy issue, but I look in the javascript file and I can't figure out where in there it specifies URL. Allwebmenus compiles automatically. The only thing I can think of is that somewhere it's specifying an absolute path instead of a relative one. Since the absolute path on the server is different it might be throwing out the error. Is there anyway I can send someone the actual javascript file to look for something indicative of an absolute path compiled wrong?

Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-05-2005 20:58

Would a # (number) symbol cause errors within a javascript document? I specified some of the links within my dynamic menu as an anchor point in a page. Would that cause havoc?

Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-05-2005 21:25

I found this inside my javascript file....

var awmLibraryPath='/../awmData-menu'

This seems like a bad path to me when it points to the awmData-menu folder. It seems to be saying "go down one directory, go up one directory, and access. If the folder is one directory up, shouldn't it say "go up one directory, go down one directory, ans access? It seems opposite.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-05-2005 23:44

yes that path is going in a circle,

I checked it by simply going to the page and checking the error and then testing that against my browser. You may want to put absoute (web not server) paths in the JS file.

The # sign should be fine.



.:[ Never resist a perfect moment ]:.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-05-2005 23:54
quote:
It seems to be saying "go down one directory, go up one directory, and access



A path that starts with a slash is relative to the topmost directory, not the current one.

Personally, I'm confused as to how an error is being found in a file called awmlib2.js, but that filename doesn't appear in your page's source anywhere.


 

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-05-2005 23:59

I think it's in one of the js files

change that line to:
var awmLibraryPath='.' and see what happens its trying to find the js files in a directory called
'awmData-menu' and you have all your js files in the root dir.



.:[ Never resist a perfect moment ]:.

Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-11-2005 20:36

The directory goes like this...

awmData-menu (folder)
-->awmlib0.js
-->awmlib1.js
-->awmlib2.js
-->awmlib3.js
-->awmlib4.js
-->awmlib5.js
-->awmlib6.js
-->awmlib7.js
-->awmlib7.js

www (folder)
-->index.html
-->labelbar.js
-->labelbar

So the "awnData-menu" folder is right next to "www" folder in the directory. So "labelbar.js" inside "www" has to access awmlib2.js inside "awmData-menu". Is that achieved through the path being described in the javascript error console? It seems to be locating it but not finding it (instead accessing my custom 404). I know for a fact all the elements are there. Am I missing something?

(Edited by Rondavu on 10-11-2005 20:37)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 10-12-2005 14:51

Little confused on your directory setup. Should be something like:

www(folder)
-->index.html
-->labelbar.js
-->labelbar
------>awmData-menu(folder)
---------->awmlib0.js
---------->awmlib1.js
---------->awmlib2.js
---------->awmlib3.js
---------->awmlib4.js
---------->awmlib5.js
---------->awmlib6.js
---------->awmlib7.js
---------->awmlib7.js

so the awmData-menu folder needs to be inside the www folder, which it doesn't seem to be because I should be able to go to : http://www.labelsinc.com/awmData-menu and see the js files there. Which takes me to a custom 404 page.

Later,

C:\

Rondavu
Nervous Wreck (II) Inmate

From: Haverhill, MA, USA
Insane since: Dec 2002

posted posted 10-12-2005 20:59

Thank you for your help. A little deductive reasoning along with the clues provided here have helped me resolve the issue. I reconstructed the hierarchy, and now my dynamic menu works perfectly. Thank you very much.

(Edited by Rondavu on 10-12-2005 21:00)

« BackwardsOnwards »

Show Forum Drop Down Menu