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

Re: [ydn-javascript] Please help, racking my brain

Expand Messages
  • Vigneswaran R
    Hi, Instead of including dragdrop-debug.js, include dragdrop.js in the following line,
    Message 1 of 2 , Mar 29, 2007
    • 0 Attachment
      Hi,
          Instead of including dragdrop-debug.js, include dragdrop.js in the
      following line,
          <script type="text/javascript" src="build/dragdrop/dragdrop-debug.js"

      Vignesh

      On Thu, 2007-03-29 at 11:34 +0000, iamthesinkingfish wrote:
      Hi, I'm new to this AJAX stuff but I'm trying to develop a site for my
      final year project.

      I'm falling at the first hurdle, I'm want to have elements dragable
      but the only way I've found is to include the logger.js file but it's
      not listed as a dependency. I started without it and was having no
      joy, so i turned to the example file and started stripping it.

      Now I've a nice picture of a sun movable (playing havoc with the
      scroll bars mind, but that's for another day) but as soon as i remove
      the reference to logger.js nothing happens.

      Can anyone help shine some light please?

      CODE:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>f***ing Drag & Drop</title>
      <script type="text/javascript"
      src="build/yahoo-dom-event/yahoo-dom-event.js"></script>
      <script type="text/javascript" src="build/logger/logger.js"></script>
      <script type="text/javascript" src="build/dragdrop/dragdrop-debug.js"
      ></script>

      <script type="text/javascript">
      var dd1 = new YAHOO.util.DD("element1");
      </script>
      </head>
      <body>
      <div id="element1">
      <img src="sun.jpg" width="200" height="200"/>
      </div>
      </body>
      </html>




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