Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
AutoComplete within dialog   Message List  
Reply | Forward Message #36446 of 52116 |
Re: AutoComplete within dialog

I found a workaround for the time being but if anyone has or thinks of a better solution please let me know. Using the example previously provided (http://www.accountmaven.com/pages/test/simpledialog.htm ) , change the following so that the 'statescontainer' is on the same level as the 'bd' 

<div class="bd">
    <div id="statesautocomplete">
      <input id="statesinput" type="text">
    </div>
  </div>
  <div id="statescontainer"></div>

then add the following code 

this.oAutoComp.doBeforeExpandContainer = function(oTextbox, oContainer, sQuery, aResults) {
        var pos = YAHOO.util.Dom.getXY(oTextbox);
        pos[1] += oTextbox.offsetHeight + 2;
        YAHOO.util.Dom.setXY(oContainer,pos);
        YAHOO.util.Dom.setStyle(oContainer,"z-index",99999);
        return true;
};


then tweak the css to position the elements correctly. But the autocomplete should not be under the button group any longer


Thu Aug 21, 2008 5:58 am

marcodontsay...
Offline Offline
Send Email Send Email

Forward
Message #36446 of 52116 |
Expand Messages Author Sort by Date

I have AutoComplete component within dialog. The problem is that autoComplete suggestion container displays underlying dialog's footer in IE only. Any...
tanjavl
Offline Send Email
Aug 13, 2008
6:22 pm

... I am having the same problem also. Has anyone found a workaround for this problem? I tried the obvious position:absolute and z-index. Even tried increasing...
marcodontsaypolo
marcodontsay...
Offline Send Email
Aug 20, 2008
9:54 pm

I found a workaround for the time being but if anyone has or thinks of a better solution please let me know. Using the example previously provided...
marcodontsaypolo
marcodontsay...
Offline Send Email
Aug 21, 2008
5:58 am

I have created an example of the problem here: http://www.accountmaven.com/pages/test/simpledialog.htm ...
marcodontsaypolo
marcodontsay...
Offline Send Email
Aug 20, 2008
11:03 pm

marcodontsaypolo, This (admittedly old) discussion of the issue may be of interest: http://yuiblog.com/sandbox/yui/v0113/examples/dialog/ac_in_dialog.php It's...
Eric Miraglia
ericmiraglia
Online Now Send Email
Aug 21, 2008
6:59 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help