Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to test if an extension is supported (mime type/kml)? 1

Status
Not open for further replies.

NoCoolHandle

Programmer
Apr 10, 2003
2,321
US
Hi,

I have a website I am building that will have a number of KML files for download. What I would like is to be able to test via the webpage (javascript) if "google earth" or "some other program that under stands KML" is installed, the KML launches GoogleEarth/Microsoft Live etc.. otherwise it redirects the user to a download page.

So if (MimeType=='application/vnd.google-earth.kml+xml')

Is this even possible?



TIA

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top