[CLOSED] Doctype error

  1. #1

    [CLOSED] Doctype error

    We upgraded our application from EXT.NET 1.3 to EXT.NET 2.0 beta and firebug console log is displaying this error: syntax error

    ... PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...
    Last edited by geoffrey.mcgill; Apr 13, 2012 at 1:09 AM. Reason: [CLOSED]
  2. #2

    Please provide a sample to reproduce.
  3. #3
    Quote Originally Posted by Daniil View Post

    Please provide a sample to reproduce.
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <style type="text/css">
        <script src="../../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            if (window.top.frames.length !== 0) {
                window.top.location = self.document.location;
            var onLoad = function () {
                txtUsername.focus(false, 100);
            var onSubmit = function () {
                if (txtUsername.getValue() == "" && txtPassword.getValue() == "") {
                        title: 'Alert',
                        msg: 'You should put login and password',
                        buttons: Ext.Msg.OK,
                        icon: Ext.MessageBox.INFO
                else {
        <ext:ResourceManager runat="server">
                <DocumentReady Handler="onLoad();" />
            Axe Credit Portal (4.0 Star Project RC)</h1>
        <ext:Window ID="LoginWindow" runat="server" Closable="false" Resizable="false" Height="130"
            Icon="Lock" Title="Login" Draggable="true" Width="300" Modal="true" Layout="fit"
            Padding="5" BodyBorder="0">
                <ext:FormPanel runat="server" ID="_accountFormPnl" FormID="form1" Border="false"
                    Layout="form" BodyStyle="background:transparent;" Url='<%# Html.AttributeEncode(Url.Action("Login")) %>'>
                        <ext:TextField ID="txtUsername" runat="server" FieldLabel="Username" AnchorHorizontal="100%" />
                        <ext:TextField ID="txtPassword" runat="server" InputType="Password" FieldLabel="Password"
                            AnchorHorizontal="100%" />
                <ext:Button runat="server" ID="_accountBtn" Text="Login" Icon="Accept">
                        <Click Url="/Account/Login" Timeout="60000" FormID="form1" CleanRequest="true" Method="POST"
                            Before="Ext.Msg.wait('Verifying...', 'Authentication');" Failure="Ext.Msg.show({
                               title:   'Login Error',
                               msg:     result.errorMessage,
                               buttons: Ext.Msg.OK,
                               icon:    Ext.MessageBox.ERROR
                            <EventMask MinDelay="250" />
                                <ext:Parameter Name="ReturnUrl" Value="Ext.urlDecode(String(document.location).split('?')[1]).r || '/'"
                                    Mode="Raw" />
        <ext:KeyMap ID="KeyMapPnl" runat="server" Target="#{_accountFormPnl}">
            <ext:KeyBinding StopEvent="true">
                    <ext:Key Code="ENTER" />
                    <Event Handler="onSubmit();" />
  4. #4

    I don't see any error in Firebug (i fixed obvious error, need to use App.txtUsername instead txtUsername in javascritpt code)
    Can you provide screenshot of the error?
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    Quote Originally Posted by Vladimir View Post

    I don't see any error in Firebug (i fixed obvious error, need to use App.txtUsername instead txtUsername in javascritpt code)
    Can you provide screenshot of the error?
    Screenshot attached
    Attached Thumbnails doctypeError.png  
  6. #6
    Quote Originally Posted by Daly_AF View Post
    Screenshot attached
    It works I deleted this script : <script src="../../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
  7. #7
    The issue is not reproducable for me, also I don't think that issue is related with Ext.Net
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 17
    Last Post: Oct 12, 2011, 5:54 PM
  2. Replies: 4
    Last Post: Jan 25, 2011, 11:39 AM
  3. [CLOSED] DocType: XHTML Strict or Transitional?
    By randy85253 in forum 1.x Premium Help
    Replies: 4
    Last Post: Jan 05, 2010, 10:00 AM
  4. Replies: 2
    Last Post: Jul 29, 2009, 2:57 PM
  5. Set The DocType property to web Page
    By Dinesh.T in forum 1.x Help
    Replies: 1
    Last Post: Jun 01, 2009, 12:52 PM

Posting Permissions