<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Andreas Pollak's (Blackgate) WebLog</title><subtitle type="html" /><id>http://blogs.msdn.com/blackgate/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/blackgate/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/blackgate/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2007-03-20T13:47:12Z</updated><entry><title>Virtual Earth - Shop/Restaurant Finder (Plattformunabhängig)</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/blackgate/archive/2007/04/13/virtual-earth-shop-restaurant-finder-plattformunabh-ngig.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="6186" href="http://blogs.msdn.com/blackgate/attachment/2114092.ashx" /><id>http://blogs.msdn.com/blackgate/archive/2007/04/13/virtual-earth-shop-restaurant-finder-plattformunabh-ngig.aspx</id><published>2007-04-13T15:17:00Z</published><updated>2007-04-13T15:17:00Z</updated><content type="html">&lt;P&gt;Im Rahmen meiner Tätigkeit komme ich immer wieder mit c00len Technologien in Berührung. In diesem Fall ist es Virtual Earth, ein Teil der &lt;A href="http://dev.live.com/" mce_href="http://dev.live.com/"&gt;Windows Live&lt;/A&gt;-Story. Ich kann nur empfehlen, sich&amp;nbsp;bei Interesse, mit dem &lt;A href="http://dev.live.com/virtualearth/sdk/" mce_href="http://dev.live.com/virtualearth/sdk/"&gt;Virtual Earth SDK&lt;/A&gt;&amp;nbsp;zu&amp;nbsp;beschäftigen, welches wirklich einfach zu verwenden ist. Notwendige Voraussetzung sind Kenntnisse von HTML und JavaScript.&lt;/P&gt;
&lt;P&gt;Das Virtual Earth Control kann in einem gewissen Rahmen, siehe &lt;A href="http://www.microsoft.com/virtualearth/control/terms.mspx" mce_href="http://www.microsoft.com/virtualearth/control/terms.mspx"&gt;VE API Terms of Use&lt;/A&gt;, &lt;STRONG&gt;kostenfrei auf öffentlichen Webseiten&lt;/STRONG&gt; benutzt werden. Wenn Sie&amp;nbsp;beispielsweise innerhalb von 24 Stunden über 100.000 Transaktionen an Virtual Earth Transaktikonen generieren, wird&amp;nbsp;jedoch ein Vertrag benötigt. Möchten Sie Virtual Earth auch in diesem Fall verwenden, wenden Sie sich am Besten direkt an &lt;A href="http://www.microsoft.com/austria" mce_href="http://www.microsoft.com/austria"&gt;Microsoft Österreich&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;Nachdem ich mich schon öfters über Webseiten von Lokalen/Geschäften geärgert habe, die keinen Anfahrtsplan anbieten, kam mir die Idee zu dem Shop-/Restaurant Finder. Also habe ich mich ein solches Teil implementiert. Das Ergebnis möchte ich Ihnen, liebe Leser, natürlich nicht vorenthalten, da ich hoffe, dass es auf Ihren Webseiten in Zukunft regen Einsatz findet *smile*. Hier sollte vielleicht nochmals erwähnt werden, dass dieses Teil nur aus HTML und JavaScript besteht und daher auch problemlos auf einer Webseite der "dunklen Seite" *lach* eingesetzt werden kann.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/blackgate/WindowsLiveWriter/VirtualEarthShopRestaurantFinderPlatform_109EC/ShopFinder1.jpg" mce_href="http://blogs.msdn.com/blogfiles/blackgate/WindowsLiveWriter/VirtualEarthShopRestaurantFinderPlatform_109EC/ShopFinder1.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=251 src="http://blogs.msdn.com/blogfiles/blackgate/WindowsLiveWriter/VirtualEarthShopRestaurantFinderPlatform_109EC/ShopFinder_thumb1.jpg" width=449 border=0 mce_src="http://blogs.msdn.com/blogfiles/blackgate/WindowsLiveWriter/VirtualEarthShopRestaurantFinderPlatform_109EC/ShopFinder_thumb1.jpg"&gt;&lt;/A&gt;&lt;BR&gt;&lt;STRONG&gt;Der ShopFinder im Einsatz.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Wenn Sie die &lt;A href="http://blogs.msdn.com/blackgate/attachment/2114092.ashx" mce_href="http://blogs.msdn.com/blackgate/attachment/2114092.ashx"&gt;ZIP-Datei&lt;/A&gt; auf Ihren PC herunterladen finden Sie in dieser folgende Dateien:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;ShopFinder.htm... ShopFinder Beispiel 
&lt;LI&gt;ShopFinder.js...&amp;nbsp;&amp;nbsp;&amp;nbsp; ShopFinder Javascript Logik 
&lt;LI&gt;ShopFinder.css...&amp;nbsp; StyleSheet zu ShopFinder.htm 
&lt;LI&gt;PushPin.jpg... Demo-PushPin &lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Schneller Einsatz des ShopFinders&lt;/H3&gt;
&lt;P&gt;Wenn Sie den Shopfinder "as-is" einsetzen möchten, dann müssen Sie lediglich alle diese Dateien in ein virtuelles Verzeichnis auf Ihrem Webserver einspielen und ein paar Modifikationen in der Shopfinder.js-Datei durchführen. Dies sollte nicht mehr als 5 Minuten in Anspruch nehmen :-).&lt;/P&gt;
&lt;P&gt;Öffnen Sie zunächst einfach einmal die Shopfinder.js Datei in einem Editor Ihrer Wahl:&lt;/P&gt;
&lt;TABLE class="" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" style="BORDER-RIGHT: #000000 thin solid; PADDING-RIGHT: 10px; BORDER-TOP: #000000 thin solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 10px; BORDER-LEFT: #000000 thin solid; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 thin solid; BACKGROUND-COLOR: #ffffcc"&gt;var Error_ShopAdressMorePrecisely = "Please define your shopadress more precisely."&lt;BR&gt;var myShopName = &lt;FONT style="BACKGROUND-COLOR: #99ff66"&gt;"Contoso"&lt;/FONT&gt; &lt;BR&gt;var myShopDescription = &lt;FONT style="BACKGROUND-COLOR: #99ff66"&gt;"We do this and that. Please also visit our &amp;lt;a href='http://www.contoso.com'&amp;gt;branch office&amp;lt;/a&amp;gt;!&amp;lt;br&amp;gt;&amp;lt;img src='http://localhost:65451/ShopFinder/Images/PushPin.jpg' /&amp;gt; " &lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;var myShopAddress = &lt;FONT style="BACKGROUND-COLOR: #99ff66"&gt;"Technologiestrasse 4,1120 Vienna, Austria"&lt;/FONT&gt; &lt;BR&gt;var myShopPushPinImage= &lt;FONT style="BACKGROUND-COLOR: #99ff66"&gt;"http://localhost:65451/ShopFinder/Images/PushPin.jpg"&lt;/FONT&gt;&lt;BR&gt;var myResultPrefix = "&amp;lt;B&amp;gt;Ihre Route&amp;lt;/B&amp;gt;: &amp;lt;br /&amp;gt;"&lt;BR&gt;var myResultTotalDistancePrefix = "Total distance: "&lt;BR&gt;var myZoomLevel = 18;&lt;BR&gt;var myRouteListBoxHeight = 14;&lt;BR&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;Ändern Sie die grün hinterlegten Werte: 
&lt;UL&gt;
&lt;LI&gt;myShopName... Der Name Ihres Lokals/Geschäfts 
&lt;LI&gt;myShopDescription.. Eine kurze Beschreibung Ihres Lokals/Geschäft od. Adresse in HTML. Kann auch Bilder enthalten. 
&lt;LI&gt;myShopAddress... Die Adresse Ihres Lokals/Geschäfts. Diese muss eindeutig sein. Wenn diese nicht eindeutig ist wird das Script einen Fehler ausgeben. 
&lt;LI&gt;myShopPushPinImage... Eine URL zu der Bilddatei, die sie als PushPin auf der Karte verwenden möchten. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Fertig! Nun können Sie die Shopfinder-Webseite an surfen und Ihre Webseite verfügt über einen Lokal/Shopfinder. 
&lt;H3&gt;Professioneller Einsatz des ShopFinders&lt;/H3&gt;
&lt;P&gt;Um den Shopfinder auf einer Ihrer publizierten Webseiten zu integrieren müssen Sie natürlich ebenfalls die JS-Datei wie oben angegeben modifizieren.&amp;nbsp;Fügen Sie zu der Seite auf der der Shopfinder integriert werden soll die Scriptlibrary von Virtual Earth und ShopFinder hinzufügen:&lt;/P&gt;
&lt;TABLE class="" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" style="BORDER-RIGHT: #000000 thin solid; PADDING-RIGHT: 10px; BORDER-TOP: #000000 thin solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 10px; BORDER-LEFT: #000000 thin solid; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 thin solid; BACKGROUND-COLOR: #ffffcc"&gt;&amp;lt;head&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js" mce_src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script src="ShopFinder.js" mce_src="ShopFinder.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Im Onload-Event Ihrer Seite muss die Methode "InitMap()" aufgerufen werden&lt;/P&gt;
&lt;TABLE class="" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" style="BORDER-RIGHT: #000000 thin solid; PADDING-RIGHT: 10px; BORDER-TOP: #000000 thin solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 10px; BORDER-LEFT: #000000 thin solid; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 thin solid; BACKGROUND-COLOR: #ffffcc"&gt;&amp;lt;body onload="InitMap();"&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Außerdem benötigen Sie folgende Controls auf Ihrer Webseite. Wenn Sie die IDs der Controls verändern möchten, dann müssen Sie auch die Shopfinder.js-Datei entsprechend modifizieren. Um diesen Aufwand gering zu halten sind alle IDs in Membervariablen abgelegt, die einfach modifiziert werden können.&lt;/P&gt;
&lt;TABLE class="" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" style="BORDER-RIGHT: #000000 thin solid; PADDING-RIGHT: 10px; BORDER-TOP: #000000 thin solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 10px; BORDER-LEFT: #000000 thin solid; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 thin solid; BACKGROUND-COLOR: #ffffcc"&gt;
&lt;UL&gt;
&lt;LI&gt;DIV Control für die Karte 
&lt;UL&gt;
&lt;LI&gt;&amp;lt;div id='myMap' style="width: 362px; height: 276px;"&amp;gt;&amp;lt;/div&amp;gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Eingabefelder für die Start-Adresse: 
&lt;UL&gt;
&lt;LI&gt;&amp;lt;input id="txtStreet" type="text" value="Oswaldgasse"/&amp;gt; 
&lt;LI&gt;&amp;lt;input id="txtHouseNr" type="text" value="3"/&amp;gt; 
&lt;LI&gt;&amp;lt;input id="txtPLZ" type="text" value="1120" /&amp;gt; 
&lt;LI&gt;&amp;lt;input id="txtCity" type="text" value="Wien" /&amp;gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Schaltflächen für "Locate Shop on Map" und "Calculate Route" 
&lt;UL&gt;
&lt;LI&gt;&amp;lt;input id="pbFindShop" type="button" value="Route ermitteln" onclick="javascript:FindShop()"/&amp;gt; 
&lt;LI&gt;&amp;lt;input id="pbFocusShop" type="button" value="Lokal anzeigen" onclick="javascript:FocusShop()" /&amp;gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;DIV Control welches nach der Routenberechnung die Routensegmente (Waypoints) anzeigt 
&lt;UL&gt;
&lt;LI&gt;&amp;lt;div id="divRouteResult" style="width: 100%"&amp;gt;&amp;lt;/div&amp;gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;&lt;STRONG&gt;Download&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/blackgate/attachment/2114092.ashx" mce_href="http://blogs.msdn.com/blackgate/attachment/2114092.ashx"&gt;ShopFinder mit Source Code&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Ressources&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.microsoft.com/virtualearth/control/terms.mspx" mce_href="http://www.microsoft.com/virtualearth/control/terms.mspx"&gt;Virtual Earth Service API Terms of Use&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://dev.live.com/virtualearth/default.aspx?app=virtual_earth" mce_href="http://dev.live.com/virtualearth/default.aspx?app=virtual_earth"&gt;Informationen zu Virtual Earth&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://dev.live.com/virtualearth/sdk/" mce_href="http://dev.live.com/virtualearth/sdk/"&gt;Virtual Earth SDK&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=537&amp;amp;SiteID=1" mce_href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=537&amp;amp;SiteID=1"&gt;Developerforum zu Virtual Earth&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=wlWriterSmartContent id=0767317B-992E-4b12-91E0-4F059A8CECA8:448bda59-6760-43b1-b974-61dc5d5e17e7 contentEditable=false style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;A href="http://technorati.com/tags/Virtual%20Earth" rel=tag mce_href="http://technorati.com/tags/Virtual%20Earth"&gt;Virtual Earth&lt;/A&gt;, &lt;A href="http://technorati.com/tags/Web" rel=tag mce_href="http://technorati.com/tags/Web"&gt;Web&lt;/A&gt;, &lt;A href="http://technorati.com/tags/ISV" rel=tag mce_href="http://technorati.com/tags/ISV"&gt;ISV&lt;/A&gt;, &lt;A href="http://technorati.com/tags/Microsoft" rel=tag mce_href="http://technorati.com/tags/Microsoft"&gt;Microsoft&lt;/A&gt;, &lt;A href="http://technorati.com/tags/Location%20based%20Services" rel=tag mce_href="http://technorati.com/tags/Location%20based%20Services"&gt;Location based Services&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;
&lt;SCRIPT src="http://embed.technorati.com/embed/364juuz6q4.js" type=text/javascript mce_src="http://embed.technorati.com/embed/364juuz6q4.js"&gt;&lt;/SCRIPT&gt;
&lt;EM&gt;&lt;A href="http://technorati.com/claim/364juuz6q4" mce_href="http://technorati.com/claim/364juuz6q4"&gt;apollak&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2114092" width="1" height="1"&gt;</content><author><name>Blackgate</name><uri>http://blogs.msdn.com/members/Blackgate.aspx</uri></author><category term="Development" scheme="http://blogs.msdn.com/blackgate/archive/tags/Development/default.aspx" /><category term="Downloads" scheme="http://blogs.msdn.com/blackgate/archive/tags/Downloads/default.aspx" /><category term="ISV" scheme="http://blogs.msdn.com/blackgate/archive/tags/ISV/default.aspx" /></entry><entry><title>A friendly "Hello" and Mark of the Web</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/blackgate/archive/2007/03/20/a-friendly-hello-and-mark-of-the-web.aspx" /><id>http://blogs.msdn.com/blackgate/archive/2007/03/20/a-friendly-hello-and-mark-of-the-web.aspx</id><published>2007-03-20T14:47:12Z</published><updated>2007-03-20T14:47:12Z</updated><content type="html">&lt;p&gt;&lt;/p&gt; &lt;p&gt;Hi everybody,&lt;/p&gt; &lt;p&gt;Since this is my first blog(entry), I start with a short introduction&amp;nbsp;about my person.My name is&amp;nbsp;Andreas Pollak and I work for Microsoft Austria as a developer evangelist for ISVs. In this role I am responsible to help our ISVs to leverage the new and innovative technologies that Microsoft brings constantly to the market. We are providing events, programs and in special cases proof of concepts implementations. One of&amp;nbsp;our focuses is to&amp;nbsp;provide a&amp;nbsp;good Know-how transfer to our partners.  &lt;p&gt;&lt;strong&gt;"Mark of Web" - Have you ever heard of this?&lt;/strong&gt;  &lt;p&gt;Although this existed a long time ago, I was not aware of this "&lt;em&gt;feature&lt;/em&gt;" recently. Harald my colleague produced a CD that contained a HTML-, autorun.inf-file and a bunch of MP3 files. The primary idea was that the user who puts the CD in the drive gets the HTML presented and can choose which audio file she wants to play. I used to be one of the first lucky beta-testers and tired that with internet explorer. But each time I tried to hear&amp;nbsp; the audio file by clicking on it, nothing did happen. Absolutely nothing! No error, no warning. As Internet explorer was not in the mood telling me why this happens I did some research and found the following article:  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/motw.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/motw.asp&lt;/a&gt;  &lt;p&gt;As I opened up the HTML-file in notepad I found a "mark of the web". Because Harald based the layout of the HTML on our blog-website, he first saved a draft of the webpage to his computer, thus implictly creating this tag with the url of our website. As soon as we removed this mark, the html worked as expected in IE.  &lt;p&gt;Kind regards&lt;br&gt;&amp;nbsp; Andreas&amp;nbsp; &lt;/p&gt; &lt;p&gt; &lt;script type="text/javascript" src="http://embed.technorati.com/embed/364juuz6q4.js"&gt;&lt;/script&gt; &lt;EM&gt;&lt;a href="http://technorati.com/claim/364juuz6q4"&gt;apollak&lt;/a&gt;&lt;/EM&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1919143" width="1" height="1"&gt;</content><author><name>Blackgate</name><uri>http://blogs.msdn.com/members/Blackgate.aspx</uri></author></entry></feed>