K
K
klem652021-08-31 17:10:32
Drupal
klem65, 2021-08-31 17:10:32

How to execute commands in response in js received from server via AjaxResponse?

I make an Ajax request from Js to the server, I get a response in the form of AjaxResponse commands. I can display them in the console, but I do not understand how to run them. 612e374b26174908558952.pngGoogle didn’t work, basically all instructions are not for Ajax requests 612e37fa6a509562582058.pngand this is what it looks like in the console612e3814eb1f5390559595.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2021-08-31
@klem65

See what the Drupal.Ajax.prototype.success method does

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question