Validation Status Error

  1. #1

    Validation Status Error

    Hi, i trying create a login form. When i add statusbar plugins, the page not showing.

    Uncaught TypeError: Object [object Object] has no method 'getFields'
    I remove this part of code and then the page is showing.
    FormPanelID="StatusForm"
    Any helps?


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogIn.aspx.cs" Inherits="Ast.ib.LogIn" %>
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Login</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Viewport ID="Viewport1" runat="server">
                <LayoutConfig>
                    <ext:VBoxLayoutConfig Align="Center" Pack="Center" />
                </LayoutConfig>
                <Items>
                    <ext:Panel ID="StatusForm" runat="server" Height="200" Title="Account Login" Width="400" BodyPadding="50" DefaultAnchor="100%">
                        <Items>
                            <ext:TextField ID="txtUser" runat="server" FieldLabel="User " SelectOnFocus="true" MsgTarget="Side" AllowBlank="false" BlankText="User tidak boleh kosong" />
                            <ext:TextField ID="txtPassword" runat="server" InputType="Password" SelectOnFocus="true" FieldLabel="Password " MsgTarget="Side" AllowBlank="false"  BlankText="User tidak boleh kosong" />
                        </Items>
                        <BottomBar>
                            <ext:StatusBar ID="FormStatusBar" runat="server" DefaultText="Ready">
                                <Plugins>
                                    <ext:ValidationStatus 
                                        runat="server" 
                                        FormPanelID="StatusForm"
                                        ValidIcon="Accept" 
                                        ErrorIcon="Exclamation" 
                                        />
                                </Plugins>
                            </ext:StatusBar>
                        </BottomBar>    
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
  2. #2
    FormPanelID should contains ID of FormPanel (not Panel)
  3. #3
    Thanks, it works. You can close this thread.

Similar Threads

  1. Replies: 0
    Last Post: Aug 09, 2012, 1:27 PM
  2. Replies: 4
    Last Post: Feb 09, 2012, 6:06 AM
  3. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  4. [CLOSED] Advanced validation status bar problem
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 18, 2010, 3:22 PM
  5. Status Bar with integrade form validation
    By flaviodamaia in forum 1.x Help
    Replies: 2
    Last Post: Jun 16, 2009, 5:50 PM

Tags for this Thread

Posting Permissions