I'm trying to implement some drag and drop functionality in a schedule calculator.
The idea is that a block of data is dragged onto a mail icon, when dropped, the user's email client should be launched and the body of the email filled in with a JSON representation of the data. I've got delete and swap functionality done in a similar manner. The next step is for the receiver to be able to drag the email onto a another icon that would regenerate the data from the JSON object.
Now normally the mailto target lives inside a link, but how do I go about this?
The idea is that a block of data is dragged onto a mail icon, when dropped, the user's email client should be launched and the body of the email filled in with a JSON representation of the data. I've got delete and swap functionality done in a similar manner. The next step is for the receiver to be able to drag the email onto a another icon that would regenerate the data from the JSON object.
Now normally the mailto target lives inside a link, but how do I go about this?