Skip to content Skip to sidebar Skip to footer

Ajax Call Back Not Called. How To Tackle This?

Again I am here for your suggestions. I have some AJAX call for running code from my editor which is a PHP online editor. (You guys can check in my site.) I have some ajax call for

Solution 1:

enter image description hereAfter some test's, i thing the problem are the ++ in the url, try to encode:

encodeURIComponent

as this worked for me:

for ($x=0; $x<=10; $x%2B%2B)
  {
  echo "The number is: $x <br>";
  }

...

+ = %2B

the server got this: ($x=0; $x<=10; $x ) so it is infinite loop, as $x stays 0


Solution 2:

Replace your code with

<?php
$opstr = "";
for ($x=0; $x<=10; $x++)
 {
   $opstr .= "The number is: $x <br>";
 }
echo $opstr;
exit();
?> 

And try to execute your ajax call again.


Post a Comment for "Ajax Call Back Not Called. How To Tackle This?"