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:56
W3C Validation
Poster: bobfromtheband
Dated: Saturday September 2 2006 - 18:54:23 BST
Hi all,
I do apologise if this subject has been covered previously (I have checked but found nothing).
I have failed a Validation test at w3c for the web site below with the errors described below that.
As you can see, the three errors are all to do with the <href that I had to insert from 'Milonic' as a free charitable user.
Is there anything that I can do or should I contact 'Milonic' with this problem.
http://tnf.org.uk/members/navbartest1private.php (is the site in question)
-----------------------------------------------------------------------------------
This page is not Valid XHTML 1.0 Transitional!
Below are the results of checking this document for XML well-formedness and validity.
Error Line 194 column 75: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.
...ign="center" valign="middle"><a href=http://www.milonic.com/>JavaScript DHTML
✉
Error Line 194 column 81: NET-enabling start-tag not immediately followed by null end-tag.
...enter" valign="middle"><a href=http://www.milonic.com/>JavaScript DHTML Menu
This error may occur when there is a mistake in how a self-closing tag is closed, e.g '.../ >'. The proper syntax is '... />' (note the position of the space).
✉
Error Line 194 column 142: end tag for element "a" which is not open.
...ript DHTML Menu Powered by Milonic</a></td>
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occured in a script section of your document, you should probably read this FAQ entry.
I would appreciate any advice and help that anyone can give.
bobfromtheband (new user)
Poster: Ruth
Dated: Saturday September 2 2006 - 20:44:50 BST
Hi,
In that tag area put this
Code:
<a href='http://www.milonic.com/'>JavaScript DHTML Menu Powered by Milonic.com</a>
But, you also need to do something about the top tags, I think you need cdata?
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
//--><!]]>
</script>
<script type="text/javascript" src="menu_data.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
//--><!]]>
</script>
<script type="text/javascript" src="menu_data.js"></script>
I'm not up on xhtml so maybe it ignores things to do with vAlign and align, but just for info, those are backwards in some places. i.e. you have vAlign="center": and align="middle"; vAlign takes only top, middle, bottom, and align uses left, center, right.
If you still have problems look at your page on my site which does validate. Of course the links to files are different since they are on my site, but everything else is the same [except it's not php]
EDIT: link removed
Let me know when you get this so I can remove your files from my site.
Ruth
w3c Validation
Poster: bobfromtheband
Dated: Saturday September 2 2006 - 23:09:20 BST
Hi Ruth,
Your a bit of a wiz at this arent you. Ive no idea how you've done it but it Validates using your link but it didn't when I did what you suggested I do with the top code on my link.
Still, whatever you did I thank you dearly and so do all those who use the site.
Now, do you think that I could somehow copy the page from your site to update mine?
Thank you and again, thank you.
Bobfromtheband.
Poster: Ruth
Dated: Sunday September 3 2006 - 0:47:11 BST
Hi,
Sure, you can just view source copy and paste, however I think your problem is the link back to Milonic which you didn't change
Code:
<a href=http://www.milonic.com/>JavaScript DHTML Menu Powered by Milonic</a>
on my page it is
Code:
<a href='http://www.milonic.com/'>JavaScript DHTML Menu Powered by Milonic.com</a>
note the single quotes, maybe you could even use double quotes, I didn't try that. The only reason I put in Milonic dot com in the text is that for some reason in very, very rare instances the menu puts in the forced link if the dot com is not there, I've never been able to figure out why, but having that seems to prevent it.
Ruth
w3c Validation
Poster: bobfromtheband
Dated: Sunday September 3 2006 - 10:05:54 BST
Hi again Ruth,
I am so pleased that Milonic has a friend like you because, the code I used was copied and pasted directly from the Milonic's own instruction page.
I have made the changes that you advised and it works perfectly now.
Thank you, thank you and thrice thank you.
Oh and I love your web site, it's so full of information too. Definately worth a regular visit I think.
Fond regards,
Bobfromtheband.
Poster: Ruth
Dated: Monday September 4 2006 - 5:13:06 BST
Thanks, your compliments are appreciated
Ruth
Lost Menu
Poster: bobfromtheband
Dated: Wednesday September 20 2006 - 0:08:08 BST
Dear Ruth,
My apologies’ for troubling you again, (you thought you had sorted me out) but I have a new problem that I wondered if you could help me with.
I have requested and received a free licence from Milonic for the inclusion of their DD Menu. Since installing the new code and the new files I no longer have a visible menu.
Would it be possible for you to download my test page again and see where they or I have gone wrong?
I would thoroughly understand if you haven’t got time for me but would be most appreciative if you have.
The test page is: - http://www.tnf.org.uk/members/navbartest1private.php
Thank you in anticipation Ruth.
Regards,
Bobfromthrband (Talking News Federation)
Poster: Ruth
Dated: Wednesday September 20 2006 - 1:08:10 BST
Hi,
Don't worry about it, that's why we volunteer, we like to help
Your source code seems to show two calls for the 3 base milonic files and one for the menu data.js file and that call is before the others which will not work. That has to come last. This is what I see in the view source using both IE and FF
Code:
<head>
<!-- InstanceBeginEditable name="metatags" -->
<link href="../bob.css" type="text/css" rel="stylesheet" />
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
<title>TNF Private Members Home Page</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
<style type="text/css">
</style>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="menu_data.js"></script>
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="mmenuns4.js"></script>
<link href="../bob.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script type="text/javascript" src="../Templates/milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
//--><!]]>
</script>
<!-- InstanceBeginEditable name="metatags" -->
<link href="../bob.css" type="text/css" rel="stylesheet" />
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
<title>TNF Private Members Home Page</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
<style type="text/css">
</style>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="menu_data.js"></script>
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="mmenuns4.js"></script>
<link href="../bob.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script type="text/javascript" src="../Templates/milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
//--><!]]>
</script>
1. The menu_data.js file must be called after the other 3 files.
2. Make sure you have the correct paths for the files. The top paths seem to have the files there, the one with the ../Template part in it doesn't seem to be correct as to where the file is, but it is correct as to how it is coded.
3. Use that second set and put in the correct path for the milonic_src, mmenudom.js, mmenuns4.js and add after those 3 calls
Code:
<script type="text/javascript" src="menu_data.js"></script>
Remove the other calls in the head, and that should fix it.
Ruth
Thank you Ruth.
Poster: bobfromtheband
Dated: Thursday September 21 2006 - 18:29:53 BST
Dear Ruth,
You are my heroine. I cannot shout your praise enough.
Thank you, thank you and again thrice thank you!!!
Fond Regards,
bobfromtnf