drag and drop images

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exoskeleton
    New Member
    • Sep 2006
    • 104

    drag and drop images

    hi...can someone help me to point to a link with example on how to drag and drop images. like a file field in an upload form, but no browse button just drag an image from your computer to a box or textbox...i need this in our project...pleas e help

    TIA
  • exoskeleton
    New Member
    • Sep 2006
    • 104

    #2
    is this possible with ajax? drag an image from your local files to your webpage?

    Comment

    • exoskeleton
      New Member
      • Sep 2006
      • 104

      #3
      repost! is this possible in ajax?

      dear everyone, is it possible in ajax to drag an image from your local files(folder) to a certain box in your webpage just like of the examples given in the demos in ajax drag and drop? just like dragging from one folder to another in windows? but the demos are drag and drop within the same page only! how about drag and drop from mypicture(folde r in your pc) for example to a box created in the webpage?

      please give your opinions and ideas... so that i can tell my boss if it is possbile or not! because i dont find any example... TIA

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        try to have a look on this link ...............




        best of luck.
        kind regards.

        Comment

        • pbmods
          Recognized Expert Expert
          • Apr 2007
          • 5821

          #5
          The only way this is possible (and I think it depends on the browser) is with inputs. You can (or at least in Mac OS X you can) drag a file onto a textarea/text/file input, and the browser will paste in the path of the file.

          As far as being able to detect it as if it were being dragged like an HTML element, that one's a 'no'; there's no 'element' being dragged.

          I suppose you could check to see if the mouse is being held down in window.onmousem ove and then simulate a drag event (though you'd have to use a generic icon since you wouldn't have any way of knowing what, exactly, the User is dragging). And even then, without using a text input, there'd be no way to receive the 'drop' event.

          Internet Explorer (naturally) has a proprietary method that might do what you want. But if your app depends on this behavior, you'd be locked into requiring IE.

          QQSLOT ✓ Link resmi developer platform slot gacor terpercaya. Daftar QQSLOT sekarang dan nikmati RTP tertinggi, bonus new member 100%, withdraw cepat 24 jam!

          Comment

          • exoskeleton
            New Member
            • Sep 2006
            • 104

            #6
            thank you for your replies sir...i'll try to edit the scripts on the link that you point me into...for sure it is useful but need to enhance it...

            thank you very much

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Merged threads.

              Comment

              Working...