hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Invalid code? Dreamweaver overwrites
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Invalid code? Dreamweaver overwrites

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-27-2004, 08:11 PM
Desperate Desperate is offline
Junior Guru Wannabe
 
Join Date: Jul 2001
Location: London
Posts: 80

Invalid code? Dreamweaver overwrites


I have been using a script for a navigational menu.

The problem is that dreamweaver insists the below tag is invalid.


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

Quote:
<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.

If you need to see the full script i am using, it is located at - http://www.hostcompanies.com/menutest2.htm

Reply With Quote


Sponsored Links
  #2  
Old 03-27-2004, 10:22 PM
jasong jasong is offline
Web Hosting Master
 
Join Date: Mar 2004
Posts: 1,468
1. open up dreamweaver
2. copy the html
3. go into notepad (the real mans tool)
4. paste it into notepad
5. change:
<ul id="foldinglist" style="display:none">

to:

<ul id="foldinglist" style="display:none" style=&{head};>.

6. save it as whatever.htm
7. its done


BTW- i dont know if this is an error or not, but in:
<ul id="foldinglist" style="display:none" style=&{head};>.
is there suposed to be a period after the ">"?
Thats what might be wrong.

Reply With Quote
  #3  
Old 03-27-2004, 10:34 PM
Desperate Desperate is offline
Junior Guru Wannabe
 
Join Date: Jul 2001
Location: London
Posts: 80
I cannot do it in notepad... i will be placing the menu on virtually all pages of my site.. so whenever i update my site with dreamweaver it will overwrite the code.

If i turn off the overwriting element in dreamweaver then in future cases of invalid html.. i will not be able to see.

Reply With Quote
Sponsored Links
  #4  
Old 03-28-2004, 12:33 AM
serialbeggar serialbeggar is offline
WHT Addict
 
Join Date: Feb 2004
Location: FTL on the Information Super Highway
Posts: 142
(Not knowing what "&{head};" is ) ... how about this:

<ul id="foldinglist" style="display:none; &{head};">

__________________
Serial Beggar
Hate Your Family? Have No Friends? Make Me Your Beneficiary!

Reply With Quote
  #5  
Old 03-28-2004, 09:25 AM
CyberAlien CyberAlien is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 389
in dreamweaver there is code rewriting option or something like that. you need to disable it.

__________________
CyberAlien.
phpBB styles, responsive XenForo styles

Reply With Quote
  #6  
Old 03-28-2004, 03:45 PM
stripeyteapot stripeyteapot is offline
Hmmm....
 
Join Date: Apr 2003
Location: UK
Posts: 2,341
Change to expert mode

Quote:
<ul id="foldinglist" style="display:none" style=&{head};>
First style, you are not ending it and then in the second ending it un necessarily, try....

Quote:
<ul id="foldinglist" style="display:none;" style=&{head}>

__________________
ServeYourSite
Web hosting done right
██ Shared, Reseller and Dedicated web hosting
An Easy Web Presence Company

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Industry Forum Establishes Cloud Service Provider Code of Practice Web Hosting News 2012-09-21 12:38:23
DigiCert Launches Extended Validation Code Signing Certificates Web Hosting News 2012-08-15 15:30:28
Non-Profit New Zealand Computer Society to Develop Cloud Code of Practice Web Hosting News 2011-09-02 17:22:36
SSL Certificate Authority Comodo Providing Intel Application Certification Web Hosting News 2011-08-12 15:51:28
Web Host DreamHost Contributing Code for Ceph File System to OpenStack Web Hosting News 2011-06-23 20:40:32


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?