Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-2008, 04:54 PM
hen3ry
 
Posts: n/a
Re: Problems with Insert-->Date (Insert Date ...Date_beforeSave.htm)

Folks:

Much later... with the aid of several others... Here is the latest theory
about this issue:

----Problems with Date_beforeSave are caused by invalid HTML in the file.---

Key points:

1. If you experience problems with Date_beforeSave trashing your files, check
the HTML validity (File-->Validate-->Markup) and clean up any nontrivial
complaints you see.

2. HTML errors that mislead DW about the overall structure your page (e.g.
invalidly nested <head> tags) seem to be the strongest kind triggers -- but
this is just a guess.

3. To get extra coverage, keep View--> Code View Options ---> Highlight
Invalid HTML enabled.

Here's what I _think_ is going on, a bit deeper:

From a user's point of view, Date_beforeSave operates at "Save Time" on what
seems like a complete, consistent file, just like text file stored on disk.
But internally DW represents your web page quite differently. It's all taken
apart and organized for DW's convenience and speed in doing what you want to
do. (I imagine a computer or a sewing machine _completely_ disassembled on a
very large workbench.) Apparently DW does not locate the date tags in your
file at Save Time. It keeps records of where you inserted date strings in the
disassembled pieces. It seems HTML errors scramble DW's method of keeping
track of the location of the date tags.

In my view, that's all quite reasonable, and I'm going to pay a lot more
attention to validating my files in the future. I'm going to take measures to
avoid introducing invalid markup.

Let me add my perspective to this: From what I've heard, invalid markup is
unavoidable. Sure, it is really easy to mess up tags editing in Code View --
that's probably what got me into this issue in the first place. I've heard a
credible opinion that high-level edits in Design View are at least as likely
--maybe more likely-- to introduce errors. I have no way of knowing to what
degree this is true. Let's NOT digress into a long discussion of this, please!
It's enough that invalid markup seems to occur... often, OK?

Anyway, I feel invalid markup is inevitable in the process of development.
When I save the first version of a report to my boss in a word processor, it is
almost certain to contain grammatical, spelling, and factual problems. How
many people write perfect c or c++ code in their first draft, and in every
subsequent version? No word-processing or code development environments I've
seen trash the file as a consequence of such errors.

So --if all the above is correct-- I think that the current implementation of
Date_beforeSave makes unreasonable assumptions about what's actually going on.
Requiring developers to run validation tests "often" is also unreasonable in
this context. Certainly, valid HTML is desirable, it's great to encourage
developers to validate their markup, but that should be entirely independent of
using a specific function as Insert-->Date.

In addition to paying a lot more attention to producing clean (valid) HTML
code, I'm also going to look for alternatives to Insert->Date. DW is extensible
(Hooray!) and there very well may be hooks that support the same function,
maybe a simplified version, without the complication of operating on a
"disassembled" HTML file. But first I have to get my long-delayed website on
the air. <grin>

Hope this helps someone...

Thanks,

Henry

Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 08:24 PM
jmmo
 
Posts: n/a
Re: Problems with Insert-->Date (Insert Date ...Date_beforeSave.htm)

I am also having one of the same problems discussed here - Insert Date adds extra code to the end. I'm using CS3 on a PC. Is anyone experiencing this in CS4?
Reply With Quote
  #3 (permalink)  
Old 11-07-2008, 11:04 PM
hen3ry
 
Posts: n/a
Re: Problems with Insert-->Date (Insert Date ...Date_beforeSave.htm)

jmmo:

I can't answer your question about CS4, but I can add:

1) See my post of 07/28/2008. Since then I've followed my own advice (!) and
I've been quite busy with DW -- I've done quite extensive editing of over 100
pages -- with NO problem at all using Insert-->Date.

2) I've heard that this issue was not on the to-fix list for CS4, and my guess
is that that Adobe won't be doing anything about it anytime soon. As I
expressed in my post of 07/28/2008, I have mixed feelings about that. Since
the problem is avoidable if users use some sensible measures reasonably often,
it seems unlikely this will ever be elevated to "must-fix" level. On the other
hand, I think the software could be more robust on this point, and could remove
at least some of the need for the user to remember to use the "sensible
measures" .

Why don't your try to adjust your code until it validates and let us know if
that fixes the problem for you?

Thanks,

Henry


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:42 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Wedding Flower Bouquet | Xbox Mod Chip | Buy Anything On eBay | Secured Loans | Mortgage



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114