2011-04-27 72 views
0

我知道我必須死腦筋,我有一個月前的解決方案,但意外刪除它(哎呀)!味精谷歌日曆添加飼料

this page您可以創建一個小部件日曆。隨着日期選擇器和議程(是兩者都需要)

它生產的一些代碼,就像這樣:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&amp;up_calendarFeeds=&amp;up_calendarColors=&amp;up_firstDay=0&amp;up_dateFormat=0&amp;up_timeFormat=1%3A00pm&amp;up_showDatepicker=1&amp;up_hideAgenda=0&amp;up_showEmptyDays=0&amp;up_showExpiredEvents=1&amp;synd=open&amp;w=320&amp;h=165&amp;title=__MSG_Google_Calendar__&amp;lang=en&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script> 

但是它沒有指定日曆,始終加載本地日曆。我看到裏面有變量up_calendarFeeds,這讓我想我應該嘗試添加一個Feed。我搜索並在Feed上找到了google's page。該說的Feed網址的格式爲:

https://www.google.com/calendar/feeds/userID/private-magicCookie/full 

full超過basic是機器可讀的,由本人承擔小工具使用。但是,當我使用我的數據設置up_calenderFeeds變量時,它不加載任何內容。我錯過了什麼?這是我的最終代碼:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&amp;up_calendarFeeds=https://www.google.com/calendar/feeds/[email protected]/private-0b7544f4b5f2198fc76c96e59f285dad/full&amp;up_calendarColors=&amp;up_firstDay=0&amp;up_dateFormat=0&amp;up_timeFormat=1%3A00pm&amp;up_showDatepicker=1&amp;up_hideAgenda=0&amp;up_showEmptyDays=0&amp;up_showExpiredEvents=1&amp;synd=open&amp;w=195&amp;h=500&amp;title=Portland+IPA+Calendar&amp;lang=en&amp;country=ALL&amp;border=%23ffffff%7C3px%2C0px+solid+%23999999&amp;output=js"></script> 
+0

我不知道如果我應該使用私有密鑰或沒有? – ohmusama 2011-04-27 04:28:38

回答

0

好的,因爲沒有人能夠幫助我。我搜索並搜索了一些答案。

get字符串中有許多不同的變量,包含許多需要轉義的字符。首先對什麼都原因,up_calendarFeeds必須設置爲({})哪個URL編碼的結束是up_calendarFeeds=%28%7B%7D%29

然後,你需要設置2個變量爲您的日曆正常工作(我想你需要兩個),up_c0uup_c0c都到你進給路徑。需要注意的是,似乎這可以在一個陣列的形式,這樣你就可以通過增加0添加許多飼料,所以up_c1uup_c2uup_c3u