<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'aa.jsp' starting page</title>
<link rel="stylesheet" href="/flowctrl/js/kindeditor/default.css"
type="text/css"></link>
<script type="text/javascript"
src="/flowctrl/js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="/flowctrl/js/kindeditor/zh_CN.js"></script>
<script type="text/javascript"
src="/flowctrl/easyui/jquery-1.8.0.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
K('input[name=getText]').click(function(e) {
var aa = encodeURI(editor.html(),"UTF-8");
$.ajax({
url:"/flowctrl/saveMessageAction.do",
type: "get",
data:{message:aa},
contentType: "application/x-www-form-urlencoded; charset=utf-8",
dataType: "text",
success: function(data){
alert("发布成功!");
$("#content").html("");
},
error: function(data){
alert("发布失败!");
}
});
});
});
</script>
</head> <body>
<div align="center">
<h2 style="color: ">
流控系统公告消息发布
</h2>
<form>
<textarea name="content" id="content" idd
style="width: 700px; height: 200px; visibility: hidden;">注意:</textarea>
<input type="button" id="send" name="getText" value="发布" />
</form>
</div>
</body>
</html>

最新文章

  1. ASP.NET MVC中给所有的cshtml页面引用命名空间
  2. [leetcode 27]Implement strStr()
  3. phpexcel相关函数
  4. 关于 profile文件(转)
  5. Office 365 Certificate Exam Resources
  6. Mindjet.MindManager“参数错误”解决办法,适用于9.0、10.0和14.0
  7. WebUI框架
  8. fedora
  9. android activity启动的4种方式记录及打开其他应用的activity的坑
  10. windows驱动开发推荐书籍
  11. 如何获取浏览器的DNS解析时间
  12. Android实现异步处理 -- HTTP请求
  13. Linux管理日记(一)
  14. Java并发之乐观锁悲观锁
  15. java篇 之 流程控制语句
  16. Windows查看服务
  17. mysql DISTINCT的用法
  18. iOS开发-- Xcode 6单元测试
  19. 集训DAYn——拉格朗日插值法
  20. P4306 [JSOI2010]连通数

热门文章

  1. ADO.NET教程(1)初识ado.net
  2. c#学习基础(2)存储、值类型和引用类型、变量
  3. js系列之js简介
  4. 重构指南 - 尽快返回(Return ASAP )
  5. TopcoderSRM679 Div1 250 FiringEmployees(树形dp)
  6. git 创建远程版本库(亲测有效)
  7. 菜鸟学习Spring——SpringMVC注解版控制层重定向到控制层
  8. Hadoop -&gt;&gt; MapReduce编程模型
  9. 1.appium介绍
  10. 统计一段文章的单词频率,取出频率最高的5个单词和个数(python)