Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.66 KB | None | 0 0
  1. <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.     <title>test</title>
  6.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
  7.     <script type="text/javascript">
  8.         $(function () {
  9.             for (x = 0; x < 5; x++) {
  10.                 $.ajax({
  11.                     url: 'http://localhost:8080/Home/Slow/',
  12.                     cache: false,
  13.                     success: function (data) {
  14.                         $("#result").append(data);
  15.                     },
  16.                     error: function (a, b, c) {
  17.                         $("#result").append("error");
  18.                     }
  19.                 });
  20.             }
  21.         });
  22.     </script>
  23. </head>
  24. <body>
  25.     <div id="result">
  26.        
  27.     </div>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement