Feb 16, 2014, 11:31 PM
[CLOSED] HtmlEditor.Call("append", "xxx") does not work
my ext.net version is 2.4
protected void MultiUpload1_FileUpload(object sender, FileUploadEventArgs e)
{
he_cont.Call("append", "ssssssssss");//the code can not work well, when i click upload button and selected a pic, there is no "ssssssssss" in the HtmlEditor,why?
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm20.aspx.cs" Inherits="extdemo.test.WebForm20" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" ></ext:ResourceManager>
<ext:MultiUpload ID="MultiUpload1" runat="server" AnchorHorizontal="25%" AutoStartUpload="true"
FileDropAnywhere="true"
FileSizeLimit="15 MB"
FileTypes="*.jpg;*.png;*.gif"
FileTypesDescription="All Files"
FileUploadLimit="100"
FileQueueLimit="0" OnFileUpload="MultiUpload1_FileUpload">
<Button>
<ext:Button ID="btn_upload" runat="server" Text="上传图片..." />
</Button>
<Listeners>
<UploadStart Handler="Ext.Msg.wait('上传中');" />
<UploadComplete Handler="Ext.Msg.hide();" />
</Listeners>
</ext:MultiUpload>
<ext:HtmlEditor runat="server" ID="he_cont" FieldLabel="内容" AnchorHorizontal="100%" AnchorVertical="-112"></ext:HtmlEditor>
</form>
</body>
</html>
Last edited by Daniil; Feb 18, 2014 at 2:31 AM.
Reason: [CLOSED]