Hi All,
I'm looking for a best way of insuring that my JavaScript function
names, HTML form names, etc... don't clash with other portlets on
same page.
Is there a provided, existing, solution for this in Jetspeed?
I was looking at using the Portlet ID of Portlet interface as the
trailing part of the names but, however, the IDs don't seem to be
valid identifiers for JavaScript functions. (Seem to have "-" in the
ID)
I perhaps also could create a new entry in the context named
"nameSpace".
Then in Velocity, for example, use it as follows:
function validate${nameSpace}() {
}
<form name="myForm${nameSpace}">
</form>
In this case, where would it be the best place to add the "nameSpace"
entry to the context? I don't want the other developers in my team to
have to do this. They must just use it.
Otherwise, is there a way for me to define a algorithm for generating
the Portlet ID which I could then use as trailing part of my
JavaScript identifiers, form names...?
Any suggestions.
Thanks,
--Alen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]