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

Re: [ydn-javascript] Problem with YUI-AuoComplete-elements are disabled

Expand Messages
  • RahulJain
    thanks John for the help but have figured out what the error was . setting the max-height property helped me. Rahul Jain ... -- View this message in context:
    Message 1 of 3 , Jul 30, 2008
      thanks John for the help but have figured out what the error was .
      setting the max-height property helped me.
      Rahul Jain

      John-598 wrote:
      >
      >> I have a form and am using YUI-autocomplete widget to get the city
      >> from my database, but the problem i am facing is that I am not able
      > to > select the elements used later which means i can`t type anything
      > into > the textbox jst below the autocomplete textbox.
      >
      > http://developer.yahoo.com/yui/autocomplete/#customevents
      >
      > Not sure what you're saying but I can post what worked for me; the
      > selected value(s) are passed into the event in the second argument -
      > the first just says what the event name is (ie 'click').
      >
      > // manager name has autocomplete
      > dialog.supervisorAC =
      > new YAHOO.widget.AutoComplete(
      > "dlg_supervisor_name",
      > "dlg_supervisor_ac",
      > nameSource);
      >
      > var myItemSelectHandler =
      > function(sType, aArgs) {
      > var usr_id = aArgs[2][1].usr_id; // magic, eh :)
      > document.getElementById('dlg_supervisor_id').value = usr_id;
      > };
      >
      > dialog.supervisorAC.itemSelectEvent.subscribe( myItemSelectHandler );
      >
      >
      >
      >

      --
      View this message in context: http://www.nabble.com/Problem-with-YUI-AuoComplete-elements-are-disabled-tp18666880p18732233.html
      Sent from the ydn-javascript mailing list archive at Nabble.com.
    Your message has been successfully submitted and would be delivered to recipients shortly.