Completing a Network Processor with AJAX
(Page 1 of 5 )
Looking for a comprehensive introduction to creating networking applications with AJAX? Then look no further, because you’ve come to the right place! Welcome to the concluding installment of the series “Creating a Network Processor with AJAX.” As you may have guessed, this series leads you through the development of a highly expansible networking application which uses the capacity of AJAX for sending queries in the background.
Provided that you already went through the first two articles of the series, I'm sure that you'll recall the different steps that I took to create the front-end of the application, and later the entire set of JavaScript functions for executing several queries on the web server. Of course, the type of networking operation to be performed remotely conformed to the button clicked by the user, something that closely resembles the functionality offered by any desktop application.
You should also remember that this AJAX-driven networking application was capable (at least theoretically) of performing all sort of useful tasks, like finding the IP address of a selected Internet host, searching for DNS records and scanning specific TCP ports, executing the popular "ipconfig" and "netstat" utilities that come bundled with Windows-based systems, and many more things.
However, in this case I purposely used the term "theoretically," since until now, the application wasn't capable of actually interacting with the server. The question is... why? Well, to speak frankly, the two previous articles of the series were focused on developing all the routines that run on the browser, and left untouched the corresponding server-side layer.
Therefore, in order to get this networking application completed, it's necessary to develop a PHP class that can perform all the tasks that are commanded from the client via AJAX. So, considering the situation that I just described, in this final tutorial I'm going to create the mentioned PHP class, which will have the appropriate methods for performing all the networking operations that I detailed before.
Ready to learn how this application will be finished? Okay, let's get going!
Next: Refreshing a previous topic: listing the application's full client-side code >>
More JavaScript Articles
More By Alejandro Gervasio