AutoCompleteExtender bug

Last post 10-22-2006 2:57 PM by jecho1. 1 replies.

Sort Posts:

  • AutoCompleteExtender bug

    10-22-2006, 12:26 PM
    • Loading...
    • jecho1
    • Joined on 10-22-2006, 9:12 AM
    • Posts 9

    Hi.

    This error occurs when I press enter in a textbox, that has AutoCompleteExtender assigned to it and there are not any elements in the auto complete list:

    Line: 7244
    Error: 'this._completionListElement.childNodes[...].firstChild' is null or not an object

    It occurs only the first time I press enter in the textbox: e.g., when I immediately focus the control after the page has loaded and then I press the Entry key.

     

     

    Filed under: , , ,
  • Solution

    10-22-2006, 2:57 PM
    • Loading...
    • jecho1
    • Joined on 10-22-2006, 9:12 AM
    • Posts 9

    The simple solution is to initialize the _selectIndex field with -1 instead of null at line 7346 of the "PreviewScript.js" script.

    The reason for the problem is that if the initial value is null then condition of the "if" at line 7243 will be satisfied and the next line 7244 will raise the error.

Page 1 of 1 (2 items)