Validate if my drop location is not empty using JS(HTML DnD API)
-
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!
-
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!
-
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?
-
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!
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
-
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
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
-
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!
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.
-
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!
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