F
F
freelion932019-09-05 12:21:30
symfony
freelion93, 2019-09-05 12:21:30

How to get value of Javascript-Listener in Symfony?

I add my listener as follows, javascript on the side receives a value from the client, let's say the screen resolution and returns return, how do I get it back in symphony in php?

$eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function () {
    script('myapp', 'script');  // adds js/script.js
});

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
irishmann, 2019-09-05
@freelion93

AJAX

K
Kovalsky, 2019-09-05
@lazalu68

Read the official doc , it seems to describe a mechanism for automatically obtaining data in the backend from registered handlers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question