<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="/common/itsvtag_nx.jspf" %>
<%@include file="/common/itsvhead_nx.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/>
<meta http-equiv="Expires" CONTENT="0"/>
<meta http-equiv="Cache-Control" CONTENT="no-cache"/>
<meta http-equiv="Pragma" CONTENT="no-cache"/>
<link href="/oa/nw/style/style.css" rel="stylesheet" type="text/css" />
<!-- 日历 -->
<link rel='stylesheet' href='/oa_resource/css/theme.css' />
<link href='/oa_resource/css/fullcalendar.css' rel='stylesheet' />
<link href='/oa_resource/css/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='/oa_resource/js/jquery-1.9.1.js'></script>
<script src='/oa_resource/js/jquery-ui-1.10.2.custom.js'></script>
<script src='/oa_resource/js/fullcalendar.js'></script>
<script>
$(document).ready(function() {
var calendar =$('#calendar').fullCalendar({
header:{
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
firstDay: 1,
theme: true,
editable: false,//日历项拖拽
allDaySlot : false,
events:
function(start, end , callback){//生成日历 //alert(calendar.fullCalendar('getDate'));
var events = [];
timeStart=$.fullCalendar.formatDate(start,"yyyy-MM-dd HH:mm:ss");
timeEnd=$.fullCalendar.formatDate(end,"yyyy-MM-dd HH:mm:ss");
alert(timeStart);
alert(timeEnd);
$.ajax({
'url':"rcjh.rcjl.do?m=queryrcjl&time="+new Date().getTime(),
'data':{
timeStart:timeStart,
timeEnd:timeEnd
},
'dataType': 'json',
'type': 'post',
'error': function(data){
alert("保存失败");
return false;
},
'success': function(doc) {
$(doc).each(function(i) {
events.push({
//sid: doc[i].id,
//uid: doc[i].id,
title: 'Daily Scrum meeting',
start: doc[i].kssj,
end: doc[i].jssj,
//fullname: doc[i].groupName,// 此处改变,列表和明细都会改变
//confname: doc[i].orderName,
//groupPersons: doc[i].personNames, confshortname: doc[i].orderName.substring(0, 1),
confcolor: '#ff3f3f'
//confid: 'test1',
//allDay: false,
//topic: doc[i].orderName,
//description : doc[i].remark,
//id: 1
});
});
callback(events);//
}
});
}
});
});
</script>
<title>管理系统</title>
</head>
<body style="background:#fff;">
<div id='calendar'></div>
</body>
</html>
问题:
不能进入rcjh.rcjl.do中的queryrcjl方法。跳转页面加载后直接报错---“保存失败”
url地址正确
------解决方案--------------------
rcjh.rcjl.do方法名就是rcjh.rcjl?如果不是方法名,一噶是rcjh/rcjl.do吧
------解决方案--------------------
保存失败 是 后台还是哪里。debug 试试
------解决方案--------------------
路径问题