Line | |
---|
1 | require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojo/sniff"], |
---|
2 | function(win, Application, jsonRef, config, has){ |
---|
3 | win.global.modelApp = {}; |
---|
4 | modelApp.names = { |
---|
5 | identifier: "id", |
---|
6 | items: [{ |
---|
7 | "id": "1", |
---|
8 | "Serial": "360324", |
---|
9 | "First": "John", |
---|
10 | "Last": "Doe", |
---|
11 | "Email": "jdoe@us.ibm.com", |
---|
12 | "ShipTo": { |
---|
13 | "Street": "123 Valley Rd", |
---|
14 | "City": "Katonah", |
---|
15 | "State": "NY", |
---|
16 | "Zip": "10536" |
---|
17 | }, |
---|
18 | "BillTo": { |
---|
19 | "Street": "17 Skyline Dr", |
---|
20 | "City": "Hawthorne", |
---|
21 | "State": "NY", |
---|
22 | "Zip": "10532" |
---|
23 | } |
---|
24 | }] |
---|
25 | }; |
---|
26 | modelApp.names2 = { |
---|
27 | identifier: "id", |
---|
28 | items: [{ |
---|
29 | "id": "1", |
---|
30 | "Serial": "360324", |
---|
31 | "First": "John", |
---|
32 | "Last": "Doe", |
---|
33 | "Email": "jdoe@us.ibm.com", |
---|
34 | "ShipTo": { |
---|
35 | "Street": "123 Valley Rd", |
---|
36 | "City": "Katonah", |
---|
37 | "State": "NY", |
---|
38 | "Zip": "10536" |
---|
39 | }, |
---|
40 | "BillTo": { |
---|
41 | "Street": "17 Skyline Dr", |
---|
42 | "City": "Hawthorne", |
---|
43 | "State": "NY", |
---|
44 | "Zip": "10532" |
---|
45 | } |
---|
46 | }] |
---|
47 | }; |
---|
48 | modelApp.repeatData = [{ |
---|
49 | "First": "Chad", |
---|
50 | "Last": "Chapman", |
---|
51 | "Location": "CA", |
---|
52 | "Office": "1278", |
---|
53 | "Email": "c.c@test.com", |
---|
54 | "Tel": "408-764-8237", |
---|
55 | "Fax": "408-764-8228" |
---|
56 | }, { |
---|
57 | "First": "Irene", |
---|
58 | "Last": "Ira", |
---|
59 | "Location": "NJ", |
---|
60 | "Office": "F09", |
---|
61 | "Email": "i.i@test.com", |
---|
62 | "Tel": "514-764-6532", |
---|
63 | "Fax": "514-764-7300" |
---|
64 | }, { |
---|
65 | "First": "John", |
---|
66 | "Last": "Jacklin", |
---|
67 | "Location": "CA", |
---|
68 | "Office": "6701", |
---|
69 | "Email": "j.j@test.com", |
---|
70 | "Tel": "408-764-1234", |
---|
71 | "Fax": "408-764-4321" |
---|
72 | }]; |
---|
73 | var cfg = jsonRef.fromJson(config); |
---|
74 | has.add("ie9orLess", has("ie") && (has("ie") <= 9)); |
---|
75 | Application(cfg); |
---|
76 | |
---|
77 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.