Wednesday, February 11, 2009

The Joel on Software Discussion Group - browser abstraction

The Joel on Software Discussion Group - browser abstraction


this.oAutoComp.formatResult = function(oResultItem, sQuery) {
return "" + oResultItem[0] + "
" + oResultItem[1];
};


method for formatResult....

why is this returning what is in the function to the formatResult method?!?

yui


formatResult
String formatResult ( oResultData , sQuery , sResultMatch )
Overridable method that returns HTML markup for one result to be populated as innerHTML of an
  • element.
    Parameters:
    oResultData Object Result data object.
    sQuery The corresponding query string.
    sResultMatch The current query string.
    Returns: String
    HTML markup of formatted result data.
  • No comments:

    Post a Comment