title: How to send XML request in JavaScript
body: <p>I have an eye tracker (mirametrix) running as a server in localhost. In order to capture data from this I should send a xml request as given below;</p>
  
  <pre><code>SEND:&lt;GET ID="TIME_TICK_FREQUENCY" /&gt;
  </code></pre>
  
  <p>I have a web-app running as the client and I need to make a request to this server through that. I wrote the following code but it doesn't seem to send the request properly to the server.</p>
  
  <pre><code>var request = $.ajax({
              url: "http://127.0.0.1:4242",
              type: "GET",
              dataType: "xml",
              data: { 
                  data:'&lt;GET ID="TIME_TICK_FREQUENCY" /&gt;'
  
              },
  
          });
  </code></pre>
  
  <p>Can someone please help me with this ?</p>
  
  <p>Thanks in advance</p>