Hi all,
My proposal is for all development regarding new UI style as AJAX.
what an Ajax UI need:
A) A JS method that generate a request and will obtain an answer, then
modify the UI
B) A PHP method that receive the request or that is itself requested,
operate some instructions server side (query db, etc…), format the
data to send back (XML, JSON…)
At the moment outside of ajax UI we do have 3 layers: Data layer = so
class, Business logic layer = bo class, and UI layer = ui class
Most of the time the so class can remain as it is.
but,
the bo class could/should need some rework to operate some "Ajaxian"
requests that are often more axiomatic, in fact with ajax only a part of
the ui could be modified, that make the business logic be more specific.
the ui class for ajax have to be discussed, because it depends on the
developper, if all ajax code are in js files, or if some ajax code are
generated with php (like wiht xajax), then sometimes we could need a ui
class or not for an ajax UI.
then my proposal is to not touch the actual code existing for bo and so
class
but create 2 or 3 new layers: class.ajaxuiClassName.inc.php,
class.ajaxboClassName.inc.php and class.ajaxsoClassName.inc.php ( not
sure this last one is really needed)
the “ajaxbo” class should extend the original bo class
the “ajaxui” class normaly should be brand new
it’s a proposal that need some adjustement and discussion, but that
could help us to do a kind of soft transition (perhaps also with a
preference settings that tell to use the ajax UI or keep the older style
ui).
let’s discuss about this
Oliviert
Ralf Becker a écrit :
Hi Christian,
let’s move this discussion to the developer list, here it’s definitly
the wrong place.
jaytraxx schrieb:
Hi Ralf,
my idea for speeding up the calendar, in general and with drag n drop is the
following:
- we use timeGridWidget() just for displaying a base grid, which fits for
all dynamic data in a view (e.g. weekview). This grid holds container DIVs
for the dynamic data.
- we use another Method of uiviews to put the dynamic data (events, date
labels) into the container DIVs. This will be done with innerHTML calls and
adjustments of e.g. $rowHeight with DHTML attribute calls. The
timeGridWidget() has to store some basic data in the users session for the
new method (e.g. $rowHeight), but this should be no problem.
The structure of uiviews is already that way. I’m not sure if it’s wise
to make the first load via ajax too, as it generated more requests on
the server.
So, we have some speedups:
- reloading after dragdrop is not necessary anymore, we just call
$uiviews->newMethod(array $daysToReDisplay);
- navigation through calendar (inside one view) just calls the same method,
there’s no site reload anymore, only the dynamic data gets changed
Agreed.
I would also suggest to look into the “scroll-into-view” stuff I halfway
added. It allows to render the full 24h, but show only the working-day
range with a scrollbar, as the Google calendar does.
This method will probably also be no problem with any future AJAX-frameworks
we will use, cause innerHTML and attribute changes of tags are a basic
functionality and no special thing.
I agree, thought I would not wait anyway, with stuff already possible at
least.
Suggestions and ideas are welcome. I will try to make a start if no one
objects …
Looking forward to your results …
Ralf
Bye
Christian
Ralf Becker wrote:
Hi,
be assured if looking alone would be enough - we already had some of the
features 
I’ve played a bit with the google calendar and the drag-and-drop stuff
is definitely the way to go.
Ralf
dopher schrieb:
First off I love eGroupware. However I had the chance to play with
Google Calendar and the interface is the best I have seen.
Appoints can be moved and resized by dragging, They overlap
perfecty, Supports scroll wheel, superfast and slew of features…
I would love to see the authers look at this and try to incorporate
some of these features into egroupware…
www.google.com/calendar
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users
–
eGroupWare Training & Support ==> http://www.egroupware-support.de
1.2 Release Offer: 250Euro for a Standard Update or Installation
including 1h Telefonsupport und ein gedrucktes deutsches Handbuch
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users