phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] jsCalendar popup for phpGW


From: Dave Hall
Subject: Re: [Phpgroupware-developers] jsCalendar popup for phpGW
Date: Tue, 19 Aug 2003 11:35:31 +0000 (GMT)

Ralf Becker <address@hidden> wrote:

> 
> 
> Dave Hall wrote:
> > Heyas
> > 
> > Sounds good Ralf.  While travelling home I have been working on a js
> > class for the api.  The class makes handling js alot easier.  
> > 
> > It handles adding external links, code blocks etc into the header.
> 
> This is already quite easy, add it to 
> $GLOBALS['phpgw_info']['flags']['java_script'] (before calling 
> common::phpgw_header() and it will appear in the header.

I am aware of this ... but ... I have been thinking about making it
easier to use.  The new class still supports the info flag and the
method systems.  But, my concept is to make it even simpler.  The new
javascript class will do this.  It also supports on(Un)Load attributes
for the <body> - something which is currently lacking - which is needed
for HTMLArea.

Anyway, will publish it and people can comment.

> 
> > It also handles creating some of the simpler js that we use, ie 
> popup> alerts and confirms.  I plan to add more to it soon.  I will be
> > committing it to the api soon for people to review.
> > 
> > I have a doc half written doc on using it too 
> > 
> > Cheers
> > 
> > Dave
> > 
> > PS - I did this to make using HTMLArea easier :)
> > 
> > Ralf Becker <address@hidden> wrote:
> > 
> > 
> >>Hi all,
> >>
> >>I imported the jsCalendar 
> (http://dynarch.com/mishoo/calendar.epl) 
> >>popup 
> >>into the API. It allows to select a date from a small popup 
> >>calendar 
> >>(works in IE >= 5.0, Mozilla, Opera 7, other browser can use the 
> >>normal 
> >>input-field).
> >>
> >>I imported the jsCalendar Version 0.9.3 unchanged into the API 
> (for 
> >>easier updateing later) and programmed a wrapper class to use it 
> >>easily 
> >>within phpGW:
> >>
> >>$jscal = CreateObject('phpgwapi.jscalendar');       // before the 
> >>phpgw_header 
> >>call, as it inserts the necessary javascript and css-files into 
> the 
> >>page-header
> >>
> >>echo $jscal->input('startdate',$starttime);
> >>
> >>or
> >>
> >>echo $jscal->input('startdate','',$year,$month,$day);
> >>
> >>There a also a function to convert the date-string back into a 
> >>timestamp 
> >>or an array with year/month/day.
> >>
> >>The wrapper-class loads the javascript file jscalendar-setup.php, 
> >>which 
> >>pulls the date-format and language out of the user prefs and 
> loads 
> >>the 
> >>necessary translations from the db, no extra configuration and 
> >>translation is needed.
> >>
> >>You can test it (after updateing your .16 install) in 
> >>calendar/edit. I 
> >>will implement it soon in InfoLog (eTemplate) and other apps.
> >>
> >>Ralf
> >>
> >>PS.: From the same developer is HTMLarea (richtext editor) and a 
> >>very 
> >>nice menu-system, which might be interesting for the idots 
> sidebox-
> >>menu.-- 
> >>------------------------------------------------------------------
> --
> >>--
> >>Ralf Becker
> >>OUTDOOR UNLIMITED Training GmbH                Telefon 0631 / 
> 31657-0
> >>Leibnizstraße 17                               Telefax 0631 / 
> 31657-26
> >>D-67663 Kaiserslautern            EMail address@hidden
> training.de>>
> >>
> >>
> >>_______________________________________________
> >>Phpgroupware-developers mailing list
> >>address@hidden
> >>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
> >>
> > 
> >> 
> > 
> > _______________________________________________
> > Phpgroupware-developers mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
> 
> -- 
> --------------------------------------------------------------------
> --
> Ralf Becker
> digital ROCK, Becker & Macht GbR            Telefon +49 (631) 31657-51
> Leibnizstraße 17                            Telefax +49 (631) 31657-52
> D-67663 Kaiserslautern                 EMail address@hidden
> 
> 
> 
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
> 
>

Attachment: dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]