Command Aborted

Aug 13, 2008 at 2:12 PM
I am using a master page with .NET 3.5 and IE 6.0. I keep getting Command Aborted error after the control displays, and then page cannot be displayed.  Doesn't fail if there is no master page.
Developer
Aug 14, 2008 at 4:18 PM
Could you post code that generates the error?
Aug 14, 2008 at 9:33 PM
Edited Aug 18, 2008 at 3:33 PM
I have sent you an email with the code zipped.
 


From: yorkrj [mailto:notifications@codeplex.com]
Sent: Thursday, August 14, 2008 9:55 AM
To: Mazza, Rich
Subject: Re: Command Aborted [rte:33442]

From: yorkrj

Could you post code that generates the error?
Aug 14, 2008 at 9:33 PM
I am new to this forum.
I do have an extremely small example.
How do I post the code?
Richard Mazza
Web Application Developer
IT Core Systems Engineering
Intel Corporation. Folsom, California, USA
Office: (916) 356-3212
Cell: (916) 803-6259


From: yorkrj [mailto:notifications@codeplex.com]
Sent: Thursday, August 14, 2008 9:55 AM
To: Mazza, Rich
Subject: Re: Command Aborted [rte:33442]

From: yorkrj

Could you post code that generates the error?
Developer
Aug 15, 2008 at 12:04 AM
I created a Work Item in the issue tracker linked below. You can add a comment there and attach a file. I don't know why Codeplex decided not to allow attachments in the discussion area too.

Thanks!

http://www.codeplex.com/rte/WorkItem/View.aspx?WorkItemId=7312
Aug 18, 2008 at 3:32 PM
Thanks. Code is posted.
Aug 25, 2008 at 10:34 PM
Were you able to reporduce the problem with my sample code?
Developer
Aug 27, 2008 at 2:49 PM
Sorry, work has been really busy. I'll try to take a look this week.
Developer
Sep 4, 2008 at 5:58 PM
OK, I think I have a workaround/fix for you. If you move the Form tag from the Content Page to the Master Page, then the RTE seems to work. Placing the Form tag in the Master Page always seemed like better practice to me anyways. Give it a try and let me know how you make out.

I think it's a strange Javascript timing bug in Internet Explorer:
http://support.microsoft.com/default.aspx/kb/927917

Sep 4, 2008 at 6:04 PM
I moved the form tags to the master page. Same result.
Developer
Sep 4, 2008 at 6:17 PM
I must be doing something differently than you. Could you post your new example? Thanks!
Developer
Sep 5, 2008 at 1:21 PM
I discovered a fix for this problem. As it turns out, the MasterPage was just a red herring. The real cause is when the Form tag is not a direct descendant of the Body tag. Put another way, if you wrap the Form with anything like a Div, the RTE is going to throw this error. I'd like to know why it does that but for now there is a very reasonable workaround. Check out the file I uploaded in the Work Item and let me know if that works. The uploaded solution includes three examples, two that work and one that doesn't.
Sep 5, 2008 at 2:57 PM
That worked. Big Thanks.
Sep 5, 2008 at 3:32 PM
Here is a dumb question. How do I access the data in the control? RTE1.text is empty
Sep 5, 2008 at 6:54 PM
I have seen in the discussions that I need to call CopyText().
It is not declared?
Do I not need the CopyText function?
Richard Mazza
Web Application Developer
IT Core Systems Engineering
Intel Corporation. Folsom, California, USA
Office: (916) 356-3212
Cell: (916) 803-6259
Developer
Sep 5, 2008 at 7:29 PM
Yes, you will need to call the CopyText() javascript function. Like this...
<input type="submit" onclick="CopyText()" value="Post" />

Hope this helps.

On Fri, Sep 5, 2008 at 2:55 PM, richmazza <notifications@codeplex.com> wrote:

From: richmazza

I have seen in the discussions that I need to call CopyText().
It is not declared?
Do I not need the CopyText function?
Richard Mazza
Web Application Developer
IT Core Systems Engineering
Intel Corporation. Folsom, California, USA
Office: (916) 356-3212
Cell: (916) 803-6259

Read the full discussion online.

To add a post to this discussion, reply to this email (rte@discussions.codeplex.com)

To start a new discussion for this project, email rte@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Sep 5, 2008 at 7:59 PM
Edited Sep 5, 2008 at 8:16 PM
Now when I click the post button I get this
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$editor="<FONT face=Arial siz...").
Sep 8, 2008 at 7:32 AM
Ah, yes that nice little default security settings change from years back (.NET 1.1 timeframe??), seems to trip everyone the first time.

Add to your web.config:

<

 

pages validateRequest="false"></pages>

 

Sep 8, 2008 at 2:31 PM
I needed to create my own copy function because of using a master page.

<script type="text/javascript">
        function CopyHTML()
        {
            ctl00_ContentPlaceHolder1_editor = top.document.getElementById(editorId);
            ctl00_ContentPlaceHolder1_editor.value = richeditor.toHtmlString();
        }    
</script>

 


Works now

 

Developer
Sep 8, 2008 at 2:41 PM
Thanks for sharing your version of the CopyHTML function. We should probably integrate this into the project source at some point.

On Mon, Sep 8, 2008 at 10:31 AM, richmazza <notifications@codeplex.com> wrote:

From: richmazza

I needed to create my own copy function because of using a master page.


function CopyHTML()
{
ctl00_ContentPlaceHolder1_editor = top.document.getElementById(editorId);
ctl00_ContentPlaceHolder1_editor.value = richeditor.toHtmlString();
}


Works now

Read the full discussion online.

To add a post to this discussion, reply to this email (rte@discussions.codeplex.com)

To start a new discussion for this project, email rte@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Sep 9, 2008 at 4:00 PM
Is it possible to put more than one Rich Text control onto a page?
Developer
Sep 9, 2008 at 4:27 PM
Is it possible to put more than one Rich Text control onto a page? No. Sorry...