[CLOSED] clientside setValue('') on TextField with AllowBlank, not invalidating form after delay

  1. #1

    [CLOSED] clientside setValue('') on TextField with AllowBlank, not invalidating form after delay

    I have a captcha control that contains a text field with an allowblank = false. After a period of time (expires), javascript client code sets this intput textfield.setValue(''). I expect this update to blank to invalidate the form again. It does not. What else do I need to call to invoke clientvalidation of the parent form?
    Last edited by Daniil; Aug 20, 2013 at 9:18 AM. Reason: [CLOSED]
  2. #2
    Hi @michaeld,

    I cannot reproduce it this way. Please provide your test case.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:FormPanel runat="server">
                <Items>
                    <ext:TextField 
                        ID="TextField1" 
                        runat="server" 
                        Text="Initial text" 
                        AllowBlank="false" />
                </Items>
                <Listeners>
                    <ValidityChange Handler="console.log(valid);" />
                </Listeners>
            </ext:FormPanel>
            
            <ext:Button runat="server" Text="setValue('')" Handler="App.TextField1.setValue('');" />
        </form>
    </body>
    </html>
  3. #3
    I will return to this when I have a chance. Sorry. This was a minor issue so until some of our majors are closed, I dont have the time to swing back around, as yet.

    Perhaps I can even give up some of the code so other users can use it since I've seen requests for a captcha implementation in other threads. Mine is based on a publicly-available implementation for the image, but I wrapped it with extjs as a usercontrol. It would be even better if it could be reimagined as a proper extnet control. Until then, a day at a time.

Similar Threads

  1. Replies: 5
    Last Post: Aug 16, 2013, 2:40 PM
  2. [CLOSED] Display TextField with ToolTips and AllowBlank overlapping
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 14, 2013, 8:47 AM
  3. [CLOSED] problem with slider setValue on clientside
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 11, 2012, 3:37 PM
  4. Replies: 3
    Last Post: Jun 27, 2012, 2:19 PM
  5. [1.0] Set focus textfield clientside kind of broken
    By plykkegaard in forum 1.x Help
    Replies: 3
    Last Post: Feb 14, 2011, 11:42 AM

Posting Permissions