Loading ...
Sorry, an error occurred while loading the content.

Re: Autocomplete Header, Body, Footer

Expand Messages
  • jennykhan
    Hi there, Thanks for catching the documentation typo. In your code, you should be calling: oAutoComp2.setHeader( HI ); Hope that helps, Jenny
    Message 1 of 3 , Jan 30, 2007
    • 0 Attachment
      Hi there,

      Thanks for catching the documentation typo. In your code, you should
      be calling:

      oAutoComp2.setHeader("HI");

      Hope that helps,
      Jenny




      --- In ydn-javascript@yahoogroups.com, "SeyedMohammadHossein Mayboudi"
      <smhmayboudi@...> wrote:
      >
      > Hello, I have a problem with setHeader & setBody & setFooter.
      > I told myself go to doc and read about them but I think the help is
      > not correct:
      > ----------------------------------------------------------------------
      > ----------
      >
      > setBody
      > void setBody ( sHeader )
      > Sets HTML markup for the results container body. This markup will be
      > inserted within a <div> tag with a class of "ac_bd".
      > Parameters:
      > sHeader <String> HTML markup for results container body.
      > Returns: void
      >
      > ----------------------------------------------------------------------
      > ----------
      >
      > setFooter
      > void setFooter ( sFooter )
      > Sets HTML markup for the results container footer. This markup will
      > be inserted within a <div> tag with a class of "ac_ft".
      > Parameters:
      > sFooter <String> HTML markup for results container footer.
      > Returns: void
      >
      > ----------------------------------------------------------------------
      > ----------
      >
      > setHeader
      > void setHeader ( sHeader )
      > Sets HTML markup for the results container header. This markup will
      > be inserted within a <div> tag with a class of "ac_hd".
      > Parameters:
      > sHeader <String> HTML markup for results container header.
      > Returns: void
      >
      > ----------------------------------------------------------------------
      > ----------
      > I think the sBody is the input parameter for method setBody, and when
      > I analyse the HTML with IE DOM, I see that the class name is yui-ac-
      > hd or yui-ac-bd or yui-ac-ft.
      > Finally I write this code:
      >
      > oAutoComp2.setHeader=function(sHeader){
      > sHeader="<div class='yui-ac-hd'>HI</div>";
      > },
      >
      > but the 'HI' was not shown!?
      > Would you please help me.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.