M
M
Mikha Pankratov2016-02-29 17:07:34
Yii
Mikha Pankratov, 2016-02-29 17:07:34

Who faced this with an editable card?

Good afternoon,
straight to the point!
Tolya, I misunderstood kartik-a, but this is definitely not a feature) this is a bug
So I sent the data, the data was saved, I send back the answer. And the fact is that the input window is constantly in the process of loading.
Console response

>>Uncaught TypeError: html.replace is not a function

leaves my server
return ['output'=>'string', 'message'=>''];

Everything seems to be in the dock, a simple example.
Can anyone come across, thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bay, 2016-02-29
@kawabanga

there are usually two questions -
1) is there jquery?
2) isn't there too much jquery on one page?

A
alex-melodiev, 2017-08-09
@alex-melodiev

You need to do
return json_encode(return ['output'=>'string', 'message'=>'']);
Otherwise, it returns an object, or rather an archive. But not json.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question