Autocomplete bug :(

Last post 07-24-2006 10:22 AM by mcbeev. 2 replies.

Sort Posts:

  • Autocomplete bug :(

    02-13-2006, 10:27 AM

    I found a bug in autocomplete behavior of Atals January CTP.

    If TextBox have a style "display:none" during page loading, autocomplete doesn't work at all. Small example:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body>

    <script type='text/javascript' language='javascript' src='/ACTextBoxTest/ScriptLibrary/Atlas/Release/Atlas.js'></script>

    <div id="foo" style="display:none;">
      <input name="TextBox1" type="text" id="TextBox1" />
      <div id='TextBox1_completionList'></div>

      <script type='text/xml-script'>
        <page xmlns:script='http://schemas.microsoft.com/xml-script/2005'>
          <components>
              <textBox id='TextBox1'>
                  <behaviors>
                      <autoComplete
                        completionList='TextBox1_completionList'
                        serviceURL='AutoCompleteService.asmx'
                        serviceMethod='GetWordList'
                        minimumPrefixLength='2'
                        completionSetCount='15'
                        completionInterval='300' />
                  </behaviors>
              </textBox>
          </components>
        </page>
      </script>
     
    </div>
    <a href='#' onclick="document.getElementById('foo').style.display='block';return false;">Show TextBox</a>
       
    <div>

    </body>
    </html>

    How can I fix this problem?

    --
    Pavel Surmenok

    http://vbnet.ru/ - the leader among Russian Visual Basic sites
  • Re: Autocomplete bug :(

    07-10-2006, 4:38 PM
    • Member
      20 point Member
    • Rashka
    • Member since 06-07-2006, 2:18 PM
    • Posts 4
    Are there any updates on this? I posted on this thread: http://forums.asp.net/thread/1266362.aspx asking about a work around, but so far there doesn't seem to be any solutions.

    I was really hoping to get autocomplete working, but I might have to revert back to a plain search box.

     
  • Re: Autocomplete bug :(

    07-24-2006, 10:22 AM
    • Member
      93 point Member
    • mcbeev
    • Member since 04-04-2003, 4:54 AM
    • Posts 20
    anyone found a fix for this ?
Page 1 of 1 (3 items)