Answer the question
In order to leave comments, you need to log in
500 error, which is No!?
There is a code:
$.ajax({
type : 'POST',
url : 'ajax.php',
dataType : 'html',
data : { page : page },
}).done(function(data){
console.log(data);
});
page : page
Answer the question
In order to leave comments, you need to log in
It cannot be that there is no error if the browser shows it.
Open the "Network" tab in "DevTools" and look at the server's response to this request.
What you can try:
1) Put try/catch in ajax.php and send an error code to soap
2) Put another browser on the same smart, see what happens
3) In the settings of this browser, play around with the header sent, usually on mobile phones there is a browser setting like "mobile mode / PC mode"
4) Create a type form <form method="post" action="ajax.php">
and send from smart the same data that is sent by ajax
5) Clear the ajax.php file, leave only var_dump($_POST), see what causes the error, code handler in php or something else. If the error disappears, what to look at what kind of code.
6) Also try on different Internet, for example, mobile and wi-fi. On Habré, they often write how opsos interfere with traffic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question