Results 1 to 3 of 3

Thread: Ext.form.Field.prototype.msgTarget, How to use it by my setting with 'element id'?

  1. #1

    Default Ext.form.Field.prototype.msgTarget, How to use it by my setting with 'element id'?

    Ext.form.Field.prototype.msgTarget = "my-error-element-id"

    HTML Codes:
    HTML Code:
    <body>
    <div id="my-error-element-id"></div>
    </body>
    I have a dynamic form, but the IE show a error message that one element isn't displaied.
    Feva

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Use:
    Code:
    Ext.form.Field.prototype.msgTarget = 'under';
    Ext.form.Field.prototype.errorEl = Ext.get('my-error-element-id');
    (but it can only display ONE error, unless you specify a separate errorEl for every field)

  3. #3

    Default Thanks

    I have solved the problem.
    Ext.form.Field.prototype.msgTarget = 'errorInfEl';
    //Set the specified HTML element, you should be specified the value of 'msgDisplay'
    Ext.form.Field.prototype.msgDisplay = 'block';
    Feva

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •