Advertisement
sheivin

Untitled

Nov 3rd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <script src="http://code.jquery.com/jquery-latest.min.js"></script>
  5.     <title>Matrix Visualizer</title>
  6.   </head>
  7.  
  8.   <body onload="load_first_file()">
  9.     <script type="text/javascript">
  10.       function load_first_file () {
  11.         $.ajax('RAP_8.ij.00000', {
  12.             datatype: 'text',
  13.             success: process_first_file
  14.         });
  15.       }
  16.  
  17.       function process_first_file(data) {
  18.         console.log(data);
  19.         load_second_file();
  20.       }
  21.  
  22.       function load_second_file () {
  23.         $.ajax('RAP_8.ij.00001', {
  24.             datatype: 'text',
  25.             success: process_second_file
  26.         });
  27.       }
  28.  
  29.       function process_second_file(data) {
  30.         console.log(data);
  31.         load_third_file();
  32.       }
  33.  
  34.       function load_third_file () {
  35.         $.ajax('RAP_8.ij.00002', {
  36.             datatype: 'text',
  37.             success: process_third_file
  38.         });
  39.       }
  40.  
  41.       function process_third_file(data) {
  42.         console.log(data);
  43.         load_fourth_file();
  44.       }
  45.  
  46.       function load_fourth_file () {
  47.         $.ajax('RAP_8.ij.00003', {
  48.             datatype: 'text',
  49.             success: process_fourth_file
  50.         });
  51.       }
  52.  
  53.       function process_fourth_file(data) {
  54.         console.log(data);
  55.         console.log("Hello World!");
  56.       }
  57.  
  58.     </script>
  59.   </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement