Am 08.08.22 um 17:29 schrieb list@ptld.com:
On 08-08-2022 12:53 am, Reindl Harald wrote: bnreaking news: you can echo <script>-tags and javascript from PHP
Yes, yes you can. Pretty common knowledge even a script kiddie would know.
However roundcube functions this way:
$this->include_script('stay_loggedin.js');
and wont accept PHP tags in the *.js file. You also can't echo the javascript from the calling PHP file because then the <script> is placed at the top of the document (out of order) when it needs to be after the HTML elements the script is modifying. Again, basic HTML/Javascript stuff even a script kiddie would know
at least now the problem is described properly