SearchSearch   

Dreamweaver Changes Code

 
   Webmaster Forums (Home) -> Macromedia Dreamweaver RSS
Next:  Problems with Too Much Space in Table Layout  
Author Message
AceTutor_Warwick

External


Since: Nov 08, 2006
Posts: 3



(Msg. 1) Posted: Wed Nov 08, 2006 5:25 am
Post subject: Dreamweaver Changes Code
Archived from groups: macromedia>dreamweaver (more info?)

Absolutely horrified - DW8.0.2 appears to act like a Microsoft product and
changes code on opening.

I have only become aware that after having corrected every fine detail to meet
W3C validation - including changing from
<body onLoad=
to
<body onload=

to comply . Just fine!

Now whenever I return to open that same file to modify content only - DW has
reverted my code to <body onLoad=.

I thought only FrontPage did that. YUK!

Can someone please explain and tell me what property setting would stop same -
or is there a workaround.

Thanks in anticipation

John
Back to top
Walt F. Schaefer

External


Since: Jul 31, 2006
Posts: 755



(Msg. 2) Posted: Wed Nov 08, 2006 5:25 am
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Link please


"AceTutor_Warwick" <webforumsuser.DeleteThis@macromedia.com> wrote in message
news:eirpnj$cfc$1@forums.macromedia.com...
> Absolutely horrified - DW8.0.2 appears to act like a Microsoft product and
> changes code on opening.
>
> I have only become aware that after having corrected every fine detail to
> meet
> W3C validation - including changing from
> <body onLoad=
> to
> <body onload=
>
> to comply . Just fine!
>
> Now whenever I return to open that same file to modify content only - DW
> has
> reverted my code to <body onLoad=.
>
> I thought only FrontPage did that. YUK!
>
> Can someone please explain and tell me what property setting would stop
> same -
> or is there a workaround.
>
> Thanks in anticipation
>
> John
>
>
>
Back to top
Alan

External


Since: Jul 28, 2006
Posts: 952



(Msg. 3) Posted: Wed Nov 08, 2006 5:25 am
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

<body onload=
<body onLoad=

what doctype.
what preferences for page type, code rewriting, code formatting, etc.
Back to top
wowser

External


Since: Oct 25, 2006
Posts: 30



(Msg. 4) Posted: Wed Nov 08, 2006 9:24 am
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Because you probably have your setting in DW set to rewrite your code.


"AceTutor_Warwick" <webforumsuser.DeleteThis@macromedia.com> wrote in message
news:eirpnj$cfc$1@forums.macromedia.com...
> Absolutely horrified - DW8.0.2 appears to act like a Microsoft product and
> changes code on opening.
>
> I have only become aware that after having corrected every fine detail to
> meet
> W3C validation - including changing from
> <body onLoad=
> to
> <body onload=
>
> to comply . Just fine!
>
> Now whenever I return to open that same file to modify content only - DW
> has
> reverted my code to <body onLoad=.
>
> I thought only FrontPage did that. YUK!
>
> Can someone please explain and tell me what property setting would stop
> same -
> or is there a workaround.
>
> Thanks in anticipation
>
> John
>
>
>
Back to top
AceTutor_Warwick

External


Since: Nov 08, 2006
Posts: 3



(Msg. 5) Posted: Thu Nov 09, 2006 3:05 am
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Thanks for comments thus far;

Walt: -
Sorry but what do you mean by "Link Please". If it is a request so you can
view original files concerned - then know that I have used php with server
includes to create my page. The result can be seen at www.arkits.com.

Alan: - DocType can be identified at above address. viz.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
As to settings:
Under Code Rewriting I have the following "set"
- Remove extra closing tags
- Warn when fixing or removing tags
- Never rewrite code with default extensions -.as .asr .asc .asp .ascx .asmx
..aspx .cfc .cfm .cfml .config .cs .ihtml .js .jsp .php .php3 .vb .xml .xsl
..xslt .xul

- Special characters
- both active content - insert and convert

Wowser:- Comments above


What now has me baffled on reviewing these settings - is that it would appear
that Dreamweaver is ignoring the very setting - Never rewrite code (especially
..php) - and it is.

DW does this as the file is opened. The original when opened in notepad has
onload.


Thanks again.

I am not out to bag DW - just surprised that default settings or lack of has
caused this drama and I would not have worried if it had not been my desire to
ensure W3C validation for my client.
Back to top
AceTutor_Warwick

External


Since: Nov 08, 2006
Posts: 3



