|
|
|
รบกวนสอบถามเรื่อง jQuery full cleander ค่ะ เมื่อ up ขึ้น host ตัว even จะไม่โชว์ค่ะ |
|
|
|
|
|
|
|
code ด้านล่างค่ะ ทดสอบกับเครื่อง pc window 7 ข้อมูล even โชว์ปกติค่ะ แต่ พอ upload ขึ้น host ข้อมูลไม่โชว์ค่ะ
Code (PHP)
<?php
session_start();
if($_SESSION['u_id']=="") {
echo "<META HTTP-EQUIV=Refresh content=0;URL=login.php>";
}
$u_id = $_SESSION['u_id'];
$sales_code = $_SESSION['sales_code'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
<title></title>
<link rel='stylesheet' type='text/css' href='fullcalendar/redmond/theme.css' />
<link rel='stylesheet' type='text/css' href='fullcalendar/fullcalendar.css' />
<script type='text/javascript' src='fullcalendar/jquery/jquery.js'></script>
<script type='text/javascript' src='fullcalendar/jquery/jquery-ui-custom.js'></script>
<script type="text/javascript" src="fullcalendar/fullcalendar.min.js"></script>
<script type="text/javascript">
$(function(){
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'month',
center: 'title',
right: 'prev,next today'
},
selectable: true,
selectHelper: true,
editable: false,
events: "getCalendar.php?code=<?=$_SESSION['sales_code'];?>&gData=1",
eventClick: function(event) {
if (event.url) {
window.open(event.url);
return false;
}
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
});
////////////////
</script>
<style type="text/css">
body{
padding:0px;
margin:0px;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
}
#calendar{
width:60%;
margin:auto;
}
</style>
</head>
<body>
<br />
<br />
<div id='calendar'></div>
</br>
</body>
</html>
Tag : PHP, Ajax, jQuery
|
|
|
|
|
|
Date :
2014-06-13 14:49:17 |
By :
supattra.s |
View :
825 |
Reply :
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลองเปลี่ยนเป็น
Code (PHP)
events: "getCalendar.php?code=<?php echo $_SESSION['sales_code'];?>&gData=1",
ครับ
|
|
|
|
|
Date :
2014-06-13 16:40:27 |
By :
iieszz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|