I’ve tried walter zorns framework and it works really nice. Drag and Drop for Calendar items now works on my system on Mozilla Firefox 1.5 and Konqueror. I will test the other browsers in near future.
There’s still a lot of work to do on the code, cause I have to look how to integrate dragNdrop best in eGW (if wz_dragdrop is wanted, Ralf??), so it can be used by the other applications, too (an object would be nice…)
Anyone who is interested in the (at the moment mostly “un-nice” code), please announce it here.
Greetings
Christian Binder
Bad news,
I’ve tried a bit more and found new bugs with scriptaculous… I think I’ll give a try to walter zorns framework and throw scriptaculous…
Bye
Christian
Good news,
should work with IE AND Firefox with the newest scriptaculous scripts and prototype libs. I don’t have Internet Explorer here on my laptop. Maybe someone can test it? Would be fine.
controls.js (15 KB)
effects.js (20.2 KB)
prototype.js (27.7 KB)
Bye
Christian
Hi Chistian,
good news - thought it’s hard to include it without IE and Konq support.
Maybe we find someone to add it or point out the problems.
Btw. are you comming to the developer days 24.- 26. Nov. 2006 in
Kirchheimbolanden (close to Frankfurt)?
Ralf
jaytraxx schrieb:
Hi there,
I added a feature to drag events in calendar around. The event gets written
to database by a ajax afterwards. After that, the site reloads. I think it’s
a comfortable feature. Attention: to edit an event with that feature, a
doubleclick is required !
ToDo:
- Handle users ACL (do not make events draggable if the user has no write
permissions to it)
- Display conflict states after dragging (e.g. “the event conflicts with the
following event … of other users …”)
- does not work in Konqueror and IE at the moment, I only tried with firefox
(maybe there’s an javascript expert somewhere who can help me with
dragdrop.js class)
Please tell me what you think about it. If you like it, I’ll try to improve
it.
So, here are the files involved (I worked on eGW 1.3.012)
class.ajaxcalendar.inc.php (1.46 KB)
class.ajaxcalendar.inc.php
controls.js (15 KB) controls.js
dragdrop.js
effects.js (20.2 KB) effects.js
prototype.js (27.7 KB) prototype.js
class.html.inc.php (42.8 KB) class.html.inc.php
class.uical.inc.php
class.uiviews.inc.php (60.6 KB) class.uiviews.inc.php
app.css (9.86 KB) app.css
… and here are the modification descriptions for the files above (only
line numbers)
/calendar/inc/class.ajaxcalendar.inc.php (new)
/phpgwapi/js/st_dragdrop/controls.js (new)
/phpgwapi/js/st_dragdrop/dragdrop.js (new)
/phpgwapi/js/st_dragdrop/effects.js (new)
/phpgwapi/js/prototype/prototype.js (new)
phpgwapi/inc/class.html.inc.php
line 626-657
calendar/inc/class.uical.inc.php
line 236-237
/calendar/inc/class.uiviews.inc.php
line 872-887
line 1141-1153
calendar/templates/default/app.css (calendar->defaultTemplate)
line 227-232
phpgwapi/javascript/st_dragdrop/dragdrop.js
line 143, comment out: “Element.makePositioned(element); // fix IE” <—
because this crashes firefox
line 257, comment out: “Element.makePositioned(element); // fix IE” <—
because this crashes firefox
Greetings
Christian Binder
–
eGroupWare Training & Support ==> http://www.egroupware-support.de</nabble_a>
1.2 Release Offer: 250Euro for a Standard Update or Installation
including 1h Telefonsupport und ein gedrucktes deutsches Handbuch
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</nabble_a>
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers</nabble_a>
[/quote]
[/quote]
[/quote]