29 五月 2009 @ 12:28 上午 
詳情請參考
  1. Google Geo Developers Blog: Announcing Google Maps API v3
  2. ericsk大大http://blog.ericsk.org/archives/1334
心得:
  • 取消了授權碼的限制,不再限制domain name,其實yahoo map的授權碼也沒有驗證domain name(噓~),不過這種挑明著開放總是好事一樁。
  • 加強各種瀏覽器的使用,例如iphone,可支援多點觸控,這太屌了,難道可以用iphone多點觸控來旋轉地圖(驚!)改天搞隻iphone來試試看。
  • 改以MVC的架構來重寫API:看了一下,V3版把各種元件都拆開了,期待神人再次降臨拆解程式講解V3版(參考:google maps api2.0解析)。
Posted By: BLACKBING
Last Edit: 29 五月 2009 @ 12:28 上午

EmailPermalinkComments (0)
Tags
Categories: Uncategorized
 29 五月 2009 @ 12:09 上午 
  1. media(多媒體播放):http://www.malsup.com/jquery/media/
  2. GalleryView(擴充性極強的圖片瀏覽插件):http://spaceforaname.com/galleryview
  3. 取得youtube的影片縮圖:http://jquery-howto.blogspot.com/2009/05/jyoutube-jquery-youtube-thumbnail.html
  4. 讓AJAX動作能夠有歷始紀錄(history):http://www.asual.com/jquery/address/
  5. jstore可以用各種方式儲存client端資料:http://code.google.com/p/jquery-jstore/
Posted By: BLACKBING
Last Edit: 29 五月 2009 @ 12:11 上午

EmailPermalinkComments (0)
Tags
Categories: jQuery, plugin
 21 五月 2009 @ 11:15 下午 
  1. Is Ajax support on Internet Explorer Mobile?
    Actually, IE Mobile’s Ajax support dates back to Windows Mobile 2003.
  2. javascript & AJAX 實做心得
    1. 可用AJAX,但desktop IE的javascript Framework有很多function不適用,因此建議還是依需求開發。
      1. 針對AJAX部份我有根據官方範例寫了一個Ajax call function for Mobile IE
        http://blackbing.net/lab/mobile/mobileAjax.js
    2. 基本的javascript幾乎都支援,getElementById, setTimeout, etc..
    3. 只有button 有onclick事件,其他如DIV、SPAN上沒有這種event。
    4. 請注意IE Mobile 沒有「onMouseOver」事件。
    5. CSS支援度差,不支援定位(position, top, left),且javascript存取css的方式也有限,必須反覆測試style的表現。
    6. On Smartphone/PocketPC 2003 innerText and innerHTML Properties are only supported on div and span elements.
      On Windows Mobile 5 innerText and innerHTML Properties are supported on all elements.
  3. 開發AJAX應用程式的注意事項:
    1. 使用者介面越簡單越好
    2. 資料傳輸量越精簡越好(JSON)
    3. DOM tree 越淺(shallow)越好
    4. 若有大量資料要隱藏,請避免使用display:none,直接採用DOM操作方式remove掉。(保持頁面資料越精簡越好)
    5. 盡可能不要讓使用者輸入data,改由select方式
    6. Adding On-Demand Script
  4. 其他:
    1. how to configure Internet Explorer Mobile to display script errors?
      To configure IE Mobile to display script error messages requires you to create a new registry entry.
      1. Open the device/emulator registry using the Remote Registry Editor or other Windows Mobile registry tool
      2. Navigate to the registry key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
      3. Create a new DWORD entry for the key; name the new entry ShowScriptErrors and set the value to 1
      4. Soft-reset the device/emulator

        Once you complete these steps, IE Mobile will display error messages for any script errors that occur.

    2. Enabling Cross-Domain Calls in Your Development Environment
      When working in your development environment, you can disable the security check that prevents the XMLHTTP object from making a cross-domain call. You do this by modifying the value of the appropriate registry entry using the following steps.
      1. Open the device/emulator registry using the Remote Registry Editor or other Windows Mobile registry tool
      2. Navigate to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Internet Settings\Zones\3
      3. Change the value of the entry named 1406 to 0.
      4. Soft-reset the device/emulator
        Once you complete these steps, the XMLHTTP object can call into any domain without restriction.
  1. 參考資料:
    1. Mobile Web Development
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_mobilewebdev.asp
    2. Mobile DOM Reference Guide
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mogrfdomreferenceguide.asp
    3. Mobile CSS Support
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mogrfdomreferenceguide.asp?frame=true
    4. Windows Mobile Developers Wiki
      http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.HomePage
Posted By: BLACKBING
Last Edit: 23 三月 2010 @ 11:35 下午

EmailPermalinkComments (0)
Tags
Categories: Javascript練功房
 05 五月 2009 @ 7:11 上午 
昨天有朋友問我會不會寫移動的特效,他需要複製多個MovieClip,而可以針對這些MovieClip做任意排列、例如排成直線、圓形、矩形等。聽起來有點複雜,不過分析了一下其實只有簡單的兩個問題:
  1. 決定物件的target位置,並將物件從A點移動到target位置。
  2. 排列多個物件,使其依照各種形狀排列。
More »
Posted By: BLACKBING
Last Edit: 05 五月 2009 @ 07:11 上午

EmailPermalinkComments (1)
Tags
Tags: ,
Categories: flash
 01 五月 2009 @ 5:34 上午 
一般來說,我們都會用
new Date().getTime()
來取得目前的time stamp,今天在cssRain看到JavaScript—new Date().getTime()的简写方式,發現
+new Date()
這兩個會出現相同的結果,這讓我不禁好奇了「+」這個運算符他的特殊用法, 測試了幾個結果: More »
Posted By: BLACKBING
Last Edit: 01 五月 2009 @ 05:34 上午

EmailPermalinkComments (0)
Tags
 01 五月 2009 @ 4:26 上午 
做專案時常常因為路徑問題而困擾,因為現在用的路徑很可能到另一個環境就有大幅度的變動,寫前端程式的時候更常遇到這個問題,當然每個人都會把路徑獨立出來成一個變數,到時候若要改的話只要改個變數即可,但像CSS的url command就可以讀相對路徑,因此路徑只要指向相對路徑即可,就算環境換了也不用改任何程式。因此如果每一隻script都可以知道自己被include的Root路徑,需要指定路徑的地方就只要根據這個Root路徑來做相對路徑即可。例如一隻js檔裡頭需要動態產生圖片,那麼就會需要用到這個相對路徑。 More »
Posted By: BLACKBING
Last Edit: 01 五月 2009 @ 04:26 上午

EmailPermalinkComments (0)
Tags

 Last 50 Posts
Change Theme...
  • Users » 17
  • Posts/Pages » 59
  • Comments » 28
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About Me



    No Child Pages.

留言板



    No Child Pages.

Album



    No Child Pages.