I always, always have a web application running that accepts the JavaScript AJAX call and then forwards it on to the Apache Solr request handler. Even if you don't control the web application, and can only add JavaScript, you can put up a API oriented webapp somewhere that only protects Solr for a couple of posts. Then, you can use CORS or JSONP to facilitate interaction between the main web application and the ancillary webapp providing APIs for Solr integration.
Of course, this only applies if you don't control the primary application. If you can use a Drupal or Typo3 to front-end Solr, than this is a great way to solve the problem. On Mon, Oct 20, 2014 at 11:02 PM, LongY <zhangyulin8...@hotmail.com> wrote: > thank you very much. Alex. You reply is very informative and I really > appreciate it. I hope I would be able to help others in this forum like you > are in the future. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/javascript-form-data-save-to-XML-in-server-side-tp4165025p4165066.html > Sent from the Solr - User mailing list archive at Nabble.com. >