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

Re: [ydn-javascript] Using YUI and Yahoo! Maps together

Expand Messages
  • dav.glass@yahoo.com
    Ken -- Eric put together a really nice article on this over at the YUI Blog: http://yuiblog.com/blog/2006/12/14/maps-plus-yui/ Hope that helps 8-) Dav Dav
    Message 1 of 4 , Jan 30, 2007
    • 0 Attachment
      Ken --

      Eric put together a really nice article on this over at the YUI Blog:
      http://yuiblog.com/blog/2006/12/14/maps-plus-yui/

      Hope that helps 8-)
      Dav
       
      Dav Glass
      dav.glass@...
      blog.davglass.com


      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: Ken Robinson <kenrbnsn@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Tuesday, January 30, 2007 7:57:19 AM
      Subject: [ydn-javascript] Using YUI and Yahoo! Maps together

      Hi,

      I am trying to put a Yahoo! Map (ajax API) into my page that uses the YUI libraries.

      When I have this code in my script:


      <script type="text/javascript"
      src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=myapiid">
      <script type="text/javascript"
      src="../../yui_0.12.2/yahoo.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/event.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/dom.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/calendar.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/dragdrop.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/connection.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/container.js"></script>
      <script type="text/javascript"
      src="../../yui_0.12.2/logger.js"></script>

      I get the following error reported via Firebug:YAHOO.util.Event.purgeElement is not a function   calendar.js (line 2203)
      YAHOO.util.Event.purgeElement(this.oDomContainer, true);

      If I include the Maps Javascript after the YUI Javascript, I get the following error twice:
      YAHOO.util.Event.regCE is not a function   event_2.0.0-b2.js (line 1)
      /* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */YAHOO.util.CustomEvent=...

      Is there a way to do what I'm trying to do?

      Thanks in advance,

      Ken

    Your message has been successfully submitted and would be delivered to recipients shortly.