> -----Original Message-----
> From: Nicolás Lichtmaier [mailto:[EMAIL PROTECTED]
> Sent: woensdag 22 maart 2006 14:46
> To: [email protected]
> Subject: Re: Where are the JavaScript functions?
> 
> 
> 
> > In your sitemap.xmap, you need to include a matcher for the 
> > client-side javascript files. You should write something like this:
> >
> > <map:match pattern="resources/*/**">
> >  <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
> > </map:match>
> 
> I already have that in the sitemap. But there's no inclussion, no 
> <script src=""> tag. And there's no documentation about what I should 
> add and I can't find any such tag in the samples.
> 
> Should I add an inclussion of forms-lib.js by hand?
> 
> Isn't all this very poorly documented? =/
> 

The file forms-field-styling.xsl contains this line:
    <script src="{$resources-uri}/forms-lib.js" type="text/javascript"/>

It may cause some bug with MSIE not displaying a page, so you may need to 
change it to
    <script src="{$resources-uri}/forms-lib.js" 
type="text/javascript">&#160;</script>

You can find forms-field-styling.xsl in 
src/blocks/forms/java/org/apache/cocoon/forms/resources

Jasha Joachimsthal

---------

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

[EMAIL PROTECTED]
www.hippo.nl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to