[Zope] Using colon and type identifiers in names with javascript

Paulo Eduardo Neves neves@email.com
Thu, 23 Sep 1999 20:56:10 -0300


Jim Sanford wrote:
> 
> I like the ability to type a variable for zope by using the vname:string syntax.
> However, javascript does appear to like variable names with embedded colons.

You have 2 ways to access variables in javascript. For example, to
access the input field called comment insite the subscription form you
should do:

document.subscription.comment
OR
document.subscription['comment']

If your variable name can't be a identifier you MUST use the second one:

document.subscriptin['comment:text']

I believe there's no need to modify Zope.
regards,
-- 
Paulo Eduardo Neves
maito:neves@email.com