locked
In IE11 and IE10 wait cursor is not working on grid or checkbox click but working on button click RRS feed

  • Question

  • User-1506524622 posted

    In my application i have button,checkbox,gridview and many more controls when i click on button my wait cursor work but when i click on gridview my wait cursor not work same goes with checkbox control both have __doPostBack event. But i am unable to find the region for this. Please provide me some direction on this?

    My application is designed in asp.net framework 2.0

    So please in this regards it is urgent to solve...

     

    Thanks in Advance

    Wednesday, February 5, 2014 12:30 AM

Answers

All replies

  • User1777983149 posted

    private void Page_Init(object sender, EventArgs e)
    {
    Page.ClientTarget = "uplevel";
    }

    Wednesday, February 5, 2014 2:15 AM
  • User-1506524622 posted

    Thanks for the reply but it does not work as still our problem is unsolvable we have put the compatible code to our website but even then there is no solution for this problem

    Wednesday, February 5, 2014 6:42 AM
  • User-1506524622 posted

    We are getting problem only where autopostback is true because behind the scene autopostback call Onclick event Onclick="setTimeout('__doPostBack(\'chckbox\',\'\')', 0)" sp this is creating a problem on button submit action is called so that's why the wait cursor work but on checkbox and ontextchange event on textbox autopostback generated this setTimeout method which is causing a problem still searching for the solution if any one of you have it please share asap

    Thanks in Advance

    Thursday, February 6, 2014 6:18 AM
  • User-1506524622 posted
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
     
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head runat="server">
    
       
    
        <title>Untitled Page</title>
    
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    
    </head>
    
        <script language="javascript" type="text/javascript">
    
              function BeginRequestHandler(sender, args)
    
              {
    
                            var spanlocker = $get("spanlock");
    
     
    
                            if (!spanlocker) {
    
                                  spanlocker = document.createElement("span");
    
                                spanlocker.style.top = 0;
    
                                  spanlocker.style.left = 0;
    
                                  spanlocker.style.zIndex = 10000;
    
                                spanlocker.id = "spanlock";
    
                                  spanlocker.style.position = "absolute";
    
                                  spanlocker.style.width = document.body.scrollWidth;
    
                                  spanlocker.style.height = document.body.scrollHeight;
    
                                 
    
                                  document.body.appendChild(spanlocker);
    
                           
    
                            }
    
                            spanlocker.setCapture();
    
                            spanlocker.style.cursor = "wait";
    
                            spanlocker.style.display = "inline";
    
                           
    
     
    
              }   
    
              function EndRequestHandler(sender, args)
    
              {
    
                            var spanlocker = $get("spanlock");
    
                            if (spanlocker) {
    
                                  spanlocker.style.cursor = "";
    
                                  spanlocker.style.display = "none";
    
                                  spanlocker.releaseCapture();
    
                            }
    
     
    
              }   
    
              function chk()
    
              {
    
                setTimeout("__doPostBack('CheckBox1','')",0);
    
              }
    
        </script>
    
     
    
    <body>
    
        <form id="form1" runat="server">
    
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
     
    
        <script language="javascript" type="text/javascript">
    
            Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
    
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    
        </script>
    
     
    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
    
        <ContentTemplate>
    
            <div id="div1">
    
                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
    
                <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="false" OnCheckedChanged="CheckBox1_CheckedChanged" onclick="chk();" />
    
               
    
            </div>
    
        </ContentTemplate>       
    
        </asp:UpdatePanel>
    
        </form>
    
    </body>
    
    </html>
    
    
    

    Thursday, February 6, 2014 8:26 AM
  • User-1506524622 posted

    This is the sample code that is working perfect in IE9 but not working for IE10 and IE11 so please provide some solution so that wait cursor can work in IE10,11 both

    Thursday, February 6, 2014 8:33 AM
  • User-933407369 posted

     it is working fine here: http://jsfiddle.net/IrvinDominin/E6uUQ/ ,i think that the IE11 and IE10 supported the wait cursor.

    i would suggest you check out the links for details

    Wait cursor not showing in IE10

    Hope it helps you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 12, 2014 4:08 AM