Hi to all, I'm here because I have another problem with the YUI
autocomplete helper.

In my index file (contains in templates folder) I call the helper in
this way:

<code>
yui_input_auto_complete_tag('test', "'', 'people/autocomplete', array
('autocomplete' => 'off'), array('use_style' => true));
</code>

and in my action file I have a method that receive all the content of
my 'test' input, and return me all the database results each time that
one or more record are presents.
This is my method implementation:

<code>
  public function executeAutocomplete(sfWebRequest $request)
  {
        $results = Doctrine_Query::create()
                ->select('p.nome')
                ->from('Persona p')
                ->where('p.nome LIKE ?', ''.$request->getParameter('test').'%');
        $results->execute();
    return $results;
  }
</code>

Now the problem is that it don't return me anything, and if I try to
put in my method only a string to return, it don't work anyway. Whit
firebug I saw that in console I have 2 errors and are:
1) YAHOO.widget.LogReader is not a constructor (<div
id="sfWebDebugYUIDetails" class="sfWebDebugTop" style="display:
none"><h1>YUI</h1><div id="yconsole"></div><script type="text/
javascript">var yconsole = new YAHOO.widget.LogReader("yconsole");</
script> );
2) YAHOO.widget.DS_XHR is not a constructor
(YAHOO.util.Event.addListener(window, 'load', function(e) { var
datasourceprova = new YAHOO.widget.DS_XHR('people/autocomplete',
['ResultSet.Result','Title']);).
The first error is present in each page of my web application, while
the second is present only when I try to use autocomplete helper.
Where am I wrong? Can someone help me please?
Thanks to all.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to