The Drag-and-Drop Library
The drag-and-drop library consists of 11 functions (see Table 6-1). Of these functions only the buildDraggables and the calculateDropLocations functions need to be called directly. All other functions should be considered private and not be called from outside the library (see Chapter 3 for a discussion of public, protected, and private). All of these functions are found in the util.js file.
While each of these functions is available in the util.js file, the make Draggable function contains the major portion of the code that converts standard JavaScript elements created by the browser to represent standard HTML tags into draggable elements that can be moved around the screen.
The makeDraggable function takes advantage ...
Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.