I am having a plugin on my wordpress site and this plugin is using ajax to send the information to database

the problem is that i am having subdomains on some pages on my website xxx.xyn.com

and the ajax is working fine on the main domain xyn.com but it’s not working on subdomains so how can i make it work on subdomains too ?

here is the code :

http_req = new XMLHttpRequest();
http_req.onreadystatechange = function() 
{eemail_submitresult(es_widget_form)};  // Passing the form to the submit request
http_req.open('POST', url, true);
http_req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_req.send(parameters);

so how can i make it works ?

Read more here: how to make ajax works on subdomains


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: