Is JS autocomplete diff from other functions?
<p>I have this code:</p>

<pre><code>$("input#autocomplete").autocomplete({
    source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
</code></pre>

<p>and it works.  If I try to put anything else in there like:</p>

<pre><code>$("input#autocomplete").autocomplete({
alert ("test");
    source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
</code></pre>

<p>then it doesn't work and gives this error: syntax error: unexpected string.</p>

<p>I was hoping to make an AJAX call before the source: call so that I can get the data to display to the user. Am I misunderstanding something in how this is supposed to work?</p>

<p>Thanks!!</p>
