HTML
  Home arrow HTML arrow Page 3 - Using HTML-Kit to Debug Server-Side Script...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Using HTML-Kit to Debug Server-Side Scripts
By: Peter Lavin
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2004-06-07

    Table of Contents:
  • Using HTML-Kit to Debug Server-Side Scripts
  • Getting Started
  • Basics
  • View Source and Validate

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using HTML-Kit to Debug Server-Side Scripts - Basics


    (Page 3 of 4 )

    Something that you might want to pay immediate attention to is the file format setting on the "Save" tab of the preferences window. If you know that the server you are planning to upload your files to runs on a Linux or UNIX platform, then be sure to choose the UNIX file format. The reason for this is that different operating systems handle the return key in different ways. If you save your files in Windows format and later download them from a UNIX server, you will find that an extra carriage return has been inserted after each line. While this does not change your file's functionality, it can be annoying. As an additional note, having saved your HTML file in UNIX format, it will not display properly in Notepad. If you want to view it in a Windows text editor, use WordPad instead. If you do save it from WordPad, make sure you save it in text format.

    I'll just point out that you can quickly access commonly performed tasks by adding them to "Favorites". If you right click a button on any one of the elements in the Actions Bar (the tabbed strip below the tool bar), a pop-up menu allows you to add this item to your favorites. When you become familiar with HTML-Kit and find that you repeatedly use certain capabilities, you will really appreciate this feature.

    Exploring the other settings will certainly improve your efficiency with this tool but these are really the only settings you may need to worry about here.

    Set Up the Server

    Html-Kit needs to know where your server is located if it is going to process your server-side scripts. Again, this is configured from the "Preferences" menu option so open the preferences window and choose the "Preview" tab. In the frame entitled "Preview Rules" make sure that the "Enable Server Mappings" box is checked. Having done that, click the "Edit Preview Rules" button. Here you will add a server mapping. Clicking the "Add" button will open a dialog window and you will be able to add a File Path and a server address. If you are running IIS or PWS on your local machine the file path will be "C:Inetpubwwwroot". For the server address put "http://<your computer name>/" substituting the appropriate value for "your computer name" or, if you like, you may use "localhost". Make sure you click "Okay" to save your preferences. Now, whenever you preview files that are in a directory at or below the root directory of your server, they will be processed by your server. If your server-side script generates HTML the server will create it when you preview a file.

    File Associations

    From the preferences window, choose the "Programs" tab. In the "Windows Integration" frame, click the button with the caption "File Associations, Explorer ...". For the "Internet Explorer (IE) 5+ Integration" option make sure that the "Use to View Source" box is checked. This will ensure that when we preview a file in HTML-Kit and then choose to view the source code of a page it will also be shown in HTML-Kit. Since we've already told HTML Kit to run this file through our local server, any server-side scripting will have been processed and output as HTML.

    More HTML Articles
    More By Peter Lavin


     

    HTML ARTICLES

    - Using a 3D HTML Table as a Recordset
    - Building a 3D HTML Table
    - Maximizing and Restoring HTML Images: Layer ...
    - Completing Construction of a Database Form w...
    - Maximizing and Restoring Images in a Tabular...
    - Building the Recordset for an HTML Database ...
    - Laying Out a Database Form with HTML
    - Tabular Database Form Functions with HTML
    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT