Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drag, Drop and Zoom Image

    I know the basics of Java, maybe this is too difficult for me but I must start with something. This is what Im trying to do:



    To drag and Drop:
    http://developer.yahoo.com/yui/3/exa...oups-drag.html
    To move:
    http://developer.yahoo.com/yui/3/exa...ined-drag.html
    Zoom in-Zoom Out:
    http://www.agilepartners.com/blog/20...ng-javascript/
    Save:
    ?????How I can save the final result inside the div????

    I am going to work on this for a few days reading the instruccions above, can you give me some directions or useful info??
    Last edited by traucostar; 05-22-2009 at 01:08 AM.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,588
    Thanks
    80
    Thanked 4,497 Times in 4,461 Posts
    You seem to have found the pieces you need, except maybe rotate. Is there a specific question?

    FWIW, I don't see a need for drag-and-drop here. I'd just have the user click on an image at the top an wham, it appears centered on the object in the middle. Yes, then allow them to move it around. But since the size of the thumbnails at the top and the size of the image on the cup are different, drag-and-drop doesn't "feel" right, to me. They'd have to drag a small image onto the cup and then resize it. Whereas if you just use "click on it", you could automatically resize to what you deem best fit. Yeah, they can then still resize, but you've started them off cleaner.

    Oh, by the way: Knowing Java won't help you a lot here. Knowing Javascript would, though.

  • #3
    New Coder
    Join Date
    Jul 2008
    Location
    Peterborough - UK
    Posts
    63
    Thanks
    4
    Thanked 9 Times in 9 Posts
    I agree with Pendant - Drag&Drop doesn't seem to fit the page you're describing.

    However, if you're set on D&D then I swear by a libary written by Walter Zorn - FOUND HERE - Which ought to do exactly what you want, and more. It's not Java, only javascript - but you could execute this in pretty much anything you want.

    Flash/java is probally going to offer the most functionality - though Javascript (and php if you want to actually manipulate the images/save them) is perfectly capable of providing the operations you describe.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •