15 Replies Latest reply: Oct 30, 2013 12:04 PM by Nancy O. RSS

    PHP file in Split or Design View - greyed out,,,How do I fix?????Help!

    larryvoyer

      I just pruchased CS5 and am trying to view and modify a php file in Split view. The "Split". "Design" and "Love Code"buttonds are greted out. I tried Designer, Coder, App Developer...all of them; and I still can get into a split or design view. What am I missing?

       

      Larry Voyer

      Site Creator/Administrator

      http://larryvoyer.com/genealogy/

        • 1. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
          Nancy O. CommunityMVP

          Typically, PHP code is code view only.

           

          Can we see your code?

           

           

           

          Nancy O.

          Alt-Web Design & Publishing

          Web | Graphics | Print | Media  Specialists 

          http://alt-web.com/

          http://twitter.com/altweb

          http://alt-web.blogspot.com/

          • 2. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
            larryvoyer Community Member

            Hi Nancy

             

            I bought CS5 specifically to see my code in design view, You've just said that I wasted my social security money.

             

            Here is the code of the page that I wanted to see in design view

             

            <?php
            $flags['noicons'] = true;
            $flags['noheader'] = true;
            $flags['nobody'] = true;

            //Change the text in quotes below to reflect the title of your site

            tng_header( "{$tmp['t5_maintitle']}", $flags );
            ?>

            <body>
            <div align="center">
            <table width="90%" class="maintable">
              <tr>
                <td class="row" colspan="6"></td>
              </tr>
            <tr>
              <td class="imagesection"> </td>
              <td class="spacercol">  </td>
              <td class="content" colspan="4">
               <table border="0" cellpadding="5" cellspacing="0" width="2%" class="innertable">
                    <tr>        
                <td class="leftimage"><img src="<?php echo $cms['tngpath'] . $templatepath; ?><?php echo $tmp['t5_leftimg']; ?>" alt="louis voyer" ></td>
                <td class="banner" colspan="2"><img src="<?php echo $cms['tngpath'] . $templatepath; ?><?php echo $tmp['t5_titleimg']; ?>" alt="title"/></td>
                <td class="rightimage"><img src="<?php echo $cms['tngpath'] . $templatepath; ?><?php echo $tmp['t5_rightimg']; ?>" alt="louis voyer" ></td>
              </td>
            </tr>
                <tr>
                    <td colspan="4" class="boxback">
               <a href="whatsnew.php" class="lightlink2"><?php echo $text['mnuwhatsnew']; ?></a>
                        | <a href="browsemedia.php?mediatypeID=photos" class="lightlink2"><?php echo $text['mnuphotos']; ?></a>
                        | <a href="browsemedia.php?mediatypeID=documents" class="lightlink2"><?php echo $text['documents']; ?></a>
                        | <a href="browsemedia.php" class="lightlink2"><?php echo $text['allmedia']; ?></a><br />
            <!-- SECOND LINE OF LINKS-->
                        <a href="mostwanted.php" class="lightlink2"><?php echo $text['mostwanted']; ?></a>
                        | <a href="reports.php" class="lightlink2"><?php echo $text['mnureports']; ?></a>
                        | <a href="cemeteries.php" class="lightlink2"><?php echo $text['mnucemeteries']; ?></a>
                  | <a href="browsemedia.php?mediatypeID=headstones" class="lightlink2"><?php echo $text['mnutombstones']; ?></a>
                  | <a href="anniversaries.php" class="lightlink2"><?php echo $text['anniversaries']; ?></a>
                  | <a href="places.php" class="lightlink2"><?php echo $text['places']; ?></a><br />
            <!-- THIRD LINE OF LINKS-->
                  <a href="browsenotes.php" class="lightlink2"><?php echo $text['notes']; ?></a>
                  | <a href="browsesources.php" class="lightlink2"><?php echo $text['mnusources']; ?></a>
                     | <a href="browsetrees.php" class="lightlink2"><?php echo $text['mnustatistics']; ?></a>
                     | <a href="bookmarks.php" class="lightlink2"><?php echo $text['bookmarks']; ?></a>
                  | <a href="suggest.php" class="lightlink2"><?php echo $text['contactus']; ?></a>
            <?php
            if( $allow_admin ) {
              echo "| <a href=\"showlog.php\" class=\"lightlink2\">{$text['mnushowlog']}</a>\n";
              echo "| <a href=\"admin.php\" class=\"lightlink2\">{$text['mnuadmin']}</a>\n";
            }
            ?>
              </td>
                 </tr>
                  <tr>
                 <td class="leftcontent" rowspan="3">
              <div class="header">
                          <p>Our Noble Background</p>
               </div>
               <p>Recently, the <a href="Longueval" _mce_href="http://www.habitant.org/longueval/">Longueval">http://www.habitant.org/longuev al/">Longueval Research Project </a> has established the connection, through Anne Couvent, into the royalty database.
                This site includes that ancestry.
                Anne Couvent is in your ancestry, have fun loking at some of our famous and infamous ancestors. </p>
                <li><div align="left">
                 <ul>
                  <li> <a href="pedigree.php?personID=I63070&amp;tree=v7_28"><img src="img/Chart.gif" class="chartimg" alt="" /></a>  <a href="getperson.php?personID=I63070amp;tree=v7_28" class="pers" id="pI63070_tv7_28">Queen Cleopatra </a>  </li>
                  <li> <a href="pedigree.php?personID=I107713&amp;tree=v7_28"><img src="img/Chart.gif" class="chartimg" alt="" /></a>  <a href="getperson.php?personID=I107713&amp;tree=v7_28" class="pers" id="pI185929_tv7_28">Alexander the Great</a>  </li>     
                  <li> <a href="pedigree.php?personID=I186817&amp;tree=v7_28"><img src="img/Chart.gif" class="chartimg" alt="" /></a>  <a href="getperson.php?personID=I186817&amp;tree=v7_28" class="pers" id="pI186817_tv7_28">Attila the Hun</a>  </li>
                  <li> <a href="pedigree.php?personID=I83464&amp;tree=v7_28"><img src="img/Chart.gif" class="chartimg" alt="" /></a>  <a href="getperson.php?personID=I83464&amp;tree=v7_28" class="pers" id="pI83464_tv7_28">Charlemagne</a>  </li>
                  <li> <a href="pedigree.php?personID=I185929&amp;tree=v7_28"><img src="img/Chart.gif" class="chartimg" alt="" /></a>  <a href="getperson.php?personID=I185929&amp;tree=v7_28" class="pers" id="pI185929_tv7_28">King Louis XIV</a>  </li>


                 </ul>
                  </div></li>
               <p> Here are some links showing noble ancestors as they are related to me </p>

                  <ul><li>
                  <div align="left"><a href="rulers/rulers_france.php">Rulers of France</a></div>
                </li>
                <li>
                  <div align="left"><a href="rulers/rulers_germany.php">Rulers of Germany</a></div>
                </li>
                <li>
                  <div align="left"><a href="rulers/rulers_hre.php">Rulers of theHoly Roman Empire</a></div>

                </li>
                <li>
                  <div align="left"><a href="rulers/rulers_italy.php">Rulers of Italy</a></div>
                </li>
                <li>
                  <div align="left"><a href="rulers/rulers_visigoths.php">Rulers of the Visigoths</a></div>
                </li>
                <li>

                  <div align="left"><a href="rulers/rulers_franks.php">Rulers of the Franks</a></div>
                </li>
               
                 </ul>
                 <p>  </p>
                 <span class="style26o">Please note: this is not complete and is included for the user to see their potential relationship to past nobility
                      The nobility database is far from the primary focus of the site and will not be supported other than the correction of errors.</span></div>
                    </td>
                
              <td>

               <div class="header">
                          <?php echo $text['welcome']; ?>!
               </div>
               <div class="normal">
                  <img src="<?php echo $cms['tngpath'] . $templatepath; ?><?php echo $tmp['t5_mainimage']; ?>" alt="" style="float:right" class="indexphoto" width="300"  /><br /><br />
                 <p>Welcome to the genealogy site devoted to Voyer and Bedard ancestry. Why Voyer and Bedard? My father was a Voyer. My mother a Bedard

                 I believe that this is the largest compilation of Voyers with 4000+ and 24,000+ Bedards. I hope that it will be useful to those looking for their heritage.</p>

                 </p>I am indebted to my cousin Jacqueline TIERNAN Poudrier for her tireless research and contributions to this site. </p>


                 <p>If you have any questions or comments about the information on
                 this site, <a href="suggest.php">please contact us</a>.
                 We look forward to hearing from you.</p>
                 <ul>
                  <?php
                   if(!$currentuser) {
                    if(!$tngconfig['disallowreg'])
                     echo "<li><a href=\"newacctform.php\">{$text['mnuregister']}</a></li>\n";
                    echo "<li><a href=\"login.php\">{$text['mnulogon']}</a></li>\n";
                   }
                   else {
                    echo "<li><a href=\"logout.php\">{$text['mnulogout']}</a></li>\n";
                   }
                   if($chooselang)
                    echo "<li><a href=\"changelanguage.php\">{$text['mnulanguage']}</a></li>\n";
                  ?>
                 </ul>
                 <p></p>
                 <div>
                 <div class="header">
                          <p>DNA Genealogy</p>
               </div>
               <p></p>
                 <p>DNA technology allows us another way to investigate our ancestry, especially with regard to lines that have been difficult or even impossible to resolve as is our case with the lack of records in France.<p></p> 
            There are many ways to test and analyze DNA, but there are two particular kinds of DNA testing that are especially useful in genealogy:  Y-chromosome DNA (Y-DNA) testing and mitochondrial DNA (mtDNA) testing.  The genealogical usefulness of these two DNA tests is based on two aspects of human inheritance:

               <ol>
               <li>  that the Y chromosome is passed on only by the father</li>
               <li>  that mitochondria are passed on only by the mother</li>
               </p>
               <p>Both a VOYER and a BEDARD DNA project have been created and can reached through the links below. Please make sure that the person submitted for DNA tests is in our dtabase so that we can determine the earliest ancestor.
               If you are submitting for a mitochondrial DNA test, please contact us so that we can attempt to trace your maternal pedigree.
                      <div class="subheader"><span class="style41"><a href="Voyer" _mce_href="http://www.worldfamilies.net/surnames/voyer">Voyer">http://www.worldfamilies.n et/surnames/voyer">Voyer DNA Project</a> <a href="Bedard" _mce_href="http://www.worldfamilies.net/surnames/bedard">Bedard">http://www.worldfamilies .net/surnames/bedard">Bedard DNA Project</a></span></div>
                <div>
                </td>
               
              </div>
              <td> </td>
                    <td class="rightcontent">
                <div class="language_box">
                 <?php
                  if($chooselang) {
                   $query = "SELECT languageID, display, folder FROM $languages_table ORDER BY display";
                   $result = mysql_query($query) or die ($text['cannotexecutequery'] . ": $query");
                   $numlangs = mysql_num_rows( $result );

                   if($numlangs > 1) {
                    echo getFORM( "savelanguage2", "get", "tngmenu3", "" );
                    echo "<select name=\"newlanguage3\" id=\"newlanguage3\" style=\"font-size:11px;\" onchange=\"document.tngmenu3.submit();\">";

                    while( $row = mysql_fetch_assoc($result)) {
                     echo "<option value=\"{$row['languageID']}\"";
                     if( $languages_path . $row['folder'] == $mylanguage )
                      echo " selected=\"selected\"";
                     echo ">{$row['display']}</option>\n";
                    }
                    echo "</select>\n";
                    echo "<input type=\"hidden\" name=\"instance\" value=\"3\" /></form>\n";
                   }

                   mysql_free_result($result);
                  }
                  echo "</p>\n";
                 ?>
               </div>
               <form action="search.php" method="get">
                <table class="indexbox">
                 <tr>
                  <td class="padding"><span class="boxback"><?php echo $text['mnulastname']; ?>:<br />
                   <input type="text" name="mylastname" class="searchbox" size="14" /></span></td></tr>

                   <tr><td class="padding"><span class="boxback"><?php echo $text['mnufirstname']; ?>:<br />
                   <input type="text" name="myfirstname" class="searchbox" size="14" /></span>
                  </td>
                 </tr>
                 <tr>
                  <td class="padding"><span class="normal"><input type="hidden" name="mybool" value="AND" />
                  <input type="submit" name="search" value="<?php echo $text['mnusearchfornames']; ?>" class="small" /><br /><br />
                  <?php
                   echo "<a href=\"surnames.php\" class=\"lightlink2\">{$text['mnulastnames']}</a><br />\n";
                   echo "<a href=\"searchform.php\" class=\"lightlink2\">{$text['mnuadvancedsearch']}</a>\n";
                  ?></span>
                  </td>
                 </tr>
                </table>
               </form>
               <p></p>
               <div class="help">
               <div class="subheader">Can You Help?</div>
               <p></p>
                <p.request>Can you make yourself available to translate correspondence and site content into French?.</p>
                <p.request>Do you read the Obituaries? If you find BEDARD and VOYER obituaries (links or scans)? </p>
                <p.request>Are you a BEDARD or VOYER and not in our database? </p>
                <p.request>Are you interested in being part of the site research or development team?
                <p> </p><a href="suggest.php">please contact us</a>..</p>
               </div>
              </td>
                  </tr>
                </table>
                </td>
              </tr>
              <tr>
                <td colspan="6" class="row12"></td>
              </tr>
              <tr>
              <div class="c3"></div>
            </td>
            </tr>

            </table>
            <br />
            <div>
              <br />
               
              <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
              <div align="center">

              <input type="hidden" name="cmd" value="_s-xclick" />
              <input type="hidden" name="hosted_button_id" value="1942114" />
              <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="" />
              <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
              </div>
            </form>
            </div>
            </td></tr>
            <tr><td class="tableheader"><img src="img/spacer.gif" width="25" height="25" alt="" /></td></tr></table>

            <div class="footer small">
            <br />

            This site powered by <a href="http://lythgoes.net/genealogy/software.php" class="footer">The Next Generation of Genealogy Sitebuilding</a> &copy;, v. 8.1.3, written by Darrin Lythgoe 2001-2012.
            <br /><br />
            Voyer & Bedard Genealogy &copy; Larry Voyer 2008-2012.
            <br /><br />
            <span class="sitecounter">Unique visitors since January 1, 2012: </span>
                 <div>

                    <!-- Start of StatCounter Code for Default Guide -->
               <script type="text/javascript"> var sc_project=7546502; var sc_invisible=0; var sc_security="d0ac87ac"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script>
               <noscript><div class="statcounter"><a title="web counter" href="http://statcounter.com/free-hit-counter/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/7546502/0/d0ac87ac/0/" alt="web counter"></a></div></noscript>
              <!-- End of StatCounter Code for Default Guide -->
            </div>
            </div> <!-- end of footer div -->
            </div> <!-- end of center div -->

            <script type="text/javascript">
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
            </script>
            <script type="text/javascript">
            try {
            var pageTracker = _gat._getTracker("UA-2104283-2");
            pageTracker._trackPageview();
            } catch(err) {}</script>
            <!-- end footer.php for template 5--><script type="text/javascript" src="js/litbox.js"></script>

            </div> <!-- end of center div -->
            </body>

            </html>

             

            Regardless, thank you for responding and helping.

             

            Larry Voyer

            Site Creator/Administrator

            http://larryvoyer.com/genealogy/

            • 3. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
              John Waller CommunityMVP

              larryvoyer wrote:

               

              I bought CS5 specifically to see my code in design view, You've just said that I wasted my social security money.

               

              No, Nancy is explaining some technical aspects of PHP pages. You're drawing rather extreme, and unwarranted, conclusions.

               

               

              larryvoyer wrote:

               

              Here is the code of the page that I wanted to see in design view

               

              The code you've posted in incomplete e.g. no <head> section.

               

              Is that everything?

               

              Nevertheless, I copy and pasted your code into DW CS5 and could see the basic elements of the page in Design View. Your CS5.5 should be no different.

               

              If you want the PHP to be processed then you need to set up a testing server on your PC.

              • 4. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                larryvoyer Community Member

                Hi John,

                 

                thank you for your reply. I've been fighting this since I purchased CS5. First of all, I copied the wrong window. Here is the code that, when I run http://localhost/genealogy/index.php shows properly on the browser.

                 

                <?php
                include_once("begin.php");
                include_once($subroot . "templateconfig.php");
                include_once($cms['tngpath'] . "genlib.php");
                include_once($cms['tngpath'] . "getlang.php");
                include_once($cms['tngpath'] . "$mylanguage/text.php");
                tng_db_connect($database_host,$database_name,$database_username,$database_password) or exit;
                include_once($cms['tngpath'] . "checklogin.php");

                //Insert the following lines in your index.php to take advantage of template switching
                if($templateswitching && $templatenum) {
                include($cms['tngpath'] . "templates/template$templatenum/index.php");
                exit;
                }
                //end of lines to be inserted for template switching

                $flags['noicons'] = true;
                $flags['noheader'] = true;
                tng_header( $text['mnuheader'], $flags );
                ?>

                <!-- "Home Page" (the text for these messages can be found at near the bottom of text.php -->
                <h1><?php echo $text['mnuheader']; ?></h1>

                <?php
                if( $currentuser ) {
                  echo "<p><strong>{$text['welcome']}, $currentuserdesc.</strong></p>\n";
                }
                ?>

                <h2><?php echo $text['mnusearchfornames']; ?></h2>
                <!-- Do not change the form action or field names! -->
                <form action="search.php" method="get">
                <table border="0" cellspacing="5" cellpadding="0">
                <tr><td><span class="normal"><?php echo $text['mnulastname']; ?>: </span><br/><input type="text" name="mylastname" size="14"></td></tr>
                <tr><td><span class="normal"><?php echo $text['mnufirstname']; ?>:</span><br/><input type="text" name="myfirstname" size="14"></td></tr>
                <tr><td><input type="hidden" name="mybool" value="AND" /><input type="hidden" name="offset" value="0" /><input type="submit" name="search" value="<?php echo $text['mnusearch']; ?>" /></td></tr>
                </table>
                </form>

                <h2><?php echo $text['mnufeatures']; ?></h2>

                <ul>
                <?php
                if( $currentuser ) {
                  //this means you're logged in
                  echo "<li><a href=\"logout.php\">{$text['mnulogout']}</a></li>\n";
                }
                else {
                  //this means you're logged out
                  echo "<li><a href=\"login.php\">{$text['mnulogon']}</a></li>\n";
                }
                echo "<li><a href=\"newacctform.php\">{$text['mnuregister']}</a></li>\n";
                echo "<li><a href=\"searchform.php\">{$text['mnuadvancedsearch']}</a></li>\n";
                echo "<li><a href=\"surnames.php\">{$text['mnulastnames']}</a></li>\n";
                echo "<li><a href=\"bookmarks.php\">{$text['bookmarks']}</a></li>\n";
                echo "<li><a href=\"browsetrees.php\">{$text['mnustatistics']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=photos\">{$text['mnuphotos']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=histories\">{$text['mnuhistories']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=documents\">{$text['documents']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=videos\">{$text['videos']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=recordings\">{$text['recordings']}</a></li>\n";
                echo "<li><a href=\"browsealbums.php\">{$text['albums']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php\">{$text['allmedia']}</a></li>\n";
                echo "<li><a href=\"cemeteries.php\">{$text['mnucemeteries']}</a></li>\n";
                echo "<li><a href=\"browsemedia.php?mediatypeID=headstones\">{$text['mnutombstones']}</a></li>\n";
                echo "<li><a href=\"places.php\">{$text['places']}</a></li>\n";
                echo "<li><a href=\"browsenotes.php\">{$text['notes']}</a></li>\n";
                echo "<li><a href=\"anniversaries.php\">{$text['anniversaries']}</a></li>\n";
                echo "<li><a href=\"reports.php\">{$text['mnureports']}</a></li>\n";
                echo "<li><a href=\"browsesources.php\">{$text['mnusources']}</a></li>\n";
                echo "<li><a href=\"browserepos.php\">{$text['repositories']}</a></li>\n";
                echo "<li><a href=\"whatsnew.php\">{$text['mnuwhatsnew']}</a></li>\n";
                echo "<li><a href=\"mostwanted.php\">{$text['mostwanted']}</a></li>\n";
                echo "<li><a href=\"changelanguage.php\">{$text['mnulanguage']}</a></li>\n";
                if( $allow_admin ) {
                  echo "<li><a href=\"showlog.php\">{$text['mnushowlog']}</a></li>\n";
                  echo "<li><a href=\"admin.php\">{$text['mnuadmin']}</a></li>\n";
                }
                echo "<li><a href=\"suggest.php\">{$text['contactus']}</a></li>\n";
                ?>
                </ul>

                <p><strong>Please customize this page!</strong></p>

                </body>

                </html>

                 

                I have a local WAMP server that I believe I have set up as a testing server. When I first started, I kept getting the "Dynamically-related files could not be resolved" message. Now I don't get that...just blanked-out Split and Design view; as well as "Live Code". I've tried posting elsewhere; but the last posts were a couple years ago...so I guess no one looks at them.

                 

                John, anything that you can tell me to get me going would be very much apprecated.

                 

                Larry Voyer

                Site Creator/Administrator

                http://larryvoyer.com/genealogy/

                • 5. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                  Dave.Cox

                  I'd like to know the answer to this as well.  I have Dreamweaver on one PC where this works, and on another one where it doesn't  Since I normally work on the one where it doesn't work, imagine my surprise when I was working on one where it does work.  And, it works on that machine with the same files and web site as on my production machine, where it doesn't work.

                   

                  Dave

                  • 6. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                    Dave.Cox Community Member

                    OK, the good new is, I just figured this out.  Whoo hoo!

                     

                    While you have the page open, if you have and attached files, such as javascript or css files, click one of those secondary files to select it.  (If you don't have any files to click, add it by adding the script to include it.  For example: <link href="css/page_layout.css" rel="stylesheet" type="text/css" />.  After you add the code, then select the file to view from the link at the top of the page.  With the view selected, you will be able to select slipt view, or design view.  Then you can switch back to Source Code view, and the live view will work correctly. 

                     

                    Of course, you do have to have a testing server connected, or this still won't work.

                     

                    Dave.

                    • 7. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                      larryvoyer Community Member

                      Thanks, Dave

                       

                      That worked for me also...I received no support from DW ("we're not trained on testing servers". "this is not a support topic", "visit the forums", etc). You're the first to have solved this issue.

                       

                      I can't believe that this was by design. It's got to be a bug.

                       

                      Once again...thanks for letting us know after to bumped into the solution!!

                       

                      Larry Voyer

                      Site Creator/Administrator

                      http://larryvoyer.com/genealogy/

                      • 8. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                        vadams7227

                        I am having the same problem with a greyed out Design View screen after changing the Google analytics code on my web pages. After noticing the problem I copied the old code back because I thought I must have deleted something I shouldn't have. But I'm having the same problem with the old code.

                         

                        I designed the web site in CS3 and never had any problems. I've been using CS5.5 for a few months with no problem and now the design view just shows a grey screen. Live view renders the image fine and I don't see any problems with the site on the internet. The web page is located at http://www.global-gpr.com/ground-penetrating-radar.html.

                         

                        I'm relatively new at web design and not sure what the above suggestion "you do have to have a testing server connected, or this still won't work" means. So I wasn't able to resolve the issue by clicking on the javascript or css file. I was able to render the web page in Design View in the past without being connected to any server. So I'm not sure why I need to be connected to a server now to see my web page in Design View.

                         

                        Hopefully someone can help me out with this.

                         

                        Thank you in advance for your assistance.

                        Vic Adams

                        • 9. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                          Nancy O. CommunityMVP

                          Hi Vic,

                          A local testing server is only necessary to preview dynamic (PHP) pages locally.  It's not a requirement to preview static (plain HTML) pages.

                           

                          If you're being directed to your remote site when previewing,  this tells me that your site definition (Sites > Manage Sites > Edit...) is set to "automatically upload files when saving."  You should never enable this option because accidents do happen.  Saving & uploading a bad file could result in a broken web site.

                           

                          As to why your page isn't displaying in Design View,  Go to View > disable "Display External Files."

                           

                          Also, run your code through validation and fix reported errors.  You can skip the ones related to your Flash code as they never validate. 

                          http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.global-gpr.com%2Fground-penet rating-radar.html

                           

                          Finally, Name and ID values must never contain spaces.  You have "blog button" which is not valid code. Use either "blog-button" or blog_button" instead.

                           

                          Hope this helps,

                           

                           

                          Nancy O.

                          Alt-Web Design & Publishing

                          Web | Graphics | Print | Media  Specialists 

                          http://alt-web.com/

                          http://twitter.com/altweb

                          http://alt-web.blogspot.com/

                          • 10. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                            vadams7227 Community Member

                            I jsut loaded an old HTML file that previously I had no problems resolving in Design View and I am still only seeing a grey screen in Design View. Therefore, I must have inadvertantly clicked on something in Dreamweaver which stops it from displaying the image of the page in Design View.

                             

                            Here is an image of what I see...

                            desk_view.jpg

                            • 11. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                              vadams7227 Community Member

                              Nancy,

                               

                              Thank you for taking the time to help me resolve my problem. In response to your suggestions...

                               

                              I'm only running static HTML files so the suggestion by Dave (above) to have a testing server connected doesn't apply to me.

                               

                              I'm not being directed to my remote site when previewing (that I know of). I went to... Sites > Manage Sites > Edit... and I don't see a setting in CS5  to "automatically upload files when saving." I don't think I would have selected this option when I designed the site in CS3.

                               

                              I went to... View > disable "Display External Files and unchecked it. However, that didn't seem to resolve my issue.

                               

                              I ran the web page through the Valadation checker. Ignored the flash errors as per your reccomendation. I removed the blank space and changed the name & id values in line 142 to "blog-button". I also resolved the </span> error on line 162. Saved the file and I still have the grey screen.

                               

                              I used to have nighmares about the Microsoft's blue screen of death. Now it looks like I will be dreaming about Dreamweaver's grey screen!

                               

                              Since I still have the same problem any other suggestions would be greatly appreciated.

                               

                              Thanks,
                              Vic

                              • 12. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                                Dave.Cox Community Member

                                Vic,

                                 

                                You are correct, that my comments do not apply to you, for just an html page.  The comments that I made were for viewing php code with live view.  where the live view, and design buttons were grayed out.

                                 

                                You are experiencing a completly different problem.  I've also seen this problem as well.  The problem that you are experiencing, if I understand you correctly, is that you can not get the code page to display at all.  Try completly closing out dreamweaver, and restarting it.  Your code window should be restored.  At least, that has been my experience.

                                 

                                I hope this helps you,

                                Dave.

                                • 13. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                                  vadams7227 Community Member

                                  Dave, thanks for the suggestion. I tried closing Dreamweaver and even rebooting the computer. It didn't make any difference. I still get the grey screen in Design View.

                                   

                                  Regards,

                                  Vic

                                  • 14. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                                    Wilded1

                                    I would just like to reopen this discussion as  I to have experianced the same issue.

                                     

                                    A PHP document is simply an HTML document having the .php extension which allows us to embed php code within said document and the web server that processes it to first have the PHP server parse the php code within it before delivering the resultant HTML output to the client browser.

                                         So if a new blank php document is created in Dreamweaver, what is produced is an html document with a .php extension; it has doctype, html, head, title and body tags just the same as a standard HTML document would have and it should be viewable in design view; but isn't.

                                     

                                    As a college tutor for web design using Dreamweaver; I have versions CS4, CS5, CS5.5 and CS6 installed and available to me.

                                     

                                    This problem is only occuring in my versions CS6,  this problem is not displayed in any of the ealier version I have got installed.

                                     

                                    The issue is, that when a php document is created (or one is opened for editing), it can only be displayed in code view; the Split & Design view buttons are greyed out and not selectable.

                                     

                                    Below is the code created by my version of Dreamweaver CS6 for the new blank PHP page.

                                     

                                    Note that if you link an external file within the document and select that from list of related documents in the document toolbar, the Split and Design buttons  become available once again; even if you link a blank style sheet. See the image at the bottom of this post showing the how selecting a related exteranal file bring back the Split, Design and Live options in the documernt toolbar.

                                     

                                    <!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>Untitled Document</title>

                                    </head>

                                     

                                    <body>

                                    </body>

                                    </html>

                                     

                                    missing-design-view.jpg

                                    Let's hope it gets resolved sooner rather than never!

                                     

                                    Regards,

                                    David

                                    • 15. Re: PHP file in Split or Design View - greyed out,,,How do I fix?????Help!
                                      Nancy O. CommunityMVP

                                      I don't have the problem you describe in CS6 12.2 ver 6006.

                                      However, I do use a local testing server (WAMP) whenever I'm working with PHP files.  See screenshots:

                                       

                                      CS6-testingServer1.jpg

                                       

                                      CS6-testing-server-advanced.jpg

                                       

                                      CS6-testingServerFinalScreen.jpg

                                       

                                       

                                      Nancy O.