Does google js api make XHR?
I am trying to deconstruct an autocomplete that someone else wrote who is even more clueless than me. She basically did a cut and paste of an example she found somewhere and it worked. This example uses google apis, so I am trying to find out if google api makes the XHR or what is going on because I want local copies of jquery, ui, etc. Let me show you the code and please if there is a brief explanation as to why it would work but attempting the same with latest versions of jquery, and a theme roller UI will not:
- <head>
<title>Uses google api</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1");
</script>
- <body>
<div>
<input type="text" id="auto">
<script>
$('#auto').autocomplete('getdata.jsp')
</script>
</div>
</body>
So this works, but when I replace the google stuff with my copies of jquery, etc it does not. So is google taking care of the XHR or what? Thanks for any explanation.