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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]