2010-04-25 67 views
0

我已經下載了fullCalendar包幷包含jquery.js文件和日曆工程,但是當我嘗試打開jQuery對話框時,它將無法打開!fullCalendar和對話框問題

我已經從jquery.com下載了jquery包,並從那裏包含了js。 現在對話框可以工作,但不是日曆!

我在做什麼錯?

所有的jquery文件都在相同的位置。

感謝您的幫助。

+0

你有什麼錯誤嗎? – SLaks 2010-04-25 19:56:27

回答

0

FullCalendar包帶有jQuery v1.3.2,而最新版本的jQuery是1.4.2。它還使用jQuery UI核心,可調整大小和可拖動v1.7.2(不是Modal),最新的這些文件將是1.8.1。因此,我不知道你正在使用哪個版本,但我知道FullCalendar與jQuery v1.4.2協同工作,因爲它在我的一個站點上工作(我仍然運行jQuery UI 1.7.2)。因此,首先檢查一下,確保每個插件分別與您的文件一起工作,然後再一起工作。

此外,如果出現任何錯誤,將Firebug插件(Firebug lite用於非Firefox瀏覽器)顯示給您是個不錯的主意。

編輯:您可以只鏈接到jQuery的/ jQuery用戶界面的谷歌API的版本

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script> 
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" /> 
+0

我檢查過它與螢火蟲,我看到了下一個錯誤: 「jquery未定義」在我的fullCalender.js文件的最後一行。 這是與名稱約定有關嗎? 我使用所有正確的版本。與fullCalender包相同 – 2010-04-26 05:24:46

+0

您確定您正在調用'$('#calendar')。fullCalendar()'函數在文檔準備就緒('$(document).ready(function(){.. 。})')函數? – Mottie 2010-04-26 18:17:05

2

對於那些仍在尋找這個問題的答案:

我有同樣的問題(「jQuery的沒有定義「),這是因爲我裝fullcalendar.js的jquery.js之前,像這樣...:

<script type="text/javascript" src="http://localhost/js/fullcalendar.min.js"></script> 
<script type="text/javascript" src="http://localhost/js/jquery-1.5.2.min.js"></script> 
<script type="text/javascript" src="http://localhost/js/jquery-ui-1.8.11.custom.min.js"></script> 

更改順序和加載的jquery.js第一固定PROBL em,就像這樣:

<script type="text/javascript" src="http://localhost/js/jquery-1.5.2.min.js"></script> 
<script type="text/javascript" src="http://localhost/js/jquery-ui-1.8.11.custom.min.js"></script> 
<script type="text/javascript" src="http://localhost/js/fullcalendar.min.js"></script>