We've spent some time researching the bug I posted a few days ago; in
Spectra 1.51, you cannot include a period in the name= attribute of
cfa_htmleditor. This was problematic because control handlers use periods in
their naming scheme. The following is a detailed description of the problem
and an appropriate fix from Ryan Emerle, one of our other developers (thanks
much Ryan!)
-Matt
The ActiveX control from EKtron packaged with Macromedia Spectra 1.51 for
windows is unable to handle form fields with periods (.) contained within
the name, such as field names generated when using control handlers in
Spectra.
The problem is due to javascript misinterpreting the period as a class
member delimiter. The normal workaround is to address the variable
differently.
--- Problem --
If you have a controlHandler (or form) named "article" and a form field
named article.content, the control tries to access:
window.document.article.content
it renames it's internal reference (where eweparticle.content is the "id"):
window.document.eweparticle.content
The normal workaround is change the reference to:
window.document.forms[article][eweparticle.content]
--- Workaround --
The code is located in /InetPub/allaire/spectra/ewebeditpro/ewep.js (or
comparable directory). In the javascript function eWebEditProEditor_load,
we find the problem:
if (this.isIE)
{
this.editor = eval (this.editorWindow + '.document.' + id);
}
Which will translate in to "window.document.eweparticle.content" as
mentioned above. To fix this replace the code above with:
var formName;
if (this.isIE)
{
var aryNames = findFormAndElementName (this.linkName,
this.evalWindow);
formName = aryNames[0];
this.editor = eval (window.document.forms[formName][id]);
}
This will allow it to work with dotted field names as well as non-dotted
field names.
NOTE: the actual code has most whitepace removed. I sent it through the
UNIX "indent" utility in order to read it. However, to make the above
change, it will probably not be necessary to do that.
---
Ryan Emerle ([EMAIL PROTECTED])
Interactive Network Systems - http://www.interactivenetsys.com
Web Development
Matthew I. Fusfield
Web Development Manager
InterActive Network Systems, Inc.
[EMAIL PROTECTED] - 856-227-4428 ext 15
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.