H1413  

 

Kenneth 發表在 痞客邦 留言(0) 人氣()

  用Javascript實現 上傳前閱覽圖片,但是這個方法只能支持IE10之後的版本,其他瀏覽器都可以用,IE9和之前的版本都無法使用。

Input FileUpload files Property 不支持IE9和之前的版本。

http://www.w3schools.com/jsref/prop_fileupload_files.asp

Kenneth 發表在 痞客邦 留言(0) 人氣()

IE出於安全性的考慮,上傳檔時必須要點擊<input type=’file’>控制項本身才能上傳成功。而因為<input type=’file’>長的實在太醜,很少能滿足我們的審美,我們通常都是會隱藏它,然後用其他的button去觸發它。而這麼做在IE9下是不被允許的。

至于解决方法,只有用CSS來達成的,我的作法是把upload or <input type='file'> 弄成透明的蓋在DIV上,也就是應用z-index 用法。 為什麼會針對IE9呢?

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

Yesterday I was updating an HTA (HTML Application) and needed to figure out how to convert an image into a base64 code that could be used in a stylesheet. I needed this to be able to embed an image in the source code instead of referencing an actual image. For this reason I wrote the following function (with the help of this post):

 

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

Sharepoint 開發主要分三種

索引

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

The problem is that when it comes to w3wp.exe processes for the diagram above, there are three of them and just by looking in the task manager there is no easy way to tell them apart. Each instance of a w3wp.exe process has a PID (short for process identifier), but the question is which PID belongs to which application pool.

102209_1000_Whichw3wpex1

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

每天二十分鐘的家庭聚餐,可以改變家庭的未來

The MIACLE of family dinners

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

getImage  

 

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

1. Karma的介紹

Karma是Testacular的新名字,在2012年google開源了Testacular,2013年Testacular改名為Karma。Karma是一個讓人感到非常神秘的名字,表示佛教中的緣分,因果報應,比Cassandra這種名字更讓人猜不透!

文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣()

credibility_pci-logo  

 

Kenneth 發表在 痞客邦 留言(0) 人氣()