1.1 --- a/docs/in-page-updates.html Fri Jan 27 00:40:56 2006 +0000
1.2 +++ b/docs/in-page-updates.html Fri Jan 27 00:41:33 2006 +0000
1.3 @@ -112,7 +112,7 @@
1.4 update. Since it is the type values that cause each comment field to be
1.5 added or removed, we add an event attribute on the form field
1.6 responsible for displaying the type values:</p>
1.7 -<pre> <p><br /> Item type:<br /> <select template:multiple-choice-list-field="type,type-enum,value" name="..." multiple="multiple"<br /> <span style="font-weight: bold;">onchange="requestUpdate(</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> 'comments',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:list-attribute('type-enum', 'value')}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:other-elements(../options)}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:child-attribute('value', template:child-element('comment', 1, template:other-elements(../options)))}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '/structure/item/options')"</span>><br /> <option template:multiple-choice-list-value="type-enum,value,selected" value="..." /><br /> </select><br /> </p></pre>
1.8 +<pre> <p><br /> Item type:<br /> <select template:multiple-choice-list-field="type,type-enum,value" name="..." multiple="multiple"<br /> <span style="font-weight: bold;">onchange="requestUpdate(</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> 'comments',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:list-attribute('type-enum', 'value')}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:other-elements(../options)}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '{template:child-attribute('value', template:child-element('comment', 1, template:other-elements(../options)))}',</span><br style="font-weight: bold;" /><span style="font-weight: bold;"> '/structure/item')"</span>><br /> <option template:multiple-choice-list-value="type-enum,value,selected" value="..." /><br /> </select><br /> </p></pre>
1.9 <p>This complicated string calls a special update request JavaScript
1.10 function which triggers the in-page update, and it specifies the
1.11 following things:</p>
1.12 @@ -153,7 +153,7 @@
1.13 therefore, we need to make up the final part of the reference using the
1.14 special <code>template:child-attribute</code>
1.15 and <code>template:child-element</code> functions.</dd>
1.16 - <dt><span style="font-weight: bold;">'/structure/item/options'</span></dt>
1.17 + <dt><span style="font-weight: bold;">'/structure/item'</span></dt>
1.18 <dd>Finally, we need to provide some context to the application to
1.19 tell it something about where in the complete form data structure the
1.20 updated information resides.</dd>