"sendRPCDone" now known as "Suggest_apply"
Oct 11, 12:05 pm in Technology
I discovered today that Google has changed the function name this time from “sendRPCDone” to “Suggest_apply”. Having looked closer at the new javascript file at http://www.google.com/webhp?complete=1&hl=en it seems that it has changed quite a bit. There seems to be some new fun stuff with JSON objects as well.
A quick fix to the old ac.js like this will get the results back, kind off.
window.google = new Object();
window.google.ac = new Object();
window.google.ac.Suggest_apply = sendRPCDone;
However, they’ve also changed the array structure so that keywords and number of results now comes in the same array in consequent elements. So greater code changes are probably required as the changes in the new ac.js file suggest.
This is what the Suggest_apply response looks like.
window.google.ac.Suggest_apply(frameElement, "k;", new Array(2, "kmart", "4,280,000 results", "k n", "3,850,000 results", "k swiss", "17,400,000 results", "k n filters", "1,860,000 results", "k lite", "10,900,000 results", "k lite codec", "3,690,000 results", "k n air filters", "1,580,000 results", "k g", "310,000 results", "k lite codec pack", "3,090,000 results", "klove", "4,060,000 results"), new Array(""));
I guess there are other response formats too such as a jsonRPCDone and maybe also the old sendRPCDone format. I will try to figure out how to trigger each response (url parameter flag). Comments on implementing Suggest_apply and the other potential new response formats are welcome.

