logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Suresh Varma
    • Posted on Thu 29 Mar 2007 04:27 PM

    I used XML form a view to do Autocomplete with Yahoo UI (given that I had to use an agent for generating JSON in 6.5). Originally I too thought that I would have to tweek the original libarary, but these simple settings did it for me..

    oACDS = new YAHOO.widget.DS_XHR("/Database.nsf/SVAllYUIAuto", ["entrydata", "text"]);

    oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_XML;

    oACDS.queryMatchContains = true;

    oACDS.scriptQueryParam ="readviewentries&startkey";

    oACDS.scriptQueryAppend = "count=20";

    HTH

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: