Solved

Invalid tag? Dreamweaver keeps overwritting!

Posted on 2004-03-27
3
253 Views
Last Modified: 2010-04-06
This problem consists of html / css / and javascript.

I have been playing with a  script for a navigational menu found at dynamic drive ( http://www.dynamicdrive.com/dynamicindex1/navigate1.htm ).

The problem is that dreamweaver insists the below tag is invalid ( the tag is in the script ).

<ul id="foldinglist" style="display:none" style=&{head};>
When i save the page - dreamweaver changes the tag to this.

<ul id="foldinglist" style="display:none">
I know there is a way to stop dreamweaver doing this but i would like to keep the clean up html default option when saving files for other reasons. So...
Can anyone tell me what is wrong with <ul id="foldinglist" style="display:none" style=&{head};> ?

Because dreamweaver changes the code - the result is that the script does not work properly in some browsers. In none compliant browsers the menu should display as a normal bullet list - without the style=&{head};> some browsers do not do this.

Is there a work around for this so that i dont have to turn off the automatic invalid code feature in dreamweaver?

0
Comment
Question by:1Host
3 Comments
 
LVL 6

Accepted Solution

by:
Reapz earned 500 total points
ID: 10698113
Remove style="display:none" the error is because the code is duplicating the styles. At least that's what Dreamweaver told me. :)

If you take all occurences of that out then the script works fine and everything appears as it should.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now