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

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


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.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 15
October 26, 2005
TABLE OF CONTENTS:
  1. · JavaScript Remote Scripting: An AJAX-based Random Code Generator in Action
  2. · Looking at existing functions: the “sendRequest()” and “stateChecker()” functions at a glance
  3. · Displaying random codes: defining the “createDataContainer()” function
  4. · Dynamic link generation: taking a look at the “createLinks()” function
  5. · Server-side processing: generating four-digit random codes with PHP
  6. · Putting the pieces together: showing the application’s complete code

print this article
SEARCH DEVARTICLES

JavaScript Remote Scripting: An AJAX-based Random Code Generator in Action
(Page 1 of 6 )

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.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials