Discussion:
Outlook attachment files drag and drop
(too old to reply)
r***@gmail.com
2015-02-24 23:01:51 UTC
Permalink
I am able to drag and drop files from file explorer to html 5 web site. Why can't I drag and drop outlook attachment to the same web site? What is the difference between the two?

In terms of development, what need to be done to make it work? If there is more than one way, please, list them.

Thanks in advance
Evertjan.
2015-02-25 08:20:53 UTC
Permalink
Post by r***@gmail.com
I am able to drag and drop files from file explorer to html 5 web site.
You are not.

Not to my websites.

It seems you have to expain [also to yourself] what you mean by "web site".
Post by r***@gmail.com
Why can't I drag and drop outlook attachment to the same web site? What
is the difference between the two?
Is that attachment a file on your computer?

It seems you have to expain [also to yourself] what you mean by "outlook
attachment".
Post by r***@gmail.com
In terms of development, what need to be done to make it work? If there
is more than one way, please, list them.
-
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
R.Wieser
2015-02-25 09:07:57 UTC
Permalink
rgelfand2,
Post by r***@gmail.com
What is the difference between the two?
The (I assume) browser you are dropping your stuff in knows what to do with
files (regardless their actual contents), but it has no clue what to do with
attachment data (and this is true for most other drag-and-droppable
content). It therefore accepts only the former, and rejects the latter.

A big difference is that files actually exist on the drive, while an
attachment (and other drag-and-droppable content) only exists in the
clipboard.

Regards,
Rudy Wieser
Post by r***@gmail.com
I am able to drag and drop files from file explorer to html 5 web site.
Why can't I drag and drop outlook attachment to the same web site? What is
the difference between the two?
Post by r***@gmail.com
In terms of development, what need to be done to make it work? If there
is more than one way, please, list them.
Post by r***@gmail.com
Thanks in advance
r***@gmail.com
2015-02-26 04:22:02 UTC
Permalink
Post by R.Wieser
rgelfand2,
Post by r***@gmail.com
What is the difference between the two?
The (I assume) browser you are dropping your stuff in knows what to do with
files (regardless their actual contents), but it has no clue what to do with
attachment data (and this is true for most other drag-and-droppable
content). It therefore accepts only the former, and rejects the latter.
A big difference is that files actually exist on the drive, while an
attachment (and other drag-and-droppable content) only exists in the
clipboard.
Regards,
Rudy Wieser
Post by r***@gmail.com
I am able to drag and drop files from file explorer to html 5 web site.
Why can't I drag and drop outlook attachment to the same web site? What is
the difference between the two?
Post by r***@gmail.com
In terms of development, what need to be done to make it work? If there
is more than one way, please, list them.
Post by r***@gmail.com
Thanks in advance
I understand. I did a bit of snooping on google and found this http://stackoverflow.com/questions/18625174/implementing-a-drag-and-drop-function-from-ms-outlook-into-our-web-application/18625671#18625671. My problem is, I don't know how to implement it as I missing quite a bit of detail about this.

Perhaps, you may know.

Thanks for your help.
R.Wieser
2015-02-26 09:17:01 UTC
Permalink
Post by R.Wieser
rgelfand2,
My problem is, I don't know how to implement it as I missing
quite a bit of detail about this.
Perhaps, you may know.
Well, the principle is easy enough: You need to create an "IDropTarget
object" (use this for further googeling), which than accepts the dropping of
the clipboard data (your attachment). After that you need to translate and
than transfer the received data to the brower, which means you need to
implement a "browser helper object" (BHO) (which you put the IDropTarget
object into).

However, I can't help you with specifics to the browser helper object, as
I've never created one myself. Also, C(something) isn't really my
programming language-of-choice, which makes it even more difficult. :-\

So, I'm afraid I can't be of much more help here, sorry.

Regards,
Rudy Wieser
Post by R.Wieser
rgelfand2,
Post by r***@gmail.com
What is the difference between the two?
The (I assume) browser you are dropping your stuff in knows what to do with
files (regardless their actual contents), but it has no clue what to do with
attachment data (and this is true for most other drag-and-droppable
content). It therefore accepts only the former, and rejects the latter.
A big difference is that files actually exist on the drive, while an
attachment (and other drag-and-droppable content) only exists in the
clipboard.
Regards,
Rudy Wieser
Post by r***@gmail.com
I am able to drag and drop files from file explorer to html 5 web site.
Why can't I drag and drop outlook attachment to the same web site? What is
the difference between the two?
Post by r***@gmail.com
In terms of development, what need to be done to make it work? If there
is more than one way, please, list them.
Post by r***@gmail.com
Thanks in advance
I understand. I did a bit of snooping on google and found this
http://stackoverflow.com/questions/18625174/implementing-a-drag-and-drop-fun
ction-from-ms-outlook-into-our-web-application/18625671#18625671. My
problem is, I don't know how to implement it as I missing quite a bit of
detail about this.

Perhaps, you may know.

Thanks for your help.
r***@gmail.com
2015-03-08 13:31:42 UTC
Permalink
Post by R.Wieser
Post by R.Wieser
rgelfand2,
My problem is, I don't know how to implement it as I missing
quite a bit of detail about this.
Perhaps, you may know.
Well, the principle is easy enough: You need to create an "IDropTarget
object" (use this for further googeling), which than accepts the dropping of
the clipboard data (your attachment). After that you need to translate and
than transfer the received data to the brower, which means you need to
implement a "browser helper object" (BHO) (which you put the IDropTarget
object into).
However, I can't help you with specifics to the browser helper object, as
I've never created one myself. Also, C(something) isn't really my
programming language-of-choice, which makes it even more difficult. :-\
So, I'm afraid I can't be of much more help here, sorry.
Regards,
Rudy Wieser
Post by R.Wieser
rgelfand2,
Post by r***@gmail.com
What is the difference between the two?
The (I assume) browser you are dropping your stuff in knows what to do
with
Post by R.Wieser
files (regardless their actual contents), but it has no clue what to do
with
Post by R.Wieser
attachment data (and this is true for most other drag-and-droppable
content). It therefore accepts only the former, and rejects the latter.
A big difference is that files actually exist on the drive, while an
attachment (and other drag-and-droppable content) only exists in the
clipboard.
Regards,
Rudy Wieser
Post by r***@gmail.com
I am able to drag and drop files from file explorer to html 5 web site.
Why can't I drag and drop outlook attachment to the same web site? What
is
Post by R.Wieser
the difference between the two?
Post by r***@gmail.com
In terms of development, what need to be done to make it work? If there
is more than one way, please, list them.
Post by r***@gmail.com
Thanks in advance
I understand. I did a bit of snooping on google and found this
http://stackoverflow.com/questions/18625174/implementing-a-drag-and-drop-fun
ction-from-ms-outlook-into-our-web-application/18625671#18625671. My
problem is, I don't know how to implement it as I missing quite a bit of
detail about this.
Perhaps, you may know.
Thanks for your help.
I am working with chrome. I am using pnacl or portable native client executables. I have written pnacl code which communicates with javascript.

The way I have seen this done with windows forms is IDataObject is interfacing with event object raised as a result of windows dragdrop on the form. Firstly, can the pnacl code see the same object? If yes, how can I gain access to it?
Loading...