[CLOSED] Autocomplete function is not working in textfield....

Page 3 of 4 FirstFirst 1234 LastLast
  1. #21
    I deploy my web application to my web server.
    I log on to my web application providing username e password (username in the "autocomplete" textfield).
    I close my web application (close the browser, IE or Chrome).
    I access again my web application.
    Set focus on username textfield.
    Press Arrow down key on the keyboard but nothing happens.
    I expected to see the username I typed before.
    M
  2. #22
    Quote Originally Posted by marco.morreale View Post
    I log on to my web application providing username e password (username in the "autocomplete" textfield).
    Does the hard PostBack occur here? Or just a DirectEvent? As far as I can understand the autocomplete functionality requires a hard PostBack.
  3. #23
    Hi Daniil,
    no, I'm not using postback but direct event.

    Below is my whole form.
    What is the best way to let the hard postback event to occurr?
    Thanks in advance.
    M

            <ext:FormPanel 
                        ID="LoginPanel"
                runat="server"
                Frame="true"
                Width="350"
                Y="100"
                BodyPadding="5"
                Title="Login"
                DefaultButton="btnLogin"
                >
                 <Items>
                    <ext:TextField 
                        ID="txtUsername" 
                        runat="server"                     
                        FieldLabel="Username" 
                        AllowBlank="false"
                        BlankText="Your username is required."
                        Text=""
                        AutoFocus="true"
                         >
                        <Listeners>
                            <Render Handler="this.inputEl.set({ autocomplete: 'on' });" />
                        </Listeners>
                    </ext:TextField>
                    <ext:TextField 
                        ID="txtPassword" 
                        runat="server" 
                        InputType="Password" 
                        FieldLabel="Password" 
                        AllowBlank="false" 
                        BlankText="Your password is required."
                        Text=""
                         >
                         </ext:TextField>
                     <ext:Checkbox ID="chkRememberMe" runat="server" FieldLabel="Remember Me" />
                </Items>
                <Buttons>            
                    <ext:Button ID="btnLogin" runat="server" Text="Accedi" Icon="Accept" >
                        <Listeners>
                            <Click Handler="
                                if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
                                    Ext.Msg.alert('Errore','Specificare username e password');
                                    // return false to prevent the btnLogin_Click Ajax Click event from firing.
                                    return false; 
                                }" />
                        </Listeners>
                        <DirectEvents>
                            <Click OnEvent="btnLogin_Click" Success="Ext.net.Mask.show({msg: 'Accesso in corso...'});"  Failure="Ext.Msg.alert('Errore', result.errorMessage);"  >
                                <EventMask ShowMask="true" Msg="Verifica credenziali in corso..." MinDelay="10" />
                                <ExtraParams>
                                    <ext:Parameter Name="username" Value="#{txtUsername}.getValue()" Mode="Raw" />
                                    <ext:Parameter Name="password" Value="#{txtPassword}.getValue()" Mode="Raw" />
                                    <ext:Parameter Name="rememberMe" Value="#{chkRememberMe}.getValue()" Mode="Raw" Encode="true" />
                                </ExtraParams>                        
                             </Click>
                        </DirectEvents>
                    </ext:Button>
                </Buttons>
                </ext:FormPanel>
  4. #24
    You can try with AutoPostBack="true" for the Button.
  5. #25
    Still doesn't work.
    A "request failure" window appears for a second and then page reloads.
    M
  6. #26
    I don't think a failure request is somehow related to the autocomplete functionality. What does the failure request occur? Probably, there is a server side exception.
  7. #27
    I am running the test with debug in visual studio; a server exception shoud be detected.
    Without the Autopostback the direct event handler does it work perfectly.
    M
  8. #28
    AutoPostBack="true" makes a hard PostBack. A DirectEvent should not be used in this case.
  9. #29
    Please, can you provide a simple working example using Ext elements ?(not asp.net)
    Thanks in advance
    M
  10. #30
    I will try to implement such an example.
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. TextField MaxLength not working
    By xtremexploit in forum 2.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 11:28 PM
  2. [CLOSED] textfield red underline validation not working
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Feb 16, 2012, 1:42 PM
  3. [CLOSED] TextField Reset Text from ServerSide Not Working
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 11, 2010, 1:25 PM
  4. Replies: 6
    Last Post: Nov 16, 2009, 12:35 AM
  5. Textfield Keyup Listener Not Working
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Sep 25, 2009, 2:10 AM

Tags for this Thread

Posting Permissions