Re: Drag And Drop from URL to Outlook Email



Craig Street wrote:
I'm trying to find out if its possible to build the following drag and
drop behaviour using javascript.

Although I find it rather unlikely, I cannot tell you for sure if it is
possible. However, I can tell you what would be the requirements; HTH.

Drag : I want to drag a URL from a webpage. Clicking on the (rather
than dragging) would stream the document from server to the browser
with the appropriate content type (eg application/msword for a Word
document).

That would mean the browser needed to make an HTTP request, and the response
message needed to be stored or displayed somewhere. If stored, that would
need to be an OLE object that has a draggable representation. If displayed,
you need a proper plugin for the content type that supports OLE dragging.

For retrieval-and-storage you will need at least XHR and (XP)COM. For
display, there are several plugins and extensions available that can display
e.g. Word documents (there is, e.g., the Word Viewer plugin which Office
provides, and Google Documents as provided by the Google Toolbar extension).
I do not know and I cannot test right now if they support dragging to other
application windows.

Drop : I want to be able to drop this on an Outlook email being
composed.

Result : the document that the URL was pointing to would be downloaded
and attached to the email message upon the drag and drop operation.

You will need an Outlook plugin (or a built-in feature, I am not that
well-versed in versions of Outlook newer than 2003) that accepts arbitrary
draggable representations of objects.

I do not know whether that can be achieved using client-side scripting.
However, the only Outlook extension I have seen to date (of SugarCRM) uses
DLLs (.ocx, IIRC), so it is probably not (entirely) written with scripting
(perhaps C++ instead).

I think your chances of success would increase if you would let the browser
only provide the draggable link object (for which support is built into many
browsers already), and let the target of the drag-and-drop operation, here
(an) Outlook (extension), make the HTTP request and create the object
according to the received URI.

Obviously, the simpler two step operation would be to download the
document to your local drive or temp drive and then attach the
downloaded document to the email.

Yes, indeed.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.



Relevant Pages

  • Re: OT FireFox - ascii/html symbols displayed
    ... Linux but some don't (even less display correctly on ... Is there any kind of plugin or extension ... less actually showing a symbol and not a place holder. ...
    (Fedora)
  • Re: REPOST "NEO" Unsafe Attachments/links Edited Registry
    ... Diane Poremsky [MVP - Outlook] ... Then, go in to the> security and privacy tabs, as well as mail format tabs. ... > Outlook 2002 includes a new security feature that blocks> attachments considered unsafe. ... > Request that the sender use a file compression utility> that changes the file extension. ...
    (microsoft.public.outlook)
  • Re: Contacts management and use
    ... There is a bug in some versions of Word relating to the display of the ... From Outlook delete the Outlook Address Book ... Dim objOL As Outlook.Application ... Set objContactFolder = objNS.GetDefaultFolder ...
    (microsoft.public.word.docmanagement)
  • Re: The case for displaying senders real email addresses (with do
    ... familier) but as soon as you see their real address you know it's Junk. ... So until someone at Outlook can figure ... The display addresses alone are inconsistant. ... When reviewing the contents of the junk mail folder before deleting, ...
    (microsoft.public.outlook.general)
  • Re: Something Isnt Working
    ... In GPM when I run a Group Policy Results, ... CATEGORY "Allow/Block attachments in Microsoft Outlook" ... Multiple extension should be sperated by a semicolon." ...
    (microsoft.public.windows.group_policy)