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:12
Check links in menu?
Poster: DanThMan
Dated: Saturday February 7 2009 - 8:20:16 GMT
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
Re: Check links in menu?
Poster: Ruth
Dated: Saturday February 7 2009 - 17:15:31 GMT
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 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
Re: Check links in menu?
Poster: DanThMan
Dated: Sunday February 8 2009 - 6:46:25 GMT
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