Answer the question
In order to leave comments, you need to log in
Left html in ajax response?
Good afternoon.
Some hell of a thing is going on.
There is a project, the customer took it to a local machine under a dedicated IP, it has its own LAMP, as I understood from the structure. There is also a dev copy on a normal, human hosting (where the problem described below is not present).
A form is sent on the site, we are waiting for the response in JSON, but instead of the normal response, json arrives with some incomprehensible divs, whose origin I cannot understand.
<div style="display: block;"><div style="display: block;"><div style="display: block;">{"type":"success","title":"\u0413\u043e\u0442\u043e\u0432\u043e!","text":"\u042d\u043a\u0437\u0430\u043c\u0435\u043d \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043c\u043e\u0434\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443."}
die(json_encode(array(
'type' => 'success',
'title' => 'Готово!',
'text' => 'Экзамен отправлен модератору на проверку. <a href="' . nc_folder_path(5) . '">Вернуться к курсам</a>'
)));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question