Download This Article
Download this article in PDF format with all listings and files.
Price: $5.00 AUD
(Approx. $4.45 USD)
More information
Related Books
By David Powers
With over 3 million users worldwide, Adobe's Dreamweaver is the most popular web development...
By Cristian Darie, Bogdan Brinzarea, Filip Chereches-Tosa, Mihai Bucica
Building Responsive Web Applications with AJAX and PHP is the most practical and efficient...
Browse Articles
Ajax (4),
APC (1),
CAPTCHA (1),
CSS (3),
Debugging (1),
File Upload (1),
Google (3),
Google Maps (2),
JavaScript (11),
JSON (2),
MVC (1),
MySQL (6),
onbeforeunload (1),
OOP (1),
PHP (27),
PhpDoc (1),
PostgreSQL (6),
Prototype (10),
Reflection (1),
RFC 1867 (1),
Robots (1),
Scriptaculous (1),
SEO (1),
Sessions (1),
SimpleXML (1),
Smarty (5),
SOAP (1),
SPL (1),
Templates (2),
W3C (1),
XHTML (1),
Zend Framework (1),
Zend_Search_Lucene (1)
|
Home »
Articles »
Monitoring File Uploads using Ajax and PHP
Monitoring File Uploads using Ajax and PHP
Instantiating the FileUploader JavaScript Class
The final step in making this code work is to actually instantiate the FileUploader JavaScript class. To do this we implement the upload.js file that was loaded in index.php.
All this code does is wait until the page has finished loading then instantiates the class with the appropriate parameters (the ID values for the form and the status container).
Listing 18 Instantiating the FileUploader JavaScript class once the page has loaded (upload.js)
Event.observe(window, 'load', function() {
new FileUploader('theForm', 'status');
});
|
In This Article
|
|