Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Zki

Members
  • Posts

    4
  • Joined

  • Last visited

Zki's Achievements

2

Reputation

  1. Zki

    _gsTransform is undefined

    Thanks. It works like a charm. I believe my issue was that I was using older versions of the libraries and newer Draggable was not compatible with century old library versions.
  2. Zki

    _gsTransform is undefined

    Thanks for pointing that. I was not aware that the files have to be in specific directories only. The code loaded all files However, I have modified it as suggested but it didn't seem to solve the problem. Attached is the updated HTML file. Thanks. p.s. How can I delete the previously added files so that I can upload modified zip file ? Is it a common practice on GreenSock forums ? index.html
  3. Zki

    _gsTransform is undefined

    Thank you very much for prompt response. Please find the attached zip file which has a standalone HTML file. The draggable doesn't work in that and throws the described error. I could also reproduce it without using ThrowProps. Hope this helps to narrow down the problem. draggableError.zip
  4. Hi, I am new to GreenSock and trying to use Draggable plug in of GreenSock. I have added the JS libraries in following order <script src="../../../js/jquery-1.10.1.min.js"></script> <script src="../../../js/jquery-ui.min.js"></script> <script src="../../../js/greensock/plugins/ThrowPropsPlugin.min.js"></script> <script src="../../../js/greensock/TweenMax.min.js"></script> <script src="../../../js/greensock/plugins/Draggable.min.js"></script> My HTML code structure is as follows: <div id="imageContainer"> <div class="galleryImg"></div> </div> I completely flush #imageContainer and add few elements, with class name galleryImg, to it dynamically. To make the imageContainer draggable I added following code in my JS Draggable.create("#imageContainer"); However, when I try to drag the element, an error is thrown and the element is not draggable. The error from FireBug is as follows: TypeError: i._gsTransform is undefined ...},this.content=o,this.element=t,this.enable()},H=function(i,n){t.call(this,i),i The error also occurs as soon as I click (mouseDownEvent) the imageContainer. Is there anything am I doing wrong over here ? Which JS files do I need to add to use Draggable? Where can I find standalone sample examples on how to use GreenSock plugins? (e.g. JQuery has this "View Source" link which can display full HTML to understand the whole example) Please guide.
×