JavaScript
  Home arrow JavaScript arrow JavaScript Remote Scripting: An AJAX-based...
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 
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

JavaScript Remote Scripting: An AJAX-based Random Code Generator in Action
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2005-10-26

    Table of Contents:
  • JavaScript Remote Scripting: An AJAX-based Random Code Generator in Action
  • Looking at existing functions: the “sendRequest()” and “stateChecker()” functions at a glance
  • Displaying random codes: defining the “createDataContainer()” function
  • Dynamic link generation: taking a look at the “createLinks()” function
  • Server-side processing: generating four-digit random codes with PHP
  • Putting the pieces together: showing the application’s complete code

  • 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


    JavaScript Remote Scripting: An AJAX-based Random Code Generator in Action


    (Page 1 of 6 )

    In this article, Alejandro Gervasio finishes his discussion of creating a random code generator. Going beyond the core functions, he defines the remaining JavaScript functions needed to turn the random code generator into a functional program.

    Welcome to part five of the series “JavaScript Remote Scripting.” As you probably know, this series goes through the implementation of different methods for working with JavaScript-based remote scripting, explaining its advantages and drawbacks, as well as demonstrating several examples, useful for integrating within existing web-based applications.

    Stepping back to the previous tutorial of this series, I explained the basics for developing a random code generator, in conjunction with its application in a concrete case: an article-rating system. With reference to this mechanism to generating server-side random challenge values, I’ve gone as far as setting up some core functions, aimed specifically at sending GET http requests in the background, as well as checking for their progress after they’ve been sent out.

    In an attempt to provide you with additional information about how the code generator works, I illustrated its functionality by showing some screenshots, together with the corresponding structural (X)HTML markup, to which the system will be applied. Hopefully these extra features will give you a clear idea of how this protecting application can be used in different scenarios.

    Now that I’ve refreshed the concepts explained through the previous part, it’s time to move forward to defining the remaining JavaScript functions that compose the application, in order to turn the random code generator into a functional program. So, let’s get started.

    More JavaScript Articles
    More By Alejandro Gervasio


       · Over the last part of the series, the remaining JavaScript functions that comprise...
     

    JAVASCRIPT ARTICLES

    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in
    - Active Client Pages at the Server
    - ACP Tab Web Page







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