I am creating form elements with names that I'd like to reflect th
Dublin Core metadata set, e.g. DC.Date, DC.Subject, etc.
However, when I use them with dots, it completely confuses JavaScript
e.g.
theFunction(doc ument.forms.for mName.elements. inputName)
doesn't work if 'inputName' is DC.Date, i.e.
theFunction(doc ument.forms.for mName.elements. DC.Date)
I've tried
theFunction(doc ument.forms.for mName.elements. 'DC.Date')
and
theFunction(doc ument.forms.for mName.elements. DC\.Date)
and also
var theName = 'DC.Date';
theFunction(doc ument.forms.for mName.elements. theName);
but all fail. Is there any way around this?
PS. Using form elements that match the DC standard names is very
handy for readability and when passing stuff back to the server
-
Rob
Comment