• Pug
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

I'm trying to integrate Yahoo maps using an s-control and keep getting undefined object errors.  I have also tried integrating other web data but get similar problems.  Here is an example of the yahoo maps code.  This example works outside of SF.  What am I doing wrong?  Should I just use a Visual Force page?

 

<html>
<head>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=RvwXXXXXXXXXXXXXXXXXXXXXXXXXXXXx">
</script>
<style type="text/css">
#map{
  height: 75%;
  width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>

<script type="text/javascript">
 // Create a map object
 var map = new YMap(document.getElementById('map'));

 // Add map type control
 map.addTypeControl();

 // Add map zoom (long) control
 map.addZoomLong();

 // Add the Pan Control
 map.addPanControl();

 // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
 map.setMapType(YAHOO_MAP_SAT);

 // Display the map centered on a geocoded location
 map.drawZoomAndCenter("New York, NY", 4);
</script>
</body>
</html>

  • April 22, 2009
  • Like
  • 0

I'm trying to solve calculating NPV from values in a custom object.  Can someone tell how to go about do this before I begin programming it manually?

  • April 07, 2009
  • Like
  • 0

I'm trying to integrate Yahoo maps using an s-control and keep getting undefined object errors.  I have also tried integrating other web data but get similar problems.  Here is an example of the yahoo maps code.  This example works outside of SF.  What am I doing wrong?  Should I just use a Visual Force page?

 

<html>
<head>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=RvwXXXXXXXXXXXXXXXXXXXXXXXXXXXXx">
</script>
<style type="text/css">
#map{
  height: 75%;
  width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>

<script type="text/javascript">
 // Create a map object
 var map = new YMap(document.getElementById('map'));

 // Add map type control
 map.addTypeControl();

 // Add map zoom (long) control
 map.addZoomLong();

 // Add the Pan Control
 map.addPanControl();

 // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
 map.setMapType(YAHOO_MAP_SAT);

 // Display the map centered on a geocoded location
 map.drawZoomAndCenter("New York, NY", 4);
</script>
</body>
</html>

  • April 22, 2009
  • Like
  • 0

I'm trying to solve calculating NPV from values in a custom object.  Can someone tell how to go about do this before I begin programming it manually?

  • April 07, 2009
  • Like
  • 0