How to populate jQuery Autocomplete form with non-hardcoded data?
<p>I have a form here that I can get to autocomplete with hard-coded items in the problem-categories text field: <a href="http://www.problemio.com/add_problem.php" rel="nofollow">http://www.problemio.com/add_problem.php</a> by using this jquery code:</p>

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

<p>What I am not sure how to do is to construct it using category names returned by making an ajax call.  Could someone help explain the flow or post some pseudo-code for how this is usually done?</p>

<p>Thanks!!</p>
