Nov 08, 2010, 9:39 AM
Troubles with Javascript during rendering
Hello!
I've got some troubles during moving from version 0.8 to 1.0 RC. After markup corrections I faced with some JS problems, for example:
This is my markup:
Do you have some ideas to solve this trouble?
I've got some troubles during moving from version 0.8 to 1.0 RC. After markup corrections I faced with some JS problems, for example:
This is my markup:
<ext:Panel runat="server"
ID="InsertToWebsite_Tab" IDMode="Static"
Title="<%$ Resources:Tab_Subjects %>">
<Items>
<ext:Hidden runat="server" ID="Category_ValMsg_EmptyName_HF" IDMode="Static" Text="<%$ Resources:Category_ValMsg_EmptyName %>" />
<!-- Here hiddden field declared in markup -->
<ext:Hidden runat="server" ID="Category_NewCategory_HF" IDMode="Static" Text="<%$ Resources:Category_NewCategory %>" />
<ext:ColumnLayout runat="server" FitHeight="true" Split="true" >
<Columns>
<ext:LayoutColumn ColumnWidth="0.25">
<ext:TreePanel runat="server"
ID="Categories_TP" IDMode="Static"
RootVisible="false"
AutoScroll="true"
Title="<%$ Resources:Category_Categories %>"
Icon="ChartOrganisation">
<TopBar>
<ext:Toolbar runat="server" IDMode="Ignore" >
<Items>
<ext:Button runat="server"
ID="CategoryAdd_Button" IDMode="Static"
Text="<%$ Resources:Category_Add %>"
Icon="Add">
This is JS code, I've got in HTML: new Ext.ToolTip(
{
title: "Agent Display Name",
target: "AgentName_RG"
});
{
id: "Category_ValMsg_EmptyName_HF",
xtype: "hidden",
value: "Category name cannot be empty"
}
{// "new panel" statement missed here
id: "Category_NewCategory_HF",
xtype: "hidden",
value: "Edit new category details"
}
new Ext.ToolTip(
{
title: "Chat server internet address",
target: "ChatServerURL_TB"
});
In some parts of generated code I can see, some new operators are missed. This trouble is difficult to detect, because browser shows just empty screen and javascript code in html view is optimized in single line mode.Do you have some ideas to solve this trouble?