Javascript Upload Events

Home Download Demo Contact Us
Home
 :: About Us
 :: Services
 :: Contact Us
Products
 :: Rad SFTP
 :: Rad Upload
 :: MMS
 :: Print Suite
 :: Card Designer
Demo
FAQs
Partners
Press
Members
Buy Now

Upload Events and Javascript

Documentation

Applet Configuration

Developer FAQ

Session Management

Enhanced File Selection

GZip Compression

Both the Standard and Plus editions of Rad Upload can now be configured to call a javascript method once upload has been completed. The signature of this function should be:

function uploadCompleted();

The applet itself exposes two methods which can be called by javascripts and their signatures are as follows:

public int getUploadStatus();
public String getResponse();

getUploadStatus() will return 1 (one) if the file transfer completed successfully. This method should only be called from the uploadCompleted() funtion because the return value has no real meaning if an upload is currently in progress

In the case of an HTTP transfer; the getResponse() method will return the exact response returned by your server side handler script minus the headers. When operating in FTP mode the return value will be a listing of the contents of the folder where the files have been placed.

The download bundle includes a file named script.js which includes a sample uploadCompleted() function. You can modify this script to suite your requirements.

See Also : How to collect user input with an HTML form

 

  Quick Navigator }  
Learn More,   Online Demo,   Q & A,   Docs,  
Download,   Features & Pricing,   Source Code

 

 

Site Map  |  About us  |  Services  |  Contact Us  |  Members

Copyright 2009 Rad Inks (Private) Limited. All Rights Reserved.

Privacy Policy   |  Terms of Use