Drag and Drop |
12/24/2025 09:49:02 | |
| PHPRunner General questions | ||
|
M
MikeUk author
Has anyone every tried working with JS drag and drop? I was thinking, that this would offer some great functionality that could speed up data entry, FOr example, an dashboad showing a list of orders and the user can click on one of the items in a grid, and drag it to an area on the form and it creates a pickup request for the courier. https://www.javascripttutorial.net/web-apis/javascript-drag-and-drop/ I was thinking along the lines of an Ajax evernt on the row click could capture the ID field of the record and store it in a $ SESSION [] then on-drop another ajax script runs to do any testing, either in JS or PHP and affer a cinfirmation, completes the update request. |
||
|
|
ChatGPT 12/24/2025 |
|
Yes, using JavaScript's drag-and-drop functionality in a PHPRunner application can indeed enhance user experience and improve data entry efficiency. The concept you mentioned—dragging items from a grid to create a pickup request—is a practical application of this feature. Here's a high-level overview of how you could implement this in PHPRunner:
Here’s a simple example of how this might look in JavaScript:
Experimenting:It sounds like you have a great plan for experimenting over the break! Try small prototypes first to see how the drag-and-drop functionality can work with your existing grid and forms. Good luck, and enjoy your experiments! |
|
|
|
Sergey Kornilov admin 12/24/2025 |
|
We had this exact topic discussed in one of our DevClub webinars: https://xlinesoft.com/devclub
|
|