cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: calendar z-order bug #30040
Date Wed, 17 Aug 2005 12:34:14 GMT
Eiko Thomas wrote:
> Uff, problem solved :-)
> Thanks for the response,
> <http://dict.leo.org/se?lp=ende&p=/Mn4k.&search=unfortunately>unfortunately

> the iframe trick doesn't work in my code ... but I find a simple way to 
> change the calendar style to popup window.
> It's only necessary to change line #33 in 'forms-calendar-styling.xsl' 
> (from the form block sample) to ...
> var forms_calendar = CalendarPopup();
> ... and the mattkruse-lib code do the rest for you.
> 
> Ok, the div based calendar looks better, but the popup window is in all 
> cases in front of other controls ( I hope so ;-))
> 
> Greetings Eiko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
even better do not fouch forms-calendar-styling.xsl but extend it:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:fi="http://apache.org/cocoon/forms/1.0#instance">
   <xsl:import href="forms-samples-styling.xsl"/>
   <xsl:param name="resources-uri">cforms</xsl:param>

   <xsl:template match="head" mode="forms-calendar">
   	<xsl:apply-imports/>
     <script type="text/javascript">
       forms_calendar.setDayHeaders("N","Pn","Wt","Ĺšr","Cz","Pt","S");
 
forms_calendar.setMonthNames("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień");
       forms_calendar.setTodayText( "Dzisiaj" );
     </script>
   </xsl:template>
</xsl:template>

You can override the <xsl:template match="head" mode="forms-calendar"> 
behavior totally if you remove <xsl:apply-imports/>.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message