Re: Cute editor frame size issue, child window loosing focus, very urgent.

  •  11-14-2005, 5:21 PM

    Re: Cute editor frame size issue, child window loosing focus, very urgent.

     gurpreet wrote:
    2) we have view button in the same screen,

    we are using following code to open child window , in this case child window is loosing focus.

    it was not in the case of cute soft version 4.

    waiting for your suggestions, thanking you.

    ------------------------------------------------------------------------------------------------------------------
    protected void view_Clicked(object Src, EventArgs E)
    {
    Response.Write("<SCRIPT LANGUAGE='JavaScript'>");
    Response.Write("var winprops ='height=685,width=805,top=15,left=105,scrollbars=yes,resizable=no';");
    Response.Write("var win = window.open('AlViewEmailContent.aspx?co_id=" + m_sCompanyId + "', 'chkDetail1', winprops);");
    Response.Write("if (parseInt(navigator.appVersion) >= 4)");
    Response.Write("win.window.focus();");
    Response.Write("</SCRIPT>");
    }
    --------------------------------------------------------------------------------------------------------------------

     
     


    Can you paste the code of the AlViewEmailContent.aspx?

    This example may help: 
     
     
    In the kid.aspx, please note that the following funtion: 

    <body onload="setTimeout(getparentdata,1000);" bgcolor="#efefef">
     
    function getparentdata()

     // get the cute editor instance
     var editor1 = document.getElementById('<%=Editor1.ClientID%>');
     
     // Set the editor
     editor1.setHTML(v_parentform.elements[v_field].value);
     
    }
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread