1.5+
Ajax Requests
Ajax requests

Prior to spoova 1.5, ajax urls do not support the use of special characters. A sample of this is explained below.

<script>

  let xhttp, url, params;

  xhttp = new XMLHttpRequest();

  url = "some-url";
  params = window.location.search;

  xhttp.onreadystatechange = function(){

  }

  xhttp.open("GET", url + params, true);
  xhttp.setHeaders('X-Requested-With', 'xmlHttpRequest');
  xhttp.send();
  

</script>
    
In the example above, when request parameters for post or get method are forwarded to the server, the parameters are not forwarded due to a bug in the url structure that prevent urls that have special characters from forwarding parameters supplied. This means that we have to change the url "some-url" to "someUrl" or alphabets only in order to be able to forward the request parameters. This also affects commonly used underscore "_" character. In version 1.5.0, this bug has been resolved and ajax urls can now receive request paramaters from urls as long as the url is of a valid structure.