Check links in menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
DanThMan
Advanced
Advanced
Posts: 15
Joined: Sat Dec 27, 2003 10:43 am
Location: Goodridge, Smallcountry, Sweden

Check links in menu?

Post by DanThMan »

How do I check all the links in a .js?
Last time I did it, I'd strip them manually....
I don't want to do that again :(

Cheers / Dan
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Check links in menu?

Post by Ruth »

Hi,

No, you can't read it from a js file, since the links are created through the program, i.e. you put in the aI string coded for text, url= etc. The js program reads the url and converts it to a 'link'.

But, there is a way to do it without having to do it manually. There is an add-on that was created for the menu to allow use of a sitemap. This add on creates a ul list that opens in a new window. You can use this list to test your links :)

Here is the demo for that site index. http://support.milonic.com/demos/site_index/index.htm

I use this. If you don't want to put the site index option in the menu on the web, then you need to save your data file twice, once as you want it, then add the site index option and save it under a different name. Put that one on a page so you can create the site index, then use the site index page that opens to test all the links. It's a lot easier than it sounds, and much longer to explain than to do it :lol: You just have to remember when you update your menu and want to check links again, to also update the other file [if you make a separate one]

Hope that made sense!

Ruth
DanThMan
Advanced
Advanced
Posts: 15
Joined: Sat Dec 27, 2003 10:43 am
Location: Goodridge, Smallcountry, Sweden

Re: Check links in menu?

Post by DanThMan »

Thank you for your answer!
It was very helpful!

Edit: I've tested it now and it works like a charm.....Thanks again!

Cheers / Dan
Post Reply