Re: Urgent - help re. delays

  •  05-23-2007, 4:05 PM

    Re: Urgent - help re. delays

    I have a similar problem with I open the editor in a popup window.

    i have a main page with asp.net button pointing to popup page and then I submit form data to popup

    Main Page

    function OpenPopupTest()
    {
        window.open('' ,'Popup','height=500,width=700,top=0,left=0,status=no,toolbar=no,menubar=yes,resizable=yes,location=no,scrollbars=yes')
        aspnetForm.target='Popup'
        //set the target/action back after 1000 milliseconds
        window.setTimeout("aspnetForm.target='_self';aspnetForm.action='HomePage.aspx'",1000);
    }

    <asp:Button ID="OpenPopup" OnClientClick="OpenPopupTest()" runat="server" Text="Button" PostBackUrl="~/Modules/Editor/Popup.aspx" />

     

    Popup Page


    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="EmailCreatePopup.aspx.vb"
        Inherits="Modules_Email_EmailCreatePopup" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Email</title>
        <script language="javascript" type="text/javascript">
           KEYDOWN_NOTIFYCHANGEDELAY=5000
        </script>
    </head>
    <body class="noteBody">
    <form id="form1" runat="server">
     <CE:Editor ID="EmailBody" runat="server" Width="100%" Height="360px" BorderWidth="0"
                            BackColor="#C3DDFF" ConvertHTMLTagstoLowercase="false" ShowTagSelector="false">
                            <FrameStyle BackColor="White" BorderColor="#C3DAF9" BorderStyle="Solid" BorderWidth="1px"
                                CssClass="CuteEditorFrame" Height="310px"/>
                        </CE:Editor>
    </form>
    </body>
    </html>

     

    If i run this from regular page after post instead of popup, runs fast, else slow delay.  Would there be pathing issue in popup?

View Complete Thread