PDA

View Full Version : [CLOSED] GridPanel... error after render page.



supera
Jan 20, 2012, 6:08 PM
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.
3747

2 - image of error in Microsoft JScript, after grdSugestoes is render:
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="/wEPDwUKLTMzMzgzMjEwMw9kFgICAw9kFgICAQ8PFgIeBFRleHQ FBUFDSUpTZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja 0tleV9fFgIFEkxvZ2luU3RhdHVzMSRjdGwwMQUSTG9naW5TdGF 0dXMxJGN0bDAzIK899vSeJkU7PiS4VgtWA8MWqzveTKqlTWaLP D6pWD4=" />
</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?

Daniil
Jan 20, 2012, 8:16 PM
Hi,

Could you provide a sample to reproduce?

This might help.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/JSON_WebService/

supera
Jan 23, 2012, 11:59 AM
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>

Daniil
Jan 23, 2012, 1:34 PM
I guess you should set up Mode="Frame" for the Loader.

supera
Jan 23, 2012, 2:24 PM
Works fine!!!

thank you Daniil