root/public/javascripts/scriptaculous/test/functional/ajax_inplacecollectioneditor_test.html

Revision 1, 1.9 kB (checked in by falcon, 17 years ago)

Version one -> initial work from the laptop.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5  <title>script.aculo.us Demo</title>
6  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7  <script src="../../lib/prototype.js" type="text/javascript"></script>
8  <script src="../../src/scriptaculous.js" type="text/javascript"></script>
9  <script src="../../src/unittest.js" type="text/javascript"></script>
10  <style type="text/css" media="screen">
11    .inplaceeditor-saving { background: url(wait.gif) bottom right no-repeat; }
12  </style>
13</head>
14<body>
15<h1>script.aculo.us Demo</h1>
16<p>
17  Demo of the Ajax.InPlaceCollectionEditor.
18</p>
19
20<p id="tobeedited">three</p> (should autoselect "three")
21<script>
22new Ajax.InPlaceCollectionEditor(
23  'tobeedited', '_ajax_inplaceeditor_result.html', {
24  collection: ['one','two','three'],
25  ajaxOptions: {method: 'get'} //override so we can use a static for the result
26});
27</script>
28
29
30<p id="tobeedited2">two</p> (should autoselect "two")
31<script>
32new Ajax.InPlaceCollectionEditor(
33  'tobeedited2', '_ajax_inplaceeditor_result.html', {
34  collection: [[0,'one'],[1,'two'],[2,'three']],
35   ajaxOptions: {method: 'get'} //override so we can use a static for the result
36});
37</script>
38
39<p id="tobeedited3">three</p> (should manually select "one")
40<script>
41new Ajax.InPlaceCollectionEditor(
42  'tobeedited3', '_ajax_inplaceeditor_result.html', {
43  collection: [[0,'one'],[1,'two'],[2,'three']],
44  value: 0,
45  ajaxOptions: {method: 'get'} //override so we can use a static for the result
46});
47</script>
48
49<p id="tobeedited4">one</p> (should manually select "two")
50<script>
51new Ajax.InPlaceCollectionEditor(
52  'tobeedited4', '_ajax_inplaceeditor_result.html', {
53  collection: ['one','two','three'],
54  value: 'two',
55  ajaxOptions: {method: 'get'} //override so we can use a static for the result
56});
57</script>
58
59</body>
60</html>
Note: See TracBrowser for help on using the browser.