I have a draggable editor where the user selects an audio file drag it and drop it n that editor where a waveform is open. here is the code for that:
this.defineDropHandler = function defineDropHandler(dropContainerElement)
{
// init event handlers
dropContainerElement.addEventListener("dragenter", this.skipEventHandler, false);
dropContainerElement.addEventListener("dragexit", this.skipEventHandler, false);
dropContainerElement.addEventListener("dragover", this.skipEventHandler, false);
dropContainerElement.addEventListener("drop", this.dropHandler, false);
dropContainerElement.masterObj = this; // need to define this controller for further events
};
what I actually want is to have an open file button which opens a window where the user double click on an audio file and that file is directly dropped in the editor(not drag and drop required). the path of the folder to open is: C:\wamp\www\JSSoundRecorder\upload