Hi all,

I had a beautiful script written by @rnd me that looks like this:

Code:
<body>
<input  id='inp' /> <select  id='sug' />

<script type='text/javascript'>
	
function el(tid) {return document.getElementById(tid);}

function addScript(u){ 
   var head=document.getElementsByTagName('head')[0],
     sc2=document.createElement('script'); sc2.src=u;    
   head.appendChild(sc2);
   setTimeout(function(){ head.removeChild(sc2); sc2=null;}, 20000)
 }//end addScript()


function suggest(data){ 
  var sel=el("sug").options; sel.length=0;
  data[1].map(function(a){return a[0];}).map(function(a,b){
  sel[b]=new Option(a);
 });
 sel.size=data[1].length;
}//end suggeest()


el("inp").onkeypress=function(){
  addScript("http://www.google.com/complete/search?hl=nl&callback=suggest&q="+this.value);
}
	
</script>	
</body>

This script made it possible to show Google suggestion while typing in an input field. The Google suggestions are retrieved over here:
http://google.com/complete/search?q=...output=toolbar(These are the suggestions for the word ''house'')

The problem is that all of the sudden it stopped working! For apparently no reason because Google is still 'providing' the suggestions online. So I have two questions:

Why is it stopped working? Did Google restrict the suggestions to third parties?

What do I have to change in the code to make it work again?

Thanks