JavaScript
  Home arrow JavaScript arrow Page 3 - 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 - Writing some functional client-side code


    (Page 3 of 5 )

    If you're anything like me, you want to learn how the image that you saw in the previous section can be turned into functional markup code. Below I listed the basic (X)HTML code that displays the friendly user interface discussed a few lines before. Have a look at it, please:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-
    8859-1" />

    <title>AJAX-based Networking Processor</title>

    </head>

    <body>

    <h1>AJAX-BASED NETWORKING PROCESSOR</h1>

    <div id="maincontainer">

    <form>

    <div id="paramcontainer">

    Host Name/ IP Address <input type="text" name="data"
    class="databox"></input>

    </div>

    <div id="leftpanel">

    <input type="button" name="host" value="Host to IP"
    class="controlbutton" title="Covert Hostname to IP
    address"></input>

    <input type="button" name="ip" value="IP to Host"
    class="controlbutton" title="Convert IP address to
    Hostname"></input>

    <input type="button" name="iplist" value="IP List"
    class="controlbutton" title="Retrieve IP list"></input>

    <input type="button" name="ping" value="Ping"
    class="controlbutton" title="Execute ping command"></input>

    <input type="button" name="ipconfig" value="IP Config"
    class="controlbutton" title="Execute ipconfig command"></input>

    <input type="button" name="netstat" value="Netstat"
    class="controlbutton" title="Execute netstat command"></input>

    </div>

    <div id="centerpanel"></div>

    <div id="rightpanel">

    <input type="button" name="mxrec" value="MX Records"
    class="controlbutton" title="Retrieve MX records"></input>

    <input type="button" name="servports" value="Service Ports"
    class="controlbutton" title="Retrieve service ports"></input>

    <input type="button" name="servnames" value="Service Names"
    class="controlbutton" title="Retrieve service names"></input>

    <input type="button" name="scanport" value="Scan Port 80"
    class="controlbutton" title="Scan port 80"></input>

    <input type="button" name="whois" value="NS Records"
    class="controlbutton" title="Retrieve NS records"></input>

    <input type="button" name="reset" value="Clear Panel"
    class="controlbutton" title="Clear display panel"></input>

    </div>

    </form>

    </div>

    </body>

    </html> 

    As you'll realize, the above structural markup is really simple to understand. As I explained previously, the prior web document first displays a simple input box in which the user can enter the name or IP address that corresponds to the host to be queried. Then it places the two columns that house the respective set of query buttons, and finally it renders the centered column where all the results are shown to different users.

    However, it should be noticed that the above (X)HTML markup isn't tied to any style sheet yet, so it looks somewhat primitive. To address this issue quickly, in the following section I'm going to include some straightforward styles in the corresponding web document to achieve a more polished look and feel, similar to the one shown in the previous screen shot.

    Are you curious about how this will be done? Read the next few lines to satisfy your appetite.

    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 6 hosted by Hostway
    Stay green...Green IT