rem: function updateChoices(){ selected=-1; var transport = wicketAjaxGetTransport(); if (transport == null){ if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logError; log("Ajax-transport not available!"); } return false; }  var value=wicketGet(elementId).value; transport.open("GET",callbackUrl+"&random="+Math.random()+"&q="+value,true); transport.onreadystatechange = function () { if (transport.readyState == 4) { if (transport.status == 200) { if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logInfo; log("received ajax autocomplete response. "+transport.responseText.length+" characters."); log("elementId="+elementId+"-autocomplete"); log(transport.responseText); } doUpdateChoices(transport.responseText); } else { if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logError; log("received ajax response with code: "+transport.status); } } } }; transport.send(null); } 
add: function updateChoices(){ selected=-1; var transport = wicketAjaxGetTransport(); if (transport == null){ if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logError; log("Ajax-transport not available!"); } return false; }  var value=wicketGet(elementId).value; transport.open("GET",callbackUrl+"&random="+Math.random()+"&q="+value,true); transport.onreadystatechange = function () { if (transport.readyState == 4) { if (transport.status == 200) { if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logInfo; log("received ajax autocomplete response. "+transport.responseText.length+" characters."); log("elementId="+getMenuId()); log(transport.responseText); } doUpdateChoices(transport.responseText); } else { if (wicketAjaxDebugEnabled()) { var log=WicketAjaxDebug.logError; log("received ajax response with code: "+transport.status); } } } }; transport.send(null); } 
context: 	function updateChoices(){		    selected=-1;	    var transport = wicketAjaxGetTransport();	    if (transport == null){       	    	if (wicketAjaxDebugEnabled()) {			var log=WicketAjaxDebug.logError;	     		log("Ajax-transport not available!");		}		return false;	     }	    var value=wicketGet(elementId).value;	    transport.open("GET",callbackUrl+"&random="+Math.random()+"&q="+value,true); 		transport.onreadystatechange = function () {			if (transport.readyState == 4) {				if (transport.status == 200) {				    if (wicketAjaxDebugEnabled()) {				                var log=WicketAjaxDebug.logInfo;        				        log("received ajax autocomplete response. "+transport.responseText.length+" characters.");				                log("elementId="+elementId+"-autocomplete");				                log(transport.responseText);			            }				doUpdateChoices(transport.responseText);		        } else {        	    	if (wicketAjaxDebugEnabled()) {	             	   var log=WicketAjaxDebug.logError;    	            	log("received ajax response with code: "+transport.status);   	            	}        	    }	        }            		    };	        	transport.send(null);	}
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/8520a7b4736acaa08bb53d628a153375df8192d4/wicket-autocomplete.js/clean/wicket-extensions/src/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js