How to solve the problem that the window control cannot be displayed in coolite Ajax Mode

Source: Internet
Author: User

I was writing it with coolite.ProgramThe Windows Control is displayed in JS, but the window control cannot be displayed in Ajax mode. I checked and tested all the control properties related to the window control, and did not find any problems, but there was an error in source code mode. The source code of my window control is as follows:

Code < Ext: Window ID = "Receivwemployeedetails" Runat = "Server" Icon = "Group" Title = "Employee details"
Width = "400" Height = "400" Modal = "True" Showonload = "False" >
< Body >
< Ext: fitlayout ID = "Fitlayout1" Runat = "Server" >
< Ext: Tabpanel  ID = "Tabpanel1" Runat = "Server" Activetabindex = "0" Border = "False" Deferredrender = "False" >
< Tabs >
< Ext: Tab  Runat = "Server" ID = "Tabuserinfo" Title = "User Info" Icon = "Group" Bodystyle = "Padding: 5px ;" >
< Body >
< Ext: Formlayout  ID = "Formlayout1" Runat = "Server" >
< Ext: Anchor >
< Ext: Textfield  ID = "Txbuid" Runat = "Server" Fieldlabel = "Uid" Width = "250" Disabled = "True"   />
</ Ext: Anchor >
< Ext: Anchor >
< Ext: textfield ID = "Txbuname" Runat = "Server" Fieldlabel = "Uname" Width = "250"   />
</ Ext: Anchor >
</ Ext: formlayout >
</ Body >
</ Ext: Tab >
</ Tabs >
</ Ext: tabpanel >
</ Ext: fitlayout >
</ Body >
</ Ext: Window >

AboveCodeThe section marked with an underscore will prompt: "It is not a known element. The possible cause is a compilation error on the website .". After consideration, it is estimated that this error is caused. Remove fitlayout from the above Code to solve the problem. The modified code is as follows:

Code < Ext: Window ID = "Receivwemployeedetails" Runat = "Server" Icon = "Group" Title = "Employee details"
Width = "400" Height = "400" Modal = "True" Showonload = "False" >
< Body >
< Ext: tabpanel ID = "Tabpanel1" Runat = "Server" Activetabindex = "0" Border = "False" Deferredrender = "False" >
< Tabs >
< Ext: Tab Runat = "Server" ID = "Tabuserinfo" Title = "User Info" Icon = "Group" Bodystyle = "Padding: 5px ;" >
< Body >
< Ext: formlayout ID = "Formlayout1" Runat = "Server" >
< Ext: Anchor >
< Ext: textfield ID = "Txbuid" Runat = "Server" Fieldlabel = "Uname" Width = "250"   />
</ Ext: Anchor >
< Ext: Anchor >
< Ext: textfield ID = "Txbuname" Runat = "Server" Fieldlabel = "Uname" Width = "250"   />
</ Ext: Anchor >
</ Ext: formlayout >
</ Body >
</ Ext: Tab >
</ Tabs >
</ Ext: tabpanel >
</ Body >
</ Ext: Window >

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.