JavaScript
  Home arrow JavaScript arrow Using Click Interceptions with a Database-...
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

Using Click Interceptions with a Database-Driven Application
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-11-19

    Table of Contents:
  • Using Click Interceptions with a Database-Driven Application
  • Fetching user-related data with MySQL
  • Visualizing multiple user detail pages in the same web document
  • The full source code of the improved MySQL-driven 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


    Using Click Interceptions with a Database-Driven Application


    (Page 1 of 4 )

    One of the most popular approaches used for extending the behavior of database-driven web applications is one widely known as click interception. In case you’ve not heard about it yet, this useful technique consists of using JavaScript to change the default behavior of an element included in a web page when a user clicks on it. This technique expands the element's functionality; it is covered in detail in this four-part series. This article is the third part.

    Introduction

    Of course, if you've developed JavaScript applications that utilize a few "onclick" event handlers as part of the pertinent programming logic, then it's quite possible that you've already used the concept of "click interception" without being aware of this. However, the best way to understand the foundations of this client-side approach is by means of a step-by-step guide that shows you how to apply it in real-word situations.

    This series of articles provides you with numerous hands-on examples that will help you grasp very quickly how to utilize click interceptions in JavaScript to improve the functionality of some popular web applications. These include image galleries, interactive web forms, and a few others as well.

    Having introduced you to the subject of this series, I assume that at this point you've become pretty familiar with using click interceptions to extend the behavior of certain web applications -- after all, in the two preceding articles of the series, I taught you how to utilize this approach to submit and validate a conventional web form via Ajax, and to improve the existing functionality of a basic image gallery.

    While the aforementioned examples were admittedly quite simplistic, they did demonstrate in a nutshell how useful click interceptions can be when used intelligently. Nonetheless, as I stated in the beginning, this JavaScript-based technique can be utilized in many other cases.

    Therefore, based on the versatility offered by click interceptions, in this third chapter of the series, I'm going to teach you how to apply them to extend the behavior of a simple MySQL-driven web application. This application fetches a few user-related records from a database table and displays detailed information on these users in a different window. In this case, the click interception approach will be used to modify the way that the detail web pages are created, in this way extending their functionality.

    Now, let's learn together how to utilize click interceptions to enrich the behavior of the aforementioned MySQL-driven web application. Let's get started!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This third chapter of the series goes one step further and discusses the use of...
     

    JAVASCRIPT ARTICLES

    - More on JavaScript Array Objects
    - Methods of the DOM Location Object
    - The DOM Location Object Properties
    - Handling Remote Files with JavaScript Click ...
    - 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...


     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     





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