6 Replies Latest reply on Apr 30, 2012 5:00 AM by Thomas Howard

    No Locale Passed with AJAX Requests from RhoElements

      When sending ajax requests from RhoElements, the locale isn't being passed as part of the request. Everything works fine for page requests, just ajax requests, which makes me think I need to include something in the request header. Below is the js being used to create the request:


      function makeAjaxPostRequest(servlet,params,callbackFunction) {

      xhr_getSchemas = getXMLHttpRequest();

      xhr_getSchemas.open("POST", servlet, true);

      xhr_getSchemas.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

      xhr_getSchemas.setRequestHeader("Content-length", params.length);

      xhr_getSchemas.setRequestHeader("Connection", "close");

      xhr_getSchemas.onreadystatechange = callbackFunction;





      This doesn't seem to be a problem with other browsers. We've tested in Chrome, Opera (mobile and desktop), IE, FF and Safari. Only with RhoElements is this an issue.


      Thanks in advance for your help.