title: Solr & AJAX setting response query correctly
body: <p>I am using <a href="http://wiki.apache.org/solr/SolJSON" rel="nofollow">Solr's JSON output for AJAX example</a> as a basis for my project. However I have modified things by adding a drop-down menu in the form and added faceting to the params.</p>
  
  <p>Params:</p>
  
  <pre><code>function getstandardargs() {
      var params = [
          'wt=json'
          ,'facet=true'
          ,'facet.field=brand1'
          ,'facet.field=brand2'
          ,'facet.field=brand3'
          ,'facet.field=brand4'
          ,'facet.limit=2'
          ]; 
  </code></pre>
  
  <p>Drop- down menu:</p>
  
  <pre><code>&lt;form name="f1" onsubmit='xmlhttpPost("/solr/select"); return false;'&gt;
    &lt;p&gt;query: &lt;input name="query" type="text"&gt;  
    &lt;select id="Entity"&gt;
    &lt;option value="brand1"&gt;Universal&lt;/option&gt;
    &lt;option value="brand2"&gt;Paramount&lt;/option&gt;
    &lt;option value="brand3"&gt;Fox&lt;/option&gt;
    &lt;option value="brand4"&gt;Sony&lt;/option&gt;
  &lt;/select&gt; 
    &lt;input value="Go" type="submit"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I am trying to add the drop-down value to my facet query result as such:</p>
  
  <pre><code>var rsp = eval("("+str+")");
  var c=document.getElementById("Entity");
  cat=c.options[c.selectedIndex].value;
  var output=rsp.facet_counts.facet_fields;
  html += "Entity: " + output+'.'+cat;
  </code></pre>
  
  <p>My facet response sends back: <strong>Entity: [object Object].Universal</strong>. How do I add the drop-down value to the response query correctly so Solr can actually return the proper facet values? Many thanks.</p>