[CLOSED] GridPanel... error after render page.

  1. #1

    [CLOSED] GridPanel... error after render page.

    I has a aspx Page with a gridPanel called grdSugestoes... after load data in grid (with WebService, paging), the error in Microsoft JScript occurss.

    1 - image with grdSugestoes loaded.
    Attachment 3747

    2 - image of error in Microsoft JScript, after grdSugestoes is render:
    Attachment 3748

    the error occurs when dom.innerHTML receives a var called html...

    The content of var html is:

    "
    
    <!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><title>
        SuperaWebHeader
    </title><link href="../Resources/Styles/SuperaWeb.css" rel="stylesheet" type="text/css" /></head>
    <body>
        <form method="post" action="SuperaWebHeader.aspx?_dc=1327085964532" id="SuperaWebHeader">
    <div class="aspNetHidden">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTMzMzgzMjEwMw9kFgICAw9kFgICAQ8PFgIeBFRleHQFBUFDSUpTZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgIFEkxvZ2luU3RhdHVzMSRjdGwwMQUSTG9naW5TdGF0dXMxJGN0bDAzIK899vSeJkU7PiS4VgtWA8MWqzveTKqlTWaLPD6pWD4=" />
    </div>
    
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['SuperaWebHeader'];
    if (!theForm) {
        theForm = document.SuperaWebHeader;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
    
    
    <div class="aspNetHidden">
    
        <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAgLzoeztCgK+3vvOCR/c49TSwMxTcUr5MHS2Tp/qC0GtnDy+lC20WbUzVP8U" />
    </div>
        <div class="header" style="height:5px">
            <span id="lblTitle">ACIJS</span>
            <span id="lblEmpresa"></span>
            <span id="lblUsuario"></span>
            <a id="LoginStatus1" href="javascript:__doPostBack('LoginStatus1$ctl00','')">Logout</a>
        </div>
        </form>
    </body>
    </html>
    "
    Any help?
    Last edited by Daniil; Jan 23, 2012 at 2:29 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Could you provide a sample to reproduce?

    This might help.
    https://examples2.ext.net/#/GridPane...ON_WebService/
  3. #3
    Hi Daniil...

    Well, first, I'm sorry, but I was wrong about the location of the error.

    The errors donĀ“t occurs in GridPanel render... I realized that the erros occurs in this code (and verify this placing the code in comments)

    <ext:Panel ID="tabHeader" runat="server" Region="North" Border="false" Header="false" Height="45px">
       <Loader runat="server" AutoLoad="true" Url="~/App/SuperaWebHeader.aspx" >
            <LoadMask ShowMask="false"/>
       </Loader>
    </ext:Panel>
    The strange thing is that in Firefox, Opera and Google Chrome, this works well, but in IE 9, not... I'm missing some parameter in the Loader?

    The SuperaebHeader.aspx follow:

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SuperaWebHeader.aspx.vb" Inherits="SuperaWeb.SuperaWebHeader" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!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 runat="server">
        <title>SuperaWebHeader</title>
        <link href="~/Resources/Styles/SuperaWeb.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="SuperaWebHeader" runat="server">
        <div class="header" style="height:5px">
            <asp:Label runat="server" ID="lblTitle" Text="SuperaWEB" />
            <asp:Label runat="server" ID="lblEmpresa" />
            <asp:Label runat="server" ID="lblUsuario" />
            <asp:LoginStatus ID="LoginStatus1" runat="server" />
        </div>
        </form>
    </body>
    </html>
  4. #4
    I guess you should set up Mode="Frame" for the Loader.
  5. #5
    Works fine!!!

    thank you Daniil

Similar Threads

  1. Replies: 2
    Last Post: Jan 10, 2012, 12:23 AM
  2. [CLOSED] the page don't render completely some thimes
    By lonely7345 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 04, 2011, 9:25 AM
  3. [1.0] GridPanel.render() error in BorderLayout
    By d.urazalinov in forum 1.x Help
    Replies: 3
    Last Post: Jun 22, 2010, 6:07 PM
  4. Page Render - Controls all strange
    By Tbaseflug in forum Bugs
    Replies: 0
    Last Post: Jun 26, 2009, 1:27 PM
  5. Replies: 10
    Last Post: Jul 07, 2008, 10:32 AM

Posting Permissions