dwr [referencec0-e4,referencec0-e5]
程序员文章站
2022-05-13 12:46:40
...
前台传入的值的数据类型不对, 转换成字符串
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type='text/javascript' src='/DwrDemo/dwr/interface/Pusher.js'></script>
<script type='text/javascript' src='/DwrDemo/dwr/engine.js'></script>
<script type='text/javascript' src='/DwrDemo/dwr/util.js'></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
function send(){
var _value = $("#to_id").val();
var data={to_id:String(_value)};
Pusher.send(data,function(count){
})
}
</script>
</head>
<body onload="dwr.engine.setActiveReverseAjax(true);">
<form method="post" action="">
<select name="to_id" id="to_id" multiple=”multiple” >
<option value=1 >张三</option>
<option value=2 >李四</option>
<option value=3 >王五</option>
</select>
<input type="button" onclick="send();" value="发送">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type='text/javascript' src='/DwrDemo/dwr/interface/Pusher.js'></script>
<script type='text/javascript' src='/DwrDemo/dwr/engine.js'></script>
<script type='text/javascript' src='/DwrDemo/dwr/util.js'></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
function send(){
var _value = $("#to_id").val();
var data={to_id:String(_value)};
Pusher.send(data,function(count){
})
}
</script>
</head>
<body onload="dwr.engine.setActiveReverseAjax(true);">
<form method="post" action="">
<select name="to_id" id="to_id" multiple=”multiple” >
<option value=1 >张三</option>
<option value=2 >李四</option>
<option value=3 >王五</option>
</select>
<input type="button" onclick="send();" value="发送">
</form>
</body>
</html>
上一篇: 馆陶公主到底是什么样的 馆陶公主有着什么样传奇的人生
下一篇: 如何让你的APP有人气?
推荐阅读
-
jsp dwr级联效果代码
-
纯JSP+DWR实现三级联动下拉选择菜单实现技巧
-
DWR3 访问WEB元素的两种方法实例详解
-
DWR学习
-
DWR util.js 学习笔记 整理
-
[原创]Ajax和LazyLoad的冲突 Ajaxjson应用服务器DWR框架
-
项目中dwr有多个配置文件,tomcat启动Missing config file: 'WEB-INF/dwr/dwr-*.xml'解决方法!
-
项目中dwr有多个配置文件,tomcat启动Missing config file: 'WEB-INF/dwr/dwr-*.xml'解决方法!
-
彻底解决dwr框架的failed to read input的问题 DWR框架GoogleSUN
-
彻底解决dwr框架的failed to read input的问题 DWR框架GoogleSUN