RadEditor with embedded video hangs IE6

3 posts, 0 answers
  1. Phil
    Phil avatar
    23 posts
    Member since:
    Sep 2010

    Posted 22 Oct 2010 Link to this post

    Hi All,

    I have an issue where if I use the MediaManager to link in a wmv file to the RadEditor it hangs IE6 on the following Reponse.Redirect.

    On the Button_Click event I am calling a method to save to the database.
    <asp:Button runat="server" ID="SubmitButton" Text="Submit For Approval" CausesValidation="true" OnClick="SubmitButton_Click" OnClientClick="javascript:window.scrollTo(0,0);" />

    Which calls the method in the code behind.
        Protected Sub SubmitButton_Click(ByVal sender As ObjectByVal e As EventArgsHandles SubmitButton.Click
            CreateNewArticle()
        End Sub

        Private Sub CreateNewArticle()

            Dim newArtID As Int32 = 0
            Dim body As String = String.Empty
            Dim art As Article = Nothing
            Dim artBody As ArticleDetail = Nothing

            Try
                'create the new article
                art = Article.CreateArticle(-1,
                                            articletitle.Text,
                                            articlesummary.Text,
                                            False,
                                            Date.Now,
                                            System.Web.HttpContext.Current.User.Identity.Name.Remove(0, InStr(System.Web.HttpContext.Current.User.Identity.Name, "\")).Replace("."" ").ToUpper,
                                            GetVisibiliy)
                art.UpdatedDate = Date.Now

                If articlebody.Content.Contains("<img"Then
                    art.ThumbnailImage = Mid(articlebody.Content, InStr(articlebody.Content, "src=") + 5, InStr(InStr(articlebody.Content, "src=") + 5, articlebody.Content, "/>") - (InStr(articlebody.Content, "src=") + 5)).Replace(Chr(34), "").TrimEnd
                Else
                    art.ThumbnailImage = "~/Content/Images/JCBLogo.png"
                End If

                'create the article detail
                artBody = ArticleDetail.CreateArticleDetail(-1, -1, articlebody.Content.Replace("&nbsp;"" "))

                'save to the db
                Using insertContext As New JCB_IntranetEntities
                    insertContext.AddToArticles(art)
                    insertContext.AddToArticleDetails(artBody)
                    insertContext.SaveChanges()
                End Using

                newArtID = art.ArticleID

            Catch ex As Exception
                ErrorLogging.AddNewErrorLogEvent(ex)
                Throw
            Finally
                If articlebody.Content IsNot Nothing Then
                    articlebody.Content = Nothing
                    articlebody.Dispose()
                End If
                If artBody IsNot Nothing Then artBody = Nothing
                If art IsNot Nothing Then art = Nothing
            End Try

            'If the save worked then redirect to the article
            If newArtID > 0 Then
                Response.Redirect(String.Format("~/Articles/Article.aspx?ArticleID={0}", newArtID))
            End If

        End Sub
    The data saves correctly but hangs on the Response.Redirect at the bottom of the method. I have checked the Page Load in the called page and the code runs through as expected. I did check to see if it was a problem with the target page by changing the redirect to www.google.com and experienced the same behaviour.

    This only seems to happen if I embed a video into the editor, if I use just text & images the save and redirect works without issue. I have also confirmed that it works in Firefox & IE7/8.

    Any thoughts you have would be welcome.

    Regards

    Phil Murray
  2. Phil
    Phil avatar
    23 posts
    Member since:
    Sep 2010

    Posted 25 Oct 2010 Link to this post

    Anyone have any ideas?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 25 Oct 2010 Link to this post

    Hi Phil,

    Unfortunately, I am not aware of such a problem and you are the first to report it. It is definitely an IE6 browser bug, because it does not exist in the newer versions.

    The problem is most likely related to the submitted content. Could you please perform a test by replacing RadEditor with a normal Asp:TextBox control and submit the same content and redirect the page to the new page?

    If you are unable to reproduce the problem with the textbox, please isolate it in a sample working project and send it for examination by opening a support ticket. I will debug it and find what part of the content is hanging the browser.

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top