|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HttpRequestAndLocalData</title>
<!-- WinJS references -->
<link href="//Microsoft.WinJS.0.6/css/ui-dark.css" rel="stylesheet">
<script src="//Microsoft.WinJS.0.6/js/base.js"></script>
<script src="//Microsoft.WinJS.0.6/js/ui.js"></script>
<!-- HttpRequestAndLocalData references -->
<link href="/css/default.css" rel="stylesheet">
<script src="/js/default.js"></script>
<script src="/js/imgDownloader.js"></script>
</head>
<body>
<div style="-ms-grid-column: 1; -ms-grid-row: 1">
Image Url:
</div>
<div style="-ms-grid-column: 1; -ms-grid-row: 2">
Local File Name:
</div>
<div style="-ms-grid-column: 1; -ms-grid-row: 3">
<button id="btnDownloadImg">Get Image</button>
</div>
<div style="-ms-grid-column: 2; -ms-grid-row: 1">
<input type="url" style="width: 700px" id="txtUrl" value="http://www.sela.co.il/_pics/logosela.jpg" />
</div>
<div style="-ms-grid-column: 2; -ms-grid-row: 2">
<input type="text" id="txtFileName" value="SelaGroupLogo.jpg" />
</div>
<div style="-ms-grid-column: 1; -ms-grid-row: 4">
<h2>Image Details:</h2>
</div>
<div style="-ms-grid-column: 1; -ms-grid-row: 5">
<h3>using img blob</h3>
<img src="/images/logo.png" id="mainImg" style="width: 100px; height: 100px;" />
</div>
<div style="-ms-grid-column: 2; -ms-grid-row: 5">
<div>
<div>
<h3>using ms-appdata:/// protocol</h3>
<img src="/images/logo.png" id="mainImg2" style="width: 100px; height: 100px;" />
<div id="filePath"></div>
<div id="fileType"></div>
<div id="dateCreated"></div>
</div>
</div>
</div>
<div style="-ms-grid-column: 1; -ms-grid-column-span: 3; -ms-grid-row: 6">
<h2>Local Gallery</h2>
<div id="existingFiles"></div>
</div>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Shai Raiten is VS ALM MVP, currently working for Sela Group as a ALM senior consultant and trainer specializes in Microsoft technologies especially Team System and .NET technology. He is currently consulting in various enterprises in Israel, planning and analysis Load and performance problems using Team System, building Team System customizations and adjusts ALM processes for enterprises. Shai is known as one of the top Team System experts in Israel. He conducts lectures and workshops for developers\QA and enterprises who want to specialize in Team System.
My Blog: http://blogs.microsoft.co.il/blogs/shair/