jjrjr1
Posts: 942
|
| Posted: 04/30/2008, 11:41 AM |
|
Hi
Does anyone need code to fix a problem where the FCKeditor will cause a page to have a javascript error when a records visible property is set to false?
If so let me know.
I am told that this fix will be included in future CCS releases bit not told when.
John
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
wkempees
|
| Posted: 05/01/2008, 6:14 AM |
|
Is this it: http://forums.codecharge.com/posts.php?post_id=96343
"jjrjr1" <jjrjr1@forum.codecharge> schreef in bericht
news:54818bd3dc5100@news.codecharge.com...
> Hi
>
> Does anyone need code to fix a problem where the FCKeditor will cause a
> page to
> have a javascript error when a records visible property is set to false?
>
> If so let me know.
>
> I am told that this fix will be included in future CCS releases bit not
> told
> when.
>
> John
>
> _________________
> Cheers
> John
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 05/02/2008, 9:27 AM |
|
No
My fix is a little less code and I think a little simpler.
Also, This method will be easier for The Support Team to implement as a fix in CCS since it is only one line of code essentially and can be tied to the specific control during HTML generation.
Below is the code. Since each control that attaches an editor to it is generated all you have to do is conditionally attach each control as needed. This works since if a record is set to not visible, the HTML actually does not have the control defined.
In the case below cr_memberletters1 is the record that was set to not visible.
.//Attach FCKeditor @95-F50E89AC
var JRtest;
JRtest=typeof document.cr_memberletters1;// find out if the record is set to visible or not
if(JRtest!="undefined")//If the record is set to visible go make the attach
{
var cr_memberletters1ml_letter_FCK = new FCKeditor(this.getAttribute("id"));
cr_memberletters1ml_letter_FCK.BasePath = "FCKeditor/";
cr_memberletters1ml_letter_FCK.ToolbarSet = "Basic";
cr_memberletters1ml_letter_FCK.Height = "600";
cr_memberletters1ml_letter_FCK.Width = "600";
cr_memberletters1ml_letter_FCK.ReplaceTextarea();
}
//End Attach FCKeditor
Does that help?
If you have any questions, let me know.
John
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 05/02/2008, 9:28 AM |
|
Incidentally
I have sent this to Helen and she has passed it on to the developers for inclusion in some release in the future
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |