Uppgrading

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sippen
Beginner
Beginner
Posts: 3
Joined: Fri Aug 01, 2003 8:32 am

Uppgrading

Post by sippen »

If uppgrading from v5.00 to v5.19, do I have to install everything on more time or can I simply replace some of the files ??
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Just replace the 3 main menu code files - milonic_src.js, mmenudom.js, and mmenuns4.js. Always replace all 3 files together on any upgrade; i.e., do not run different versions of the code files.

Note that rarely there will be an upgrade that retains the same version number (e.g., 5.19), but the Built: date noted in the code comments will be different. Again, replace all 3 files.
John
sippen
Beginner
Beginner
Posts: 3
Joined: Fri Aug 01, 2003 8:32 am

Post by sippen »

I found that I have to ad the rows
"
<script language="javascript" type="text/javascript">
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>
"
to my html-page.
After that v5.19 works. However after that the pages does not validate
through the W3C xhtml1.0 validator. I've got several errors like
"
Line 51, column 21: an attribute specification must start with a name or name token

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>").

(Send feedback on message #105)

Line 51, column 21: element "scr" undefined

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>").

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).

(Send feedback on message #76)

Line 51, column 64: character "<" is the first character of a delimiter but occurred as data

...rite("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");

If you wish to include the "<" character in your output, you should escape it as "<". Another possibility is that you forgot to close quotes in a previous tag.

(Send feedback on message #404)

Line 52, column 21: an attribute specification must start with a name or name token

else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"..

(Send feedback on message #105)

Line 52, column 21: element "scr" undefined

else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"..

(Send feedback on message #76)

Line 52, column 64: character "<" is the first character of a delimiter but occurred as data

...rite("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");

(Send feedback on message #404)

Line 53, column 8: end tag for "scr" omitted, but OMITTAG NO was specified

</script>
"
Why ???
No problem with that in previous versions (v5.00).

Sven-Ingvar
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Are you using xhtml?

If so take a look at begginers section.

maz
Post Reply