(Msg. 6) Posted: Mon Nov 13, 2006 12:27 am
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Any further help or comments would be appreciated!
Back to top
wr426f

External


Since: Mar 31, 2009
Posts: 4



(Msg. 7) Posted: Tue Mar 31, 2009 4:05 pm
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

It appears that no one has an answer for this.

I've looked all over the place. I've talked Adobe support and the message I
got was... we have no reports of this behavior. Huh. Well...I noticed this in
DW CS3 Mac so I thought well, I'll just have to use Macromedia DW 8. But I'll
still be able to use the rest of CS3 Design Suite. I just recently upgraded to
CS4 Design Suite for various reasons. I had high hopes that maybe the
development team had fixed this problem. NOPE! I now have CS4 and I'm still
having to use DW 8 for my application. I've tried the Never Rewrite Code
preference. Does nothing for me. I'm having a hard time with this. I'm
finding no answers. I see that last thread here was posted in 2006. I want to
think that is because the problem has been resolved in some way shape or
fashion.

Does anybody have anything for me to try? Thanks in advance for anytime you
have for this particular topic.

H
Back to top
wr426f

External


Since: Mar 31, 2009
Posts: 4



(Msg. 8) Posted: Tue Mar 31, 2009 5:05 pm
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Just for good measure.

Here is an example: Create a cfm file with the following code in it. Delete
the closing "</li>" in "[LI]#foo#</li>" and save. Then open it up again and
notice the change in code. DW CS3 and CS4 doesn't like the [LI] with out </li>
so it rewrites as it sees fit. Invalidly nesting my cfloop and cfoutput tags.
(By the way, I understand that not closing the [LI] tags is not good form but
that's beside the point here.)

This is just a example that I came up with to show an Adobe Support Individual
what can happen.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Watch DW CS3 or CS4 Do it's own thing here.</title>
</head>
<body>
<cfset list = "I,AM,PO'd,ABOUT,THIS">
<cfset out = 1>
[BULLET]
<cfif out EQ 1>
<cfoutput>
<cfloop list="#list#" delimiters="," index="foo">
[LI]#foo#</li>
</cfloop>
</cfoutput>
</cfif>
[/BULLET]

</body>
</html>
Back to top
wr426f

External


Since: Mar 31, 2009
Posts: 4



(Msg. 9) Posted: Tue Mar 31, 2009 5:05 pm
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Here's a video that illustrates the problem.

http://www.cfinternals.org/blog/2008/03/dreamweaver-cs3.html

Hello Adobe. Can I please be responsible for my own code? Please? Thanks
for the help but I'm good. Really. Please tell me how to turn off your
helpful hands. Or can one of you nice folks about there on the innerweb help
one of a growing list of frustrated people out who 'liked' to use DW to write
their own markup and code?

Thanks
Back to top
Baxter

External


Since: Mar 31, 2009
Posts: 1



(Msg. 10) Posted: Tue Mar 31, 2009 6:43 pm
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

You might try this
http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fb...1e63e3d
or this
http://dhtmldev.com/content/view/48/30/
Dave
"wr426f" <webforumsuser.TakeThisOut@macromedia.com> wrote in message
news:gqtql2$ggk$1@forums.macromedia.com...
> It appears that no one has an answer for this.
>
> I've looked all over the place. I've talked Adobe support and the
message I
> got was... we have no reports of this behavior. Huh. Well...I noticed
this in
> DW CS3 Mac so I thought well, I'll just have to use Macromedia DW 8. But
I'll
> still be able to use the rest of CS3 Design Suite. I just recently
upgraded to
> CS4 Design Suite for various reasons. I had high hopes that maybe the
> development team had fixed this problem. NOPE! I now have CS4 and I'm
still
> having to use DW 8 for my application. I've tried the Never Rewrite Code
> preference. Does nothing for me. I'm having a hard time with this. I'm
> finding no answers. I see that last thread here was posted in 2006. I
want to
> think that is because the problem has been resolved in some way shape or
> fashion.
>
> Does anybody have anything for me to try? Thanks in advance for anytime
you
> have for this particular topic.
>
> H
>
Back to top
wr426f

External


Since: Mar 31, 2009
Posts: 4



(Msg. 11) Posted: Wed Apr 01, 2009 5:05 pm
Post subject: Re: Dreamweaver Changes Code
Archived from groups: per prev. post (more info?)

Thanks for the note Baxter. I've read through and tried both of those suggestions but I just don't think they work as they suggest. Still rewriting unfortunately.

Thanks
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Macromedia Dreamweaver
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum