| ProfileHowToPediaBlogLists | Help |
HowToPediaAn Encyclopedia of How-To Articles for Windows Live Developers
September 19 How To Submit a New Article or a Comment to an Existing Article
Important: For material that has already been published, please include a link to the original version and a reference to the original author. Article: How To Draw a Circle Given a Lat/Long and Radius (in miles)Description
This article shows a JavaScript function that takes three parameters: latitude, longitude, and radius and draws a circle of the given radius centered around the latitude and longitude parameters. This code was posted on the Windows Live Development forums by Ruprect8696. Check the reference section for a link to the original post.
InstructionsAdd the following JavaScript code to your Virtual Earth application. function AddCircle(latin, lonin, radius) Note: (Requires Virtual Earth SDK 3.1): You can change the second-to-last line to a VEPolygon object and add a fill color, if you want the circle filled in. (Comment contributed by CalebT - MSFT)
For more informationCheck these resources for additional information:
Author: Ruprect8696
September 18 Article: How To Integrate the Windows Live Contacts Gadget into a Virtual Earth mashupDescription
This article shows how to use the Windows Live Contacts gadget beta to allow a user to import his/her Windows Live Contacts into a Virtual Earth map.
Step-By-Step InstructionsThe instructions and sample code are on this article on MSDN: Building a Mashup with the Windows Live Contacts Gadget and Virtual Earth: For more informationCheck these resources for additional information:
Author: Koji Kato (MSFT) Article: How to Start a Video Conversation with a Contact from an HTML pageTo Start a Video Conversation with a Contact from an HTML page, add the text below to the HTML page, replacing nada@nowhere.com with the address of the contact you want to have a video conversation with:
How It WorksWindows Live Messenger includes the ability to use a protocol handler to interact with the Windows Live Messenger Client. See the Windows Live Messenger Protocol Handler entry on the Glossary for more details about what a protocol handler is, and what other features you can implement using it. Author: James Baker (MSFT) Article: How to Start a Voice Conversation with a Contact from an HTML pageTo Start a Voice Conversation with a Contact from an HTML page, add the text below to the HTML page, replacing nada@nowhere.com with the address of the contact you want to have a voice conversation with:
How It WorksWindows Live Messenger includes the ability to use a protocol handler to interact with the Windows Live Messenger Client. See the Windows Live Messenger Protocol Handler entry on the Glossary for more details about what a protocol handler is, and what other features you can implement using it. Author: James Baker (MSFT) Article: How to Start a Chat Session with a Contact from an HTML pageStep-by-Step InstructionsTo Start a Chat Session with a Contact from an HTML page, add the text below to the HTML page, replacing nada@nowhere.com with the address of the contact you want to chat with:
How It WorksWindows Live Messenger includes the ability to use a protocol handler to interact with the Windows Live Messenger Client. See the Windows Live Messenger Protocol Handler entry on the Glossary for more details about what a protocol handler is, and what other features you can implement using it. Author: James Baker (MSFT) Article: How to Add a Contact to a Buddy List from an HTML pageStep-by-Step InstructionsTo implement a 'Add a Contact to your Buddy List' feature to an HTML page, add the text below to the HTML page, replacing nada@nowhere.com with the address of the contact you want to add.
How It WorksWindows Live Messenger includes the ability to use a protocol handler to interact with the Windows Live Messenger Client. See the Windows Live Messenger Protocol Handler entry on the Glossary for more details about what a protocol handler is, and what other features you can implement using it. Author: James Baker (MSFT)
Article: What is a Windows Live Messenger Protocol Handler?What is a Protocol Handler.Windows Live Messenger includes the ability to use protocol handler's that interact with the Windows Live Messenger Client. In the world of Internet Explorer and other browsers, it is the definition of a set of text followed by a colon which launches a defined program that takes in a parameter which is consumed by the called program.
The table below describes the available Protocol Handlers that interact with the Windows Live Messenger Client.
Command Messenger Action Example
"Add": Adds a contact to the buddy list. msnim:add?contact=nada@nowhere.com
"Chat": Start a conversation with a contact. msnim:chat?contact=nada@nowhere.com
"Voice": Start a voice conversation with a contact. msnim:voice?contact=nada@nowhere.com
“Video” Start a video conversation with a contact. msnim:video?contact=nada@nowhere.com
Example:The classic example of a protocol handler is the "mailto:" protocol handler. This text when in a HTML page creates a link that when clicked launches the default mail client on the machine. Any text after the protocol handler's colon is passed into the receiving mail client. For example, the following protocol handler starts up a mail client with a blank message to the user nada@nowhere.com:
Related Articles: September 15 HowToPedia Main IndexWhat is the HowToPedia?HowToPedia is a directory of selected how-to articles, forum posts, and code samples related to Windows Live APIs and SDKs. HowToPedia entries include locally hosted articles and links to articles found anywhere on the Internet.
How to Contribute Content to the HowToPedia?HowToPedia aspires to be a community driven resource. If you want to contribute a new article or suggest improvements to an existing article, follow the instructions here.
Virtual Earth How To's:
Windows Live Messenger How To's:Glossary EntriesList of Authors
September 08 Add a Map to an existing HTML pageDescription
Display a Virtual Earth Map inside of a web page, as shown below: Notes
Step-By-Step InstructionsGiven the following, very bare, HTML page:
Follow these instructions to add and display a Virtual Earth map.
Here is the modified code with the lines added or changed in bold. The numbers at the right show the corresponding instruction step.
Template CodeCopy and paste the following code to an HTML page in your application:
ReferencesCheck these resources for additional information:
Author: Federico Raggi (MSFT)
Find the User Location (Latitude and Longuitude)Description
JavaScript code that discovers the latitude and longuitude of a user visiting a web page and centers a map around it. Notes
Step-By-Step Instructions
Notes:
How the code works:The JavaScript code consist of three functions:
Template Code
Alternative SolutionsThere are several services that provide IP to location translation services both free or for a charge. Here are a couple I found although I haven't tried them yet: For more informationCheck these resources for additional information:
Author: Federico Raggi (MSFT)
|
||||||
|
|