stev47 / timetable

discontinued
1 stars 0 forks source link

[FeatureRequest] Drag&Drop for arranging lessons #2

Open Ryuno-Ki opened 11 years ago

Ryuno-Ki commented 11 years ago

It would be cool, if it were possible to rearrange lessons by simply Drag&Drop. I'm on it using jQueryUI at the moment. It seems, that your position calculating prevents dragging, but I have to dig into further to be sure.

stev47 commented 11 years ago

For drag&drop you'd have to come up with some sort of grid-size for the time axis.

Ryuno-Ki commented 11 years ago

Please, add a tag for this kind of issues (better sort and so on). Nice catchword by the way: The jQuery UI Grid team lists some compatible plugins - some preferable choices? Or is it up to me?

There are plenty other plugins as well.

Ryuno-Ki commented 11 years ago

I've decided to use pqgrid now. Since it is not hosted on a CDN I had to download it: https://github.com/Ryuno-Ki/timetable/tree/DragnDrop

It is released under MIT license. Consider this when deciding for a license (since not every license is compatible to each other one).

Ryuno-Ki commented 11 years ago

Please check out my latest commits on above Tree. At least read the listed points in index.html - dealing with some mockups/todos, we should think about.

stev47 commented 11 years ago

I'm having issues with your action-attribute … it reloads the whole page. Otherwise it looks nice. I've been using DataTables up until now but wasn't sure if it fits our needs.

Ryuno-Ki commented 11 years ago

It's intended, since a Perl/PHP script would cause a reload as well.

You can provide an example on an other branch with your library as well. This way we can compare.

stev47 commented 11 years ago

no, i'm thinking about ajax-requests with a php (or even js, see node.js) backend … page reloads should be avoided.

Ryuno-Ki commented 11 years ago

In general, yes, page reloading should be avoided. BUT, when you want to use AJAX or similar, you need a server to handle it. We will need one anyway due to SOP. But we should think carefully about it, considering the given software constraints like used OS (Debian 6 resp. 7) and available scripting languages. Can you check, whether Node.JS is available? I'm interested in using it (cause it's fancy to me :))

stev47 commented 11 years ago

I'm in favour of trying node.js, but unfortunately it doesn't seem to be in the package repositories for debian squeeze or wheeze.