Hi,
I have definition of a menu in my database. When I try to seralize menu to JSON everithing generates ok, except following:
PHP Code:
"handler": "function() {...}"
Of course in this case javascript does not work. It should be without brackets.
Is there any simple solution to this problem? Can I write a handler definition some other way?
If I put there a function name it will be:
PHP Code:
"handler": "this.openWindow"
Which will still result in an error.
Is there any option to generate this without manually operate on a String?
PHP Code:
"handler": this.openWindow
Best regards,
Bojan