Hello JS developers,
in the Pagemanager thread I came across an interesting phenomenon regarding $plugin_cf and $plugin_tx in JS scripts.
A user had entered a "\n" into a config option. The config option was sent unmodified to a JS script. The JS interpreter failed with 'unterminated string literal', because JS (opposed to PHP) doesn't allow linebreaks in string literals!
IMHO every developer should replace newlines in $plugin_cf and $plugin_tx before using them in JS scripts.
Christoph
Config options and JS
Config options and JS
Christoph M. Becker – Plugins for CMSimple_XH