JavaScript
  Home arrow JavaScript arrow Page 4 - Building the User Interface for an AJAX-Ba...
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? 
JAVASCRIPT

Building the User Interface for an AJAX-Based Network Processor
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2006-12-19

    Table of Contents:
  • Building the User Interface for an AJAX-Based Network Processor
  • Creating the application's graphical user interface
  • Writing some functional client-side code
  • Polishing the networking application's look and feel
  • Listing the full client-side code that corresponds to the networking application

  • 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


    Building the User Interface for an AJAX-Based Network Processor - Polishing the networking application's look and feel


    (Page 4 of 5 )

    As you can imagine, improving the visual appearance of this application's front-end is really a straightforward process that can be achieved with minor hassles. The mentioned procedure is reduced only to including some CSS declarations to lay out the different areas that comprise the corresponding user interface. These declarations also apply a more pleasant format to the respective query buttons.

    That being said, here is the group of CSS declarations that I decided to attach to the previous (X)HTML document to improve the overall look and feel of this networking application:

    <style type="text/css">

    body{

                padding: 0;

                margin: 0;

                background: #fff;

    }

    h1{

                font: bold 24px Arial, Helvetica, sans-serif;

                color: #000;

                text-align: center;

                margin: 10px;

    }

    #maincontainer{

                width: 500px;

                height: 400px;

                background: #eee;

                padding: 5px;

                margin-left: auto;

                margin-right: auto;

                border: 1px solid #000;

    }

    #paramcontainer{

                padding: 5px;

                margin-bottom: 5px;

                background: #f5ebb1;

                font: bold 12px Arial, Helvetica, sans-serif;

                color: #000;

                border: 1px solid #999;

    }

    #leftpanel{

                float: left;

                width: 100px;

                height: 350px;

                padding: 5px;

                background: #f5ebb1;

                font: bold 12px Arial, Helvetica, sans-serif;

                color: #000;

                border: 1px solid #999;

    }

    #centerpanel{

                float: left;

                width: 254px;

                height: 350px;

                padding: 5px;

                margin-left: 5px;

                background: #ccc;

                overflow: auto;

                font: bold 12px Arial, Helvetica, sans-serif;

                color: #000;

                border: 1px solid #999;

    }

    #rightpanel{

                float: right;

                width: 100px;

                height: 350px;

                padding: 5px;

                background: #f5ebb1;

                font: bold 12px Arial, Helvetica, sans-serif;

                color: #000;

                border: 1px solid #999;

    }

    .databox{

                width: 348px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .controlbutton{

                width: 100px;

                margin: 3px 0 3px 0;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

                text-align: center;

    }

    </style> 

    If you spend a short time studying the above CSS declarations, then you'll realize that they're indeed easy to grasp. Basically, all that these style rules do is create the layout for all the distinct containing areas of the mentioned web interface, in addition to improving the look and feel of the different query buttons. Also, I styled a <h1> element to format the title of the application, but you can easily skip over this step and pay attention to more important topics.

    All right, at this point you saw how the different pieces that comprise the front-end of this AJAX-based networking application have been created separately. Therefore, I think that it's time to move forward and see how both the previous (X)HTML and CSS declarations can be integrated into the same file, in this way getting the user interface completed.

    Logically, this interesting topic will be discussed in the last section of this article, thus keep reading to learn more.

    More JavaScript Articles
    More By Alejandro Gervasio


       · Want to learn how to build a simple networking application with AJAX? Then, this...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






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