473,806 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drag and drop images

exoskeleton
104 New Member
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
May 9 '07 #1
6 4392
exoskeleton
104 New Member
is this possible with ajax? drag an image from your local files to your webpage?
May 9 '07 #2
exoskeleton
104 New Member
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
May 10 '07 #3
dmjpro
2,476 Top Contributor
try to have a look on this link ...............


http://www.cyberdummy.co.uk/test/dd.php

best of luck.
kind regards.
May 10 '07 #4
pbmods
5,821 Recognized Expert Expert
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.

http://www.codingforums.com/showthread.php?t=36896
May 10 '07 #5
exoskeleton
104 New Member
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
May 11 '07 #6
acoder
16,027 Recognized Expert Moderator MVP
Merged threads.
May 11 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1866
by: portraitmaker | last post by:
I found some drag and drop code on the web and modified it a little b taking out some of the stuff I didn't need. This sample allows you to drag an image in a table to another positio and swaps the images. Rather than just swap the images I would like t have it insert the image and move the other images down one position (or up) What would be even better is to have a radio button to specif whether you want to swap or insert the image. ...
6
2652
by: Colin Young | last post by:
I've got a owner-drawn listview control that displays images and now I'm trying to implement drag and drop so I can drag images from the control and drop them onto other applications. So far if I drop on windows explorer it works (i.e. an image file is created where I dropped the image) or the console displays the full path to the image. Unfortunately it doesn't work with Excel. Nothing at all happens. No error, nothing. The code I am...
3
2590
by: Andrea B. | last post by:
Can anyone suggest me some samples to make Drag and Drop quiz? I'm able to Drag and Drop images. problem: I have 3 static images and 3 dragging images, i would like to know how undertand if a draggable image is dropped on the right static image. thanks all
3
1222
by: Joe Turek | last post by:
I store images in a database instead of the filesystem. I deliver these images via a page that uses Response.OutputStream to send the bytes back to a calling page. So a given page on my site will embed an image like this: <img id="imageone" src="http://localhost/image.aspx?id=20"></img> I display a page with a gallery of these images for users to drag into a content editor for the CMS portion of the site. All of this has worked fine....
1
1935
by: Robin Tucker | last post by:
Apologies for the ambiguous title, you will be expecting me to be asking how to perform drag and drop from my application into another application. Well, kind-of. I've got drag and drop sorted, apart from one thing. I'm dragging and dropping items from my treeview and listview which represent database "Images" (blobs). Now, I don't store the blob in the tree, I fetch it when I need it. This is a problem for drag and drop, because, for...
14
3110
by: maya | last post by:
I need a drag-n-drop script.. I have found one here.. http://javascript.internet.com/page-details/drag-n-drop.html each div containing an image has an id, and each image has a name, as in <div id="h" style="position:absolute;left:100;top:350;"> <img src=http://javascript.internet.com/img/cards/hearts.gif name="h"> </div> but I don't see where he references these id's and names in the JS code..
2
2953
by: sebastian.janoschka | last post by:
Hi, I build my first Drag & Drop with JavaScript and I would like to drag the pictures when I click on it. When I create a normal div tag with some text the script works, but when I put a image in the div tag it works not correctly. Here is my Code... I integrated three pictures and one text, then you can see the differences.
1
2581
by: kidelectric | last post by:
The issue I am having is that I would like to be able to drag-and-drop div elements that have rounded corners.* Since these elements will be dynamically created (including background color), I could not use the "standard" rounded corner method of sliced images for the corners (since that would only allow a certain color to match) I tried using a corner-rounding js tool from http://openrico.org, but it failed miserably (in both IE and Opera) ...
0
1402
by: arvinds | last post by:
I have an application in which I have 2 forms. 1.Review Form 2. FilmForm. Review Form is used for Loading some images and we can transfer the Images from Review From to FilmForm by Drag-Drop operation by left Click of Mouse. FilmForm is comprised of UserControl placed over a Panel in a GridFormat.
0
2192
by: jgraham | last post by:
I am trying to figure out how to receive images that are dropped from a web browser (IE or Firefox). For instance, after performing an image search on Google, I have several thumbnails displayed in the web browser. I would simply like to be able to drag and drop one of the thumbnails onto my application and receive the image or a URL for the image. I have implemented several drag and drop applications in the past and so I know the...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.