Troubles with Javascript during rendering

  1. #1

    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:
    			<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?
  2. #2
    Hi,

    You have to move hidden fields outside the panel because you cannot mix layout and widgets
  3. #3
    Quote Originally Posted by Vladimir View Post
    Hi,

    You have to move hidden fields outside the panel because you cannot mix layout and widgets
    Thanks a lot!
    You have solved my problem!

Similar Threads

  1. Nested layouts cause javascript rendering errors
    By alonweiss in forum 1.x Help
    Replies: 1
    Last Post: Nov 17, 2010, 8:30 PM
  2. [CLOSED] Help with some troubles
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 09, 2010, 3:36 PM
  3. [CLOSED] Troubles with resources and WebMethods (ASMX)
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 27, 2010, 11:29 AM
  4. [CLOSED] [0.8.2] Notifications and js troubles.
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 20, 2010, 4:51 AM
  5. [CLOSED] Page_Load troubles with Tabs - full example source code
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jul 01, 2009, 5:46 AM

Tags for this Thread

Posting Permissions