2 Replies Latest reply on Dec 24, 2009 12:09 PM by Nancy OShea Branched from an earlier discussion.

    Dreamweaver validation problem [branched from: How turn on brace matching all the time?]

    hrh gracie Level 1

      I suspect it's a matter of expectation.  I've been designing and building relational databases for 25 years.  In RdB, Oracle, SQL Server, and even MySQL.  I've seen the tools evolve since 1984 to the point where tools like Oracle Designer, SQL Server or even TOAD have excellent capabilities for writing procedural code and debugging.

       

      I've also been designing and developing user interfaces since 1981, evolving from brute force "debugging" with print statements to having a full-blown language sensitive editor with code management system and line-level, screen, watchpoint, stack control debugging for all the languages I used by 1989.

      Yes TWENTY YEARS AGO.  Again, I watched the environments evolve from languages like Basic, Fortran, Pl/1, C+ and so on, to sort-of-4GLs like

      Rally, Oracle Developer, and Access.

       

      So, I suppose that'd be the "hand holding" "deathgrip" I was expecting in 2009 from these environments.  This isn't some $20 tool created by some propeller-head in East Overshoe, it's sold by a MAJOR player (in my case I suspect I was erroneous in believing DW was a suitable tool because as a photographer I regularly use Photoshop, which has evolved to the point of being fairly good)...  So, yeah, my expectation was that it'd provide AT LEAST the capabilities I had 20 years ago, and AT LEAST what I get from Microsoft Visual Basic, Visual Studio or Access.  But, enough whining and moaning.  It is, what it is, unfortunate as that may be.  And, I'll keep using it until I either find it's good points or get SO disgusted I go to something else.......

       

      BUT, I'm back because of yet another question.......

       

      I ran the validation on my php file that contains the html.  It found 3 errors, all because it didn't like me having an html tag in uppercase.

       

      It now says "NO ERRORS OR WARNINGS FOUND."

       

      Except that tons of the html is still highlighted in yellow.  Which DW says means its INVALID.  And I haven't figured out how to have it tell me

      WHAT'S invalid about it...  It flags this whole piece of code for example:

       

                <tr valign="middle">
                  <td colspan="15" align="left"> </td>
                </tr>

       

      Looking at the w3schools set of table tags, the valign is valid on the tr.  The colspan and align are valid on the td...  So, what's the problem?

      And HOW do I get Dreamweaver to TELL ME what it's complaining about - and again, I've ALREADY done the validator and the window says there are NO ERRORS OR WARNINGS.

        • 1. Re: Dreamweaver validation problem [branched from: How turn on brace matching all the time?]
          David_Powers Adobe Community Professional

          hrh gracie wrote:

           

          BUT, I'm back because of yet another question.......

          One question per thread, please. That's why this has been branched into a new one.

          I ran the validation on my php file that contains the html.  It found 3 errors, all because it didn't like me having an html tag in uppercase.

           

          It now says "NO ERRORS OR WARNINGS FOUND."

           

          Except that tons of the html is still highlighted in yellow.  Which DW says means its INVALID.  And I haven't figured out how to have it tell me

          WHAT'S invalid about it...  It flags this whole piece of code for example:

           

                    <tr valign="middle">
                      <td colspan="15" align="left"> </td>
                    </tr>

           

          Looking at the w3schools set of table tags, the valign is valid on the tr.  The colspan and align are valid on the td...  So, what's the problem?

          And HOW do I get Dreamweaver to TELL ME what it's complaining about - and again, I've ALREADY done the validator and the window says there are NO ERRORS OR WARNINGS.

          The validation tools in Dreamweaver work only for HTML. You cannot use Dreamweaver's internal validator on a page that contains PHP code, because it's only the dynamic output of a PHP script that can be validated. If you want to validate server-side pages, you need to put them on a live server, and run them through the W3C validator (http://jigsaw.w3.org/css-validator/).

           

          If you have run a page with PHP script through the Dreamweaver validator, it probably highlights perfectly valid code as invalid because it can't parse the server-side script. Close the page, and reopen it. The yellow highlighting should go away.

           

          By the way, the Dreamweaver validator is not 100% reliable. It's about 99% accurate, but the only reliable validator is the W3C one.

          • 2. Re: Dreamweaver validation problem [branched from: How turn on brace matching all the time?]
            Nancy OShea Adobe Community Professional & MVP

            As David says, use the online validation tools at W3C. The link he gave you is for the CSS validiation tool, which is good, too.

             

            HTML Validator - http://validator.w3.org  

            CSS Validator - http://jigsaw.w3.org/css-validator/

             

            IMO every web developer should get the browser Add-On for Firefox called Web Developer Toolbar.  Among other things, it has code validation in the toolbar.

            https://addons.mozilla.org/en-US/firefox/addon/60

             

             

             

            Nancy O.
            Alt-Web Design & Publishing
            Web | Graphics | Print | Media Specialists
            www.alt-web.com/
            www.twitter.com/altweb
            www.alt-web.blogspot.com