Ajax in Client-Side-Events (v2018)

=== CODES ARE v2018 ===

Edit Tag → Client Side Events
“change”: function(e) {
var something;
ew_Ajax(‘<?php echo ew_Encrypt("SELECT ...blahblah.... = {query_value}") ?>’, something, function(result) {
// codes
});
}

The codes work fine.

Problem:

  • Open userevt14.js
  • Above query is not encrypted.

That’s not the case if I move the code into Startup Script.

Questions:

  1. Is it the default that ew_Encrypt doesn’t work with Client-side-events ?
  2. If yes, is it the same case with newest phpm?