I need to set extraLocale on djConfig on a Domino 8.5.3FP1 server.
(Package Explorer)
This is normally done like so:
xsp.client.script.dojo.djConfig=extraLocale: ['sv-se']
But Domino will escape my string into this:
extraLocale: [\'sv-se\']
Doesn’t matter if I do:
xsp.client.script.dojo.djConfig=extraLocale: ["sv-se"]
Same result.
Any ideas appreciated!
/J
Here comes an evil hack for this problem (tested in IE 8 & 9 & FF 15,16,17):
Add a javascript block before everyhing else in the beforePageLoad event
In this example I added the paramter directly to the XPage and add two extra locales.
Hope this helps and/or inspires for a cleaner solution 🙂
P.S.
The problem is that the additional djConfig parameters will be parsed internally and the slashes are escaped automatically.