[ http://jira.magnolia.info/browse/MAGNOLIA-1506?page=comments#action_14226 ] Oliver Lietz commented on MAGNOLIA-1506: ----------------------------------------
There is indeed JS which makes use of the property name (id/name) to construct the id/names of HTML elements for accessing them. This forces us to use a bi-directional en-/decoding of the ids/names. hexencoding/hexdecoding looks best for that purpose. HTML: use StringUtils.hexencode(string) for ids and names JS: use StringUtils.hexencode(string) when constructing function names or paramter values when they are (final) HTML ids/names DON'T use hexencode for parameter values in JS functions when it's the pure id/name, the JS has to encode the id/name itself when it's used for accessing HTML elements > controlType name (HTML/JavaScript) > ---------------------------------- > > Key: MAGNOLIA-1506 > URL: http://jira.magnolia.info/browse/MAGNOLIA-1506 > Project: Magnolia > Issue Type: Sub-task > Reporter: Oliver Lietz > Assigned To: Oliver Lietz > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
