HighDots Forums  

Strange Code View layout of Dreamweaver MX files

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Strange Code View layout of Dreamweaver MX files in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
user@domain.invalid
 
Posts: n/a

Default Strange Code View layout of Dreamweaver MX files - 07-09-2003 , 10:57 AM






I recently upgraded from Dreamweaver 4 to MX. My site uses many include
statements and pages whose code view displayed properly in version 4 now
look scattered in the MX version. For example, version 4 would display
a left navigation include, a body of text, and the right navigation
include along the same line. MX shows the left include at the top left
of the page, the body text underneath it, and the right include below
that. This makes it difficult to make design changes accurately. Any
suggestions?

Thanks,

Jason


Reply With Quote
  #2  
Old   
Alan Ames
 
Posts: n/a

Default Re: Strange Code View layout of Dreamweaver MX files - 07-09-2003 , 11:23 AM






user (AT) domain (DOT) invalid posted something on 7/9/03 11:09 AM so i blathered about
to and fro:

Quote:
Actually, the page looks fine if I upload it with those display
problems. One example is http://www.drwhitaker.com/index_test.asp

There are definitely html comments showing the beginning and end of the
includes.

And the includes are not complete html files. They are only parts of
tables, rows, etc. Someone suggested defining the sites, but that did
not work.

There's four opening <body> tags in that assembled file. Looking in source
in Dw- there's <table> tag highlighted in yellow- indicating syntax
problems.

also- unrelated, but noticed there's a problem with repeated <font><b> tags
around the bottom text menu items that should be cleaned up.

to sort out the includes-
Open one of the include files by itself.
example- the one that starts <!--right navigation include begins -->
delete the <body> tag from top of include file.
Now- make sure that it's a balanced block of code- that any table or other
tag opened in that file is closed in that include file.

remove any javascript functions from them- they belong in the head section
of the main file, not down in the body. You can use another include just for
js, or use a linked .js file to put all the js functions into.

repeat for all the includes.

You should end up with a final file that has no yellow highlights in dw's
code view or design view- and displays as it should.

DMX is fussier about code syntax than Dw4 was.

--
Team Macromedia Volunteer for Dreamweaver
Certified Dreamweaver MX Developer



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.