Issue Details (XML | Word | Printable)

Key: ICE-3304
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Arran Mccullough
Votes: 4
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ICEfaces

Javascript Errors when inputRichText is used in a panelPopup

Created: 15/Jul/08 11:14 AM   Updated: 27/Oct/08 03:46 PM
Component/s: Components
Affects Version/s: 1.7, 1.7.1
Fix Version/s: 1.7.2

File Attachments: 1. File ICe-3304.war (6.08 MB)
2. File main.jspx (2 kB)

Image Attachments:

1. ie7-rendered-error.JPG
(26 kB)

2. screenshot-1.jpg
(124 kB)

3. screenshot-2.jpg
(107 kB)

4. screenshot-3.jpg
(192 kB)
Environment: IE7

Support Case References:
Workaround Exists: Yes
Workaround Description: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=8700&st=0&sk=t&sd=a&start=10


 Description  « Hide
There seems to be a few Javascript errors that are thrown when a rich text component is included in a panelPopup component. The errors are only thrown in IE7 and most likely thrown in IE6 also. The first error is when the visibility of the popup is set by using rendered attribute. The error is not thrown when the popup is first displayed but happen every time after the popup is displayed. Attached is a screenshot of the error (ie7-rendered-error.jpg). The details of the error are:
Line: 50
Char:945
Error:Unspecified Error
Code:0
URL:http://locathost:8084/Bug4942Example/block/resource/LTQ5MTYyMDg1Mw==/editor/fckeditor.html?InstanceName=_id10%3ArichTextTwo&Toolbar=Default

This error could be caused by using the rendered attribute to show/hide the popup.

The other error I noticed was when the visible attribute was used to show/hide the popup. The error code is 800a025e. This is a know issue with the FCKEditor api (http://www.fckeditor.net/forums/viewtopic.php?f=6&t=8700&p=22724&hilit=800a025e#p22724).

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tyler Johnson added a comment - 21/Jul/08 04:05 PM
The issue is due to the FCKeditor being used within a hidden div. We should look at adding this workaround to our code base.

Adnan Durrani added a comment - 22/Aug/08 06:18 PM
I have created an app using the attached JSP page, and tested it with IE 6 and 7 and didn't see any problem. Arran can you please retest it with the trunk head?

Arran Mccullough added a comment - 25/Aug/08 09:59 AM
Tested with the trunk and I'm still seeing the exceptions. Possibly you can send me your war file and I can test yours out.

Adnan Durrani added a comment - 25/Aug/08 10:55 AM
War file attached

Arran Mccullough added a comment - 25/Aug/08 02:01 PM
Tested the war file and I can still see the exceptions. The Javascript error appears after the popup has been displayed once. I suspect this is because of using the rendered attribute to show/hide the popup. If you change it to visible you will get the other java script exception (the one related to the FCKEditor).

Adnan Durrani added a comment - 25/Aug/08 03:03 PM
Did you clear the cache? As I can't see any javascript error on my PC using the IE7, and I don't see on test machine using IE6.

May be its my browser error exception setting, I'll try to change my browser setting.

Does this exception breaks the component functionality?


Arran Mccullough added a comment - 25/Aug/08 03:36 PM
Cleared the cache and still see the messages, I don't think its breaking functionality, just very very annoying, seems to happen when the popup is closed and opened.

Adnan Durrani added a comment - 25/Aug/08 05:08 PM
Hi Mandeep,

Arran can reproduce this error on his PC, and it doesn't happen on my PC. Can you please ask someone to deploy the attached war and run the demo under IE6 or 7 and let us know if you see any javascript exception.

Thanks,

Mandeep Hayher added a comment - 25/Aug/08 06:13 PM
Tested attached war file on tomcat6 with IE7, could not reproduce the problem.

Adnan Durrani added a comment - 26/Aug/08 11:26 AM
Arran can you please test your app on some other PC?

Thanks,

Arran Mccullough added a comment - 26/Aug/08 02:19 PM
Tested my app on Tylers machine and he was able to see the JavaScript errors. If the errors don't popup it should say Errors on page in the bottom left corner of IE.

Adnan Durrani added a comment - 27/Aug/08 03:31 PM
Didn't even see the error on the bottom left corner as well. :(

Adnan Durrani added a comment - 27/Aug/08 03:34 PM
Yip, I am not able to reproduce this error on my machine, so I am unable to fix it. Can you please run this attached war, and see if you get this error?

Thanks,

Yip Ng added a comment - 27/Aug/08 04:33 PM
.war file doesn't run. All I get is:

HTTP Status 404 - /ICe-3304/
description The requested resource (/ICe-3304/) is not available.

I accessed the app. thru. Tomcat Manager. And the manager showed that it had been deployed successfully and was up and running. No errors either in the Tomcat console.

Need to create an Intellij project to run?

Yip Ng added a comment - 27/Aug/08 06:15 PM
Problem reproduced on my machine. See screenshot-1. The error is popped up by first clicking Show, then clicking Close, then clicking Show again.

Arran Mccullough added a comment - 28/Aug/08 08:20 AM
This is the unspecified error. If you change how the popup is shown/removed to using visible instead of rendered it will through the 800a025e error which is a known issue with the FCKEditor. I have an example if you need one.

Yip Ng added a comment - 05/Sep/08 06:28 PM
Suggested fix applied to fix error 800a025e.
Don't know how to fix the other (Unspecified) error. The error message is useless, and when I say Yes to Debug, the script debugger just comes up totally blank.

Yip Ng added a comment - 12/Sep/08 01:01 PM
Finally got the error line to display in the Script Debugger. See screenshot-3. Now we need to figure out how to debug and fix this. The FCKeditor source code is actually scrambled and then zipped, so to debug and change it requires a few extra tedious steps.

Yip Ng added a comment - 26/Sep/08 11:58 AM
Suggested fix applied for error 800a025e. Issue of "unspecified error" split into ICE-3572.