PHP Classes

Ajax problem on one host

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Ajax problem on one host  
Subject:Ajax problem on one host
Summary:Ajax response getting prepended with part of domain
Messages:1
Author:steve
Date:2016-11-15 11:03:09
Update:2016-11-15 12:15:14
 

  1. Ajax problem on one host   Reply   Report abuse  
Picture of steve steve - 2016-11-15 12:15:14
Hi,

I have some ajax scripts that call php pages and I have a simple response depending on the reults of the PHP script.

Reponses being like:
If an error in the php it responds:
echo $_GET["jsoncall"].'({"response":9})';
If all OK it responds:
echo $_GET["jsoncall"].'({"response":2})';

This all works fine on three hosts but on one I have a problem that the response doesn't get processed as it prepends the domain name to the response like:

WhocanhelpmejQuery111208119818157206108_1479207010168({"response":2})

On the other 3 hosts I get the expected response which is:
jQuery111208119818157206108_1479207010168({"response":2})

Any ideas on how I can stop the Whocanhelpme (part of the domain name) being pre-pended please.

regards
Steve