|
![](/images/resource/spacer.gif) |
|
สอบถามเรื่องการใช้งาน Fullcalendar กับการแสดงผลที่ผิดปกติใน IE8 แต่รัน code เดียวกันใน Chorme และ Firefox ก็ปกติดี |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ขอสอบถามเพื่อนๆ พี่ๆ ที่เคยใช้งานเกี่ยวกับตัว Fullcalendar หน่อยครับ คือผมก็ลองสร้าง event ขึ้นมาปกติ แต่ผมลองใส่ event ของวันที่
2014-10-21 ไปทั้งหมด 6 events ผลที่ได้คือ ตัว IE8 สร้าง event ให้กับวันที่ 2014-10-21 แค่ 2 events ส่วนที่เหลืออีก 4 ไปปลงของวันอื่นๆ ดังรูปครับ ส่วนของ chorme และ firefox ก็แสดงผลได้ปกติ ผมอยากถามว่ามีใครเคยเจอปัญหาเหมือนผมมั้ยครับ แล้วแก้ไขกันยังไงครับ ขอบคุณครับ
Code (JavaScript)
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
// defaultDate: '2014-09-12',
editable: false,
eventLimit: false, // allow "more" link when too many events
events: [
{
title: 'Click for Google',
start: '2014-10-21'
},
{
title: 'Click for Google',
start: '2014-10-21'
},
{
title: 'Click for Google',
start: '2014-10-21'
},
{
title: 'Click for Google',
start: '2014-10-21'
},
{
title: 'Click for Google',
start: '2014-10-21'
},
{
title: 'Click for Google',
start: '2014-10-21'
}
]
});
IE8
![Fullcalendar - IE8 Fullcalendar - IE8](https://www.thaicreate.com/upload/stock/20141022085602.png?v=1001)
Chorme
![Fullcalendar - Chorme Fullcalendar - Chorme](https://www.thaicreate.com/upload/stock/20141022085633.png?v=1001)
Firefox
![Fullcalendar - Firefox Fullcalendar - Firefox](https://www.thaicreate.com/upload/stock/20141022085620.png?v=1001)
Tag : - - - -
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-10-22 09:07:01 |
By :
demiketcer |
View :
1062 |
Reply :
3 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
IE ทุก Version จะมีปัญหา
Code
$(document).ready(function () {
แนะนำให้ไปใช้
Code
$(window).load(function () {
คือตัว $(document).ready(function () { บางครั้ง IE มัน Render ตัว HTML ช้า แต่ บรรทัดนี้ทำงานแล้ว เมื่อวันทำงานแต่การ Render ยังไม่เสร็จสิ้น Event บางตัวจะไม่ทำงานครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-10-22 13:43:58 |
By :
mr.win |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
![](/images/bbcode/grin.gif?v=1001)
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-10-22 13:44:44 |
By :
+ + |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ขอบคุณครับ mr.win แต่ผมลองเปลี่ยนแล้วก็ยังได้ผลเหมือนเดิมครับ ผมเจอจุดแปลกๆอีกอย่างครับ คือ
ถ้าผมรันผ่าน IE โดยการดับเบิ้ลคลิ๊กที่ไฟล์เลยมันจะทำงานได้ปกติ เหมือน Chorme, firefox เช่น
รันโดยดับเบิ้ลคลิกที่ไฟล์ C:\AppServ\www\Tester_Booking\index.html
แต่ถ้าผมรันผ่านตัว appserv ด้วย IE จะทำงานแปลกๆ เหมือนรูปของ IE ด้านบนครับ เช่น
เข้าผ่านลิ้งค์ http://mth-lt-b09065/tester_booking/
ถ้าเป็นแบบนี้ผมต้องแก้ปัญหายังไงครับ รบกวนแนะนำหน่อยครับ
ขอบคุณครับ
|
ประวัติการแก้ไข 2014-10-29 15:12:56
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-10-29 15:11:53 |
By :
demiketcer |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|