load_all.erb 339 B

1234567891011121314
  1. <h2 class="title"><br><br><center>Loading Data</center></h2>
  2. <% ['accounts', 'regions', 'vpcs'].each do |ep| %>
  3. <script>
  4. $.get( "/load/<%= ep %>", function( data ) {
  5. $( ".result" ).html( data );
  6. $("#div<%= ep %>").html("<h4>" + data + "</h4>");
  7. });
  8. </script>
  9. <div id="div<%= ep %>"><h4>Begin Loading <%= ep %></h4></div>
  10. <% end %>