Thanks, Fraser,
Works great in FF, "Object doesn't support this method" error in IE.
Am I missing something really simple? Code is below. When I examine
the google.earth object in FF debugger I do see the isInstalled
method. Don't see it in IE when I look with Dev Toolbar. Puzzled.
<html>
<head>
<script type="text/javascript" src="
http://www.google.com/jsapi?
key=ABQIAAAAsr2iuczFsI7h1QTeblwCAhT_QHZLu7nHX8D32wEMl2eU6Kx7PhS2Ypa7WH2AQbJiTNN80DJu0ZuPfQ"></
script>
<script>
google.load("earth","1");
function detectGEInstalled()
{
return google.earth.isInstalled();
}
alert( detectGEInstalled() ? "Installed":"Not installed");
</script>
</head>
</html>
On Nov 7, 8:27 am, fraser wrote:
> Hi Clyde,
>
> Simply use the isInstalled() method of the google.earth namespace.
>
> ----------------------------
> //Whether or not the Google Earth Browser Plug-in
> //is currently installed on the user's machine.
> var isInstalled = google.earth.isInstalled();
> ----------------------------
>
> For more information see:
http://code.google.com/apis/earth/documentation/reference/google_eart...