asyncDownloaderApi.htm 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>JSAPI2::AsyncDownloader Api</title>
  5. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  6. <style type="text/css">
  7. #slider{position:absolute; left:20px; top:180px; width:420px; height:15px; clip:rect(0px 0px 15px 0px); background-color:#666699; text-align:left; color:#ffffff; font-size:12px;}
  8. #slider1{position:absolute; left:20px; top:280px; width:420px; height:15px; clip:rect(0px 0px 15px 0px); background-color:#666699; text-align:left; color:#ffffff; font-size:12px;}
  9. </style>
  10. <script type="text/javascript" src="api2.js"></script>
  11. </head>
  12. <body style="FONT-FAMILY: MS Shell Dlg 2;">
  13. <h2>AsyncDownloader API</h2>
  14. <h3>Methods:</h3>
  15. <input type="button" value="Download Media" onclick="AsyncDownloadMediaClicked();">&nbsp;&nbsp;URL:&nbsp;<input type="text" size="40" id="asyncdownloader_t_URL_in">&nbsp;&nbsp;Destination File:&nbsp;<input type="text" size="20" id="asyncdownloader_t_DestinationFile_in">
  16. <div id="progressbardiv"><h5 id="progressbar">Progress: </h5>
  17. <br>
  18. <div id="slider">0%</div>
  19. </div>
  20. <input type="button" value="Download Media" onclick="AsyncDownloadMediaClicked1();">&nbsp;&nbsp;URL:&nbsp;<input type="text" size="40" id="asyncdownloader_t_URL_in_1">&nbsp;&nbsp;Destination File:&nbsp;<input type="text" size="20" id="asyncdownloader_t_DestinationFile_in_1">
  21. <div id="progressbardiv1"><h5 id="progressbar1">Progress: </h5>
  22. <br>
  23. <div id="slider1">0%</div>
  24. </div>
  25. <input type="button" value="Download Multiple Medias" onclick="AsyncDownloadMultipleMediaClicked();"><br>&nbsp;&nbsp;URLs:&nbsp;<textarea cols="60" rows="10" id="multiple_urls"></textarea>
  26. <br>
  27. <h3>Events:</h3>
  28. <input type="button" value="Register For Downloader Events" id="downloaderRegister" onclick="downloaderRegisterClicked();">
  29. <input type="button" value="Unregister From Downloader Events" id="downloaderUnregister" onclick="downloaderUnregisterClicked();">
  30. <br>
  31. &nbsp;&nbsp;&nbsp;&nbsp;Callback function:&nbsp;<input readonly type="text" id="downloader_t_Callback" value="OnDownloaderEvents">
  32. <br><br>
  33. <b>Events Received</b>
  34. &nbsp;&nbsp;&nbsp;&nbsp;
  35. <a href="javascript:downloader_AreaCleared();"><small>clear</small></a>
  36. <br>
  37. <select size="10" id="downloader_s_Select" style="width: 100px" onchange="downloaderEventSelected();">
  38. <option>No Events</option>
  39. </select>
  40. <textarea rows="10" cols="40" id="downloader_ta_Area"></textarea>
  41. </body>
  42. </html>