This is a migrated thread and some comments may be shown as answers.

dialog problem in frameset

5 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
andrew wisener
Top achievements
Rank 1
andrew wisener asked on 08 Jan 2008, 03:11 AM
hello,

I seem to have an issue with the dialogs in prometheus radeditor when the page containing the editor is in a frame in a frameset.

The dialogs appear at the bottom of the page and cannot be moved and don't fully work, it is indicating a javascript error.

If I copy the url and paste it into a non frameset page it loads and works without any dialog issues

5 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 08 Jan 2008, 08:57 AM
Hello,

I just created a simple page with three frames and each one had an editor inside it. The editor dialogs looked and behaved OK in all three frames.

The problem might be related to the editor page doctype. Make sure you have an XHTML compliant doctype for the frame which contains the editor. For example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

If you see a JavaScript error when the page loads or when a dialog is opened, please give us the error details so we can investigate further. If possible, send us the code for the frameset page and the frame, which contains the editor.

Sincerely yours,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
andrew wisener
Top achievements
Rank 1
answered on 08 Jan 2008, 09:34 PM
Hello,

some more details...

It works fine on firefox and IE6, not on IE7

here is my doctype for the frame

<!

doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

and for the container page

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

the error in IE7 I get says

line 6, char 56787 invalid argument

0
Lini
Telerik team
answered on 09 Jan 2008, 07:31 AM
Hi,

I am still unable to reproduce the problem on IE 7 even with the doctypes you sent. Please open a formal support ticket and send us the frameset page and the page containing the editor. I hope this way we can track down the bug and fix it in time for the service pack release.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Cliff Chavis
Top achievements
Rank 1
answered on 06 Dec 2008, 02:27 PM
I had the same problem and was able to solve it.  Mine started out that I was taking over a piece of a project that was a change request.  We were using an older version of the editor and I needed to use the newer editor.  I also created a custom button/dialog for the control.  So I was testing the control in a single page by itself and it worked fine.  When I moved it to the testing server and ran it in the frameset, none of the dialogs worked.  My first attempt at fixing it was following this post and changing the DOCTYPE.  That still didn't work.  I finally figured out that the FRAMESET code was not really formatted correctly.  The last developer (really old code too) had put frameborder="yes" for one frame and frameborder="no" for another.  When I changed the values to a "1" and a "0" instead, everything started working correctly.  The bottom line is that for it to be truely XHTML compliant, everything must be correct.

I hope this helps!
0
Rumen
Telerik team
answered on 08 Dec 2008, 11:24 AM
Hi Cliff,

Thank you for sharing your solution with our community! I updated your Telerik points for that.

I created also a KB article on the subject that could be helpful for your fellow developers. Here it is:

Sys.ArgumentOutOfRangeException dialog problem when RadEditor is in a Frameset .

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
andrew wisener
Top achievements
Rank 1
Answers by
Lini
Telerik team
andrew wisener
Top achievements
Rank 1
Cliff Chavis
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or