I wrote an update file that updates several divs every second using serveride information. Now the problem is that it seems very difficult, in google chrome my manipulation even continues to load.
Hope someone can tell me how best to do this script or maybe get a different solution.
Here is my aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' > <head id="Head1" runat='server'> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="Scripts/jquery.countdown.js" type="text/javascript"></script> <title>Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <script type="text/javascript"> $(function hello() { </script> <div class="mainpanel"> <div> test </div> <div class="shortly" > </div> <button id="button" type="button" class="resetButton"> Reset </button> </div> </form> </body> </html>
And a web service that returns information:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services;
Now that you can see that the jquery script receives data every second, this is necessary because it is for a live auction. If I use this script on a real server, since I tried to get the server to crash for about 2 minutes due to heavy use, this, unfortunately, has only one open client. Therefore, whenever clients use a script, I get a real problem.
source share