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

Autocomplete Problem

Expand Messages
  • pu_ankur
    hi! i am using autocomplete component of yui. i have 3 iframes and the first one has the autocomplete. when the elements are rendered it goes behind the
    Message 1 of 1 , Oct 11, 2007
    • 0 Attachment
      hi!

      i am using autocomplete component of yui. i have 3 iframes and the
      first one has the autocomplete. when the elements are rendered it
      goes behind the iframe. i want to make it above the iframe.

      i have tried putting useIframe = true;.

      i am giving the code below ---

      this is the main page -
      <body>
      <iframe src="head.html" height="20%" width="100%" scrolling="no"
      frameborder="0"></iframe>
      <iframe src="body.html" height="70%" width="100%" scrolling="auto"
      frameborder="0"></iframe>
      <iframe src="foot.html" height="10%" width="100%" scrolling="no"
      frameborder="0"></iframe>
      </body>

      this is the head.html -

      <script type="text/javascript">
      YAHOO.example.myData =
      ["aaa", "b", "c","aaa","abgh","asde","asad"];
      </script>

      </head>
      <body>
      <h2>HEAD</h2>
      <div id="myAutoComplete">
      <input id="myInput" type="text">
      <div id="myContainer" style=""></div>
      </div>

      <script type="text/javascript">
      YAHOO.example.ACJSArray = new function() {
      var myDataSource = new
      YAHOO.widget.DS_JSArray(YAHOO.example.myData);
      var myAutoComp = new
      YAHOO.widget.AutoComplete("myInput","myContainer", myDataSource);
      myAutoComp.minQuerylength = 1;
      myAutoComp.maxResultsDisplayed = 5;
      myAutoComp.useIFrame = true;
      }
      </script>
      </body>

      thanks,
    Your message has been successfully submitted and would be delivered to recipients shortly.