1.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Wed Oct 12 17:14:31 2005 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Wed Oct 12 17:15:33 2005 +0000
1.3 @@ -68,7 +68,7 @@
1.4 <th colspan="2" class="heading">Platforms</th>
1.5 </tr>
1.6 </tbody>
1.7 - <tbody template:id="platforms-node" id="{template:this-element()}">
1.8 + <tbody template:id="platforms-node" id="platforms-target">
1.9 <tr template:element="platforms,platform">
1.10 <th>Platform name</th>
1.11 <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.12 @@ -76,7 +76,8 @@
1.13 return requestUpdate(
1.14 'platforms',
1.15 '{template:other-attributes('name', ../platform)},{template:selector-name('remove_platform', .)}',
1.16 - '{template:other-elements(../..)}', '{template:other-attributes('name', ../platform)}',
1.17 + 'platforms-target',
1.18 + '{template:other-attributes('name', ../platform)}',
1.19 '/package')
1.20 "/></td>
1.21 </tr>
1.22 @@ -87,39 +88,68 @@
1.23 return requestUpdate(
1.24 'platforms',
1.25 '{template:other-attributes('name', .)},{template:other-attributes('name', platforms/platform)},{template:selector-name('add_platform', .)}',
1.26 - '{template:other-elements(.)}', '{template:other-attributes('name', platforms/platform)}',
1.27 + 'platforms-target',
1.28 + '{template:other-attributes('name', platforms/platform)}',
1.29 '/package')
1.30 "/></td>
1.31 </tr>
1.32 </tbody>
1.33 - <tbody>
1.34 + <tbody template:id="supported-platforms-node" id="supported-platforms-target">
1.35 <tr>
1.36 <th colspan="2" class="heading">Supported platforms</th>
1.37 </tr>
1.38 <tr template:element="supported-platforms,supported-platform">
1.39 <th>Platform name</th>
1.40 <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.41 - <input type="submit" value="Remove!" name="..." template:selector-field="remove_supported_platform"
1.42 - /></td>
1.43 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_supported_platform" onclick="
1.44 +return requestUpdate(
1.45 + 'supported-platforms',
1.46 + '{template:other-attributes('name', ../supported-platform)},{template:selector-name('remove_supported_platform', .)}',
1.47 + 'supported-platforms-target',
1.48 + '{template:other-attributes('name', ../supported-platform)}',
1.49 + '/package')
1.50 +"/></td>
1.51 </tr>
1.52 <tr>
1.53 <th></th>
1.54 <td>
1.55 - <input type="submit" value="Add platform!" name="..." template:selector-field="add_supported_platform,supported-platform"
1.56 - /></td>
1.57 + <input type="submit" value="Add platform!" name="..." template:selector-field="add_supported_platform,supported-platform" onclick="
1.58 +return requestUpdate(
1.59 + 'supported-platforms',
1.60 + '{template:other-attributes('name', .)},{template:other-attributes('name', supported-platforms/supported-platform)},{template:selector-name('add_supported_platform', .)}',
1.61 + 'supported-platforms-target',
1.62 + '{template:other-attributes('name', supported-platforms/supported-platform)}',
1.63 + '/package')
1.64 +"/></td>
1.65 </tr>
1.66 <tr>
1.67 <th colspan="2" class="heading">Keywords</th>
1.68 </tr>
1.69 + </tbody>
1.70 + <tbody template:id="keywords-node" id="keywords-target">
1.71 <tr template:element="keywords,keyword">
1.72 <th>Keyword</th>
1.73 <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.74 - <input type="submit" value="Remove!" template:selector-field="remove_keyword" name="..." /></td>
1.75 + <input type="submit" value="Remove!" template:selector-field="remove_keyword" name="..." onclick="
1.76 +return requestUpdate(
1.77 + 'keywords',
1.78 + '{template:other-attributes('name', ../keyword)},{template:selector-name('remove_keyword', .)}',
1.79 + 'keywords-target',
1.80 + '{template:other-attributes('name', ../keyword)}',
1.81 + '/package')
1.82 +"/></td>
1.83 </tr>
1.84 <tr>
1.85 <th></th>
1.86 <td>
1.87 - <input type="submit" value="Add keyword!" name="..." template:selector-field="add_keyword,keyword" /></td>
1.88 + <input type="submit" value="Add keyword!" name="..." template:selector-field="add_keyword,keyword" onclick="
1.89 +return requestUpdate(
1.90 + 'keywords',
1.91 + '{template:other-attributes('name', .)},{template:other-attributes('name', keywords/keyword)},{template:selector-name('add_keyword', .)}',
1.92 + 'keywords-target',
1.93 + '{template:other-attributes('name', keywords/keyword)}',
1.94 + '/package')
1.95 +"/></td>
1.96 </tr>
1.97 <tr>
1.98 <th colspan="2" class="heading">Authors</th>