Loading ...
Sorry, an error occurred while loading the content.

map api conflict with protoype/script.aculo.us

Expand Messages
  • brectable
    I am trying to use the map ajax api and code from script.aculo.us, which uses the protoype Javascript framework (http://prototype.conio.net/), on the same
    Message 1 of 1 , Jan 21, 2006
    • 0 Attachment
      I am trying to use the map ajax api and code from script.aculo.us,
      which uses the protoype Javascript framework
      (http://prototype.conio.net/), on the same page. When the page loads I
      get this error:

      Error: nm.calculatePosition is not a function
      Source File: http://api.maps.yahoo.com/v2.0/aj/ymapapi.js
      Line: 866

      The result is that the map is not draggable and may have other
      probelms - I have not tested all functionality. Has any body else seen
      this?

      The problem can be seen by simply including the prototype library in
      the map api hello world example:

      <script src="/path/to/prototype.js"
      type="text/javascript"></script>
    Your message has been successfully submitted and would be delivered to recipients shortly.