2014/12/08

2014/11/13

[噴茶] JSON.stringify() 遇上 IE=EmulateIE7...

支援某個案子時遇到的....

原本在開發環境時都跑得好好的 JSON.stringify()

放到正式環境之後就不 work 了  跟我說沒有 JSON 這個物件,

偵錯模式一看 IE7 !!

調回 IE8(或是更高) 的模式之後就正常了 

之後檢查 Web.Config 發現是案子裡面有一行這樣的設定

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

乖乖...  系統都支援到 IE10以上了不知道為什麼還要加這句

2014/10/29

[筆記] 讓不同平台的專案共用同一個元件專案 (使用 Add as Link 共用 Class 檔)

最近在開發的 Windows Store App 要使用現有的 .Net 元件以及現有的 WebService

但實際要把元件的 Source Code 加入參考時visual studio 卻很不客氣的給我了這個訊息




2014/10/27

[筆記] Windows 8 Store App 檢查有無網路連線存在

手上正在做一個用 Windows Store App 連接公司現有服務的工作

由於是連 WebService,接資料之前檢查網路連線是不是存在以避免程式噴掉是基本工作

找了好久才找到方法 (是 Google 功力不夠嗎? 0rz)

總之 memo 一下做法

2014/10/20

[MEMO] Channel 9 影音教學

https://channel9.msdn.com/Blogs/Windows-Store-App-develop-walkthrough

話說最近被丟到 windows 8 app 的開發專案去了

然後開發只有一個人...

Google 有關 win 8 app 的開發,會一直撈到 Win 8 app 的使用教學, 找 xaml 則會一直找到 WPF... 0rz

不過發現了上面那個網址 XD

還很甘心的可以下載回來看

--

開始來看....

2014/09/10

[筆記] Silverlight 在 Chrome 瀏覽器 crash 的問題

Chrome 版本 : 36.0.1985.143 m
Silverlight 版本 : 5.1.30514.0

處理公司的產品跨瀏覽器時遇到的問題

Silverlight 上面某個按鈕,IE 跟 Firefox 點下去可以正常執行,偏偏 Chrome 就當掉了....


2014/09/05

[速報?] Chrome 於 37 版(37.0.2062.103)開始不支援 showModalDialog

中午更新了 37.0.2062.103 版,發現自家的系統怎麼點很多按鈕都沒反應 0rz

把版號跟 showModalDialog 查了一下之後發現了這個內容


The web platform has evolved organically over the past two decades, slowly growing new capabilities and APIs. Many features that are added are great ideas that enable web developers to make even better applications. But some APIs turn out, in retrospect, to be mistakes. Over time, the platform accretes more bad APIs, which makes it harder to add new browser features, confuses web developers, and even introduces security bugs. showModalDialog is a bad API that we deprecated earlier this year, and in Chrome 37 we will disable support for it by default.
showModalDialog was first introduced in Internet Explorer 4 and although it was never formally standardized, over time most other browsers added support for it. It allows applications to show a dialog of HTML content that freezes all other content while showing. showModalDialog is not a commonly used API: based on our usage counters, less than 0.006% of pages use it.

哭哭...  

連結的下面一點點是有提到說  Enterprise Policy setting to re-enable showModalDialog 

可以透過連結裡面的說明來重新開啟 showModalDialog 的功能到 2015/05之前

但最好是客戶買了系統之後會乖乖聽話讓我們改 client 的機碼

我們敢講客戶的資安規則搞不好還不允許,應該正常來說都不會允許....