Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Validate if my drop location is not empty using JS(HTML DnD API)

Validate if my drop location is not empty using JS(HTML DnD API)

Scheduled Pinned Locked Moved JavaScript
javascripthtmljsonhelp
7 Posts 6 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14732785
    wrote on last edited by
    #1

    ugent help please! here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up a message. Quick response will be highly appreciated. Thanks!

    L Richard DeemingR Z J 4 Replies Last reply
    0
    • M Member_14732785

      ugent help please! here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up a message. Quick response will be highly appreciated. Thanks!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to provide much more detail of your problem.

      M 1 Reply Last reply
      0
      • L Lost User

        You need to provide much more detail of your problem.

        M Offline
        M Offline
        Member_14732785
        wrote on last edited by
        #3

        here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up an error message. Basically how do I capture drop location ID where the image is dropped? Can someone please help me out urgenlty on this?

        1 Reply Last reply
        0
        • M Member_14732785

          ugent help please! here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up a message. Quick response will be highly appreciated. Thanks!

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          There's a secret error somewhere in your secret code. You should fix that. Seriously, how do you expect anyone here to help you fix your code, when you haven't shown us any of your code? :confused: We can't see your screen. We can't access your computer. We can't read your mind. All we have to work with is what you type in the "message" box. If you can't explain the problem clearly, then we can't help you. And adding "urgent" and "quick response" to your questions simply tells us that you can't manage your own time. It's not going to force us to answer your unanswerable question any quicker.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          N 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            There's a secret error somewhere in your secret code. You should fix that. Seriously, how do you expect anyone here to help you fix your code, when you haven't shown us any of your code? :confused: We can't see your screen. We can't access your computer. We can't read your mind. All we have to work with is what you type in the "message" box. If you can't explain the problem clearly, then we can't help you. And adding "urgent" and "quick response" to your questions simply tells us that you can't manage your own time. It's not going to force us to answer your unanswerable question any quicker.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            N Offline
            N Offline
            Nathan Minier
            wrote on last edited by
            #5

            A sign that I've appreciated in a couple of different supply rooms: "A lack of planning on your part does not constitute an emergency on mine"

            "Never attribute to malice that which can be explained by stupidity." - Hanlon's Razor

            1 Reply Last reply
            0
            • M Member_14732785

              ugent help please! here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up a message. Quick response will be highly appreciated. Thanks!

              Z Offline
              Z Offline
              ZurdoDev
              wrote on last edited by
              #6

              Member 14732785 wrote:

              validate before dropping in the location if it already has an image,

              Simple. Write code for the drop event and to check if the img tag already has a src attribute.

              Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

              1 Reply Last reply
              0
              • M Member_14732785

                ugent help please! here my criteria is to drag 3 images and drop them in 3 different locations. validate before dropping in the location if it already has an image, if yes them pop up a message. Quick response will be highly appreciated. Thanks!

                J Offline
                J Offline
                jkirkerx
                wrote on last edited by
                #7

                You should probably work on one DND interface first, and then create 2 more of them and DND each image to a specific DND box. Get the hang of DND first and how it works. It's not as easy as it sounds and DND has some events you have to listen for.

                If it ain't broke don't fix it Discover my world at jkirkerx.com

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups