A new document has been created.

http://cocoon.zones.apache.org/daisy/legacydocs/747.html

Document ID: 747
Branch: main
Language: default
Name: Updating Cocoon
Document Type: Document
Created: 10/14/05 7:33:13 AM
Creator (owner): Helma van der Linden
State: publish

Parts
=====

Content
-------
Mime type: text/xml
Size: 2381 bytes
Content:
<html>
<body>

<p>This document holds information necessary to properly upgrade from Cocoon
2.1.5, 2.1.6 or 2.1.7 to the 2.1.8 release. <br/>
If you want to upgrade from an earlier release, please read the information
<a href="daisy:640">here</a> as well.</p>

<p>The Cocoon Dev team has taken great care in keeping the code as compatible as
possible, introducing new features or enhancements inevitably result in small
incompatibilities.</p>

<h1>New features</h1>

<p>Below is a list of new features. The impact will be explained further in
subsequent sections.</p>

<ul>
<li><a href="#ajax">AJAX support for CForms</a></li>
<li>...</li>
</ul>

<h2 id="ajax">AJAX support for CForms</h2>

<p>We will not discuss the AJAX support itself here, but merely the changes in
the CForms definition that might break your code. More information about the
AJAX support can be found ???.</p>

<p class="warn">WRITE AJAX SUPPORT DOCS</p>

<p>In order to make AJAX work, we were forced to change the id of the widget in
the resulting HTML styling. To simplify the identification of the updatable
widgets <tt>-input</tt> is appended to the id. This means that your
<tt>&lt;field id="myWidgetId"&gt;</tt> ends up as .</p>

<p>This will break all Javascripts that use document.getElementById(id) to
retrieve the widget.</p>

<p>We advise you to do a search and replace for these lines along the lines of:
</p>

<p>search: <tt>getElementById\("(.*)"\)<br/>
<tt>replace</tt>: getElementById("\1-select")</tt></p>

<p>This is the list of changes:</p>

<table>
<tbody>
<tr>
<th>
<p>Field type</p>
</th>
<th>
<p>resulting id</p>
</th>
</tr>
<tr>
<td>
<p>input</p>
</td>
<td>
<p>id-input</p>
</td>
</tr>
<tr>
<td>
<p>select</p>
</td>
<td>
<p>id-select</p>
</td>
</tr>
<tr>
<td/>
<td/>
</tr>
</tbody>
</table>

<p class="warn">CHECK AND COMPLETE THIS!</p>

<h1>Changes</h1>

<p>Below you find a list of changes in 2.1.8.</p>

<ul>
<li><strong>Documentation</strong> - We are currently trying to improve the
quality of our documentation. We have therefore moved the documentation out of
the Cocoon repository into a Cocoon-based CMS (Daisy) which greatly simplifies
the writing process. Daisy can export the documentation in a book format, which
is now included in the release as a single PDF. You will find it under ???.</li>
</ul>

<p class="warn">WHERE WILL WE STORE THE NEW DOCS?</p>

</body>
</html>

Collections
===========
The document belongs to the following collections: legacydocs

Reply via email to