| Preface |
|
1 | (1) |
|
Advisory of previous publication |
|
|
1 | (1) |
|
About the Adobe GoLive CS2 SDK |
|
|
1 | (1) |
|
|
|
2 | (3) |
|
Who should read this book |
|
|
3 | (1) |
|
|
|
3 | (1) |
|
|
|
4 | (1) |
|
Typographical conventions |
|
|
4 | (1) |
|
|
|
4 | (1) |
|
|
|
5 | (1) |
|
Where to go for more information |
|
|
5 | (4) |
|
Part 1: SDK Programmer's Guide |
|
|
|
Installing and Configuring the GoLive SDK |
|
|
9 | (6) |
|
Installing the GoLive CS2 SDK |
|
|
9 | (1) |
|
Installing the core set of tools and sample extensions |
|
|
9 | (1) |
|
Installing the core extensions |
|
|
9 | (1) |
|
Uninstalling an extension |
|
|
10 | (1) |
|
Configuring GoLive for Extension Development |
|
|
10 | (2) |
|
Enabling the Extend Script module |
|
|
10 | (1) |
|
Enabling and disabling modules |
|
|
11 | (1) |
|
|
|
12 | (3) |
|
|
|
13 | (2) |
|
How to Create an Extension |
|
|
15 | (12) |
|
About Adobe GoLive CS2 SDK Extensions |
|
|
15 | (2) |
|
|
|
15 | (2) |
|
|
|
17 | (2) |
|
|
|
18 | (1) |
|
|
|
19 | (1) |
|
Creating an Extension Module |
|
|
20 | (2) |
|
Creating the Main.html file |
|
|
20 | (2) |
|
Adding SDK Tags and JavaScript Functions to the Module |
|
|
22 | (5) |
|
|
|
22 | (1) |
|
Adding event-handling functions |
|
|
23 | (2) |
|
|
|
25 | (2) |
|
The JavaScript Environment |
|
|
27 | (20) |
|
JavaScript Objects in the GoLive Environment |
|
|
27 | (5) |
|
Objects, elements, and properties |
|
|
27 | (1) |
|
Accessing attribute values |
|
|
28 | (1) |
|
Naming objects and attributes |
|
|
29 | (1) |
|
JavaScript object collections |
|
|
29 | (1) |
|
Using the global object arrays |
|
|
30 | (1) |
|
|
|
31 | (1) |
|
Updating references to objects |
|
|
32 | (1) |
|
Scope of Variables and Functions |
|
|
32 | (2) |
|
|
|
34 | (1) |
|
|
|
34 | (3) |
|
Defining and Registering Event Handlers |
|
|
35 | (1) |
|
|
|
36 | (1) |
|
|
|
37 | (3) |
|
|
|
37 | (1) |
|
Non-persistent shared data |
|
|
38 | (1) |
|
Communicating with other extensions |
|
|
38 | (1) |
|
Sending messages to other extension modules |
|
|
39 | (1) |
|
Responding to a broadcast |
|
|
39 | (1) |
|
|
|
40 | (7) |
|
|
|
40 | (1) |
|
Setting the JavaScript timeout |
|
|
40 | (1) |
|
|
|
41 | (1) |
|
Starting a progress or busy bar |
|
|
42 | (1) |
|
Updating a progress or busy bar |
|
|
42 | (1) |
|
|
|
43 | (4) |
|
Part 2: SDK Programmer's Reference |
|
|
|
|
|
47 | (274) |
|
Global Properties and Functions |
|
|
47 | (6) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
|
|
50 | (1) |
|
|
|
50 | (1) |
|
|
|
50 | (1) |
|
|
|
50 | (1) |
|
|
|
51 | (1) |
|
|
|
51 | (1) |
|
|
|
51 | (1) |
|
|
|
51 | (1) |
|
|
|
52 | (1) |
|
|
|
52 | (1) |
|
|
|
52 | (1) |
|
|
|
52 | (1) |
|
|
|
52 | (1) |
|
|
|
53 | (9) |
|
|
|
53 | (1) |
|
|
|
53 | (1) |
|
|
|
53 | (1) |
|
|
|
53 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
54 | (1) |
|
|
|
55 | (1) |
|
|
|
55 | (1) |
|
|
|
55 | (1) |
|
|
|
55 | (1) |
|
|
|
55 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
56 | (1) |
|
|
|
57 | (1) |
|
|
|
57 | (1) |
|
|
|
57 | (1) |
|
|
|
58 | (1) |
|
|
|
58 | (1) |
|
|
|
58 | (1) |
|
|
|
58 | (1) |
|
|
|
58 | (1) |
|
|
|
58 | (1) |
|
|
|
59 | (1) |
|
|
|
59 | (1) |
|
|
|
59 | (1) |
|
|
|
59 | (1) |
|
|
|
59 | (1) |
|
|
|
60 | (1) |
|
|
|
60 | (1) |
|
|
|
61 | (1) |
|
|
|
61 | (1) |
|
|
|
62 | (1) |
|
Acquiring an attribute object |
|
|
62 | (1) |
|
attribute object properties |
|
|
62 | (1) |
|
|
|
62 | (1) |
|
|
|
62 | (1) |
|
|
|
62 | (1) |
|
|
|
63 | (1) |
|
Acquiring a bounds object |
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
63 | (1) |
|
|
|
64 | (3) |
|
|
|
64 | (1) |
|
|
|
64 | (1) |
|
|
|
64 | (1) |
|
|
|
64 | (1) |
|
|
|
64 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
65 | (1) |
|
|
|
66 | (1) |
|
|
|
66 | (1) |
|
|
|
66 | (1) |
|
|
|
66 | (1) |
|
|
|
67 | (5) |
|
Acquiring a changeMarkup object |
|
|
67 | (1) |
|
changeMarkup object properties |
|
|
67 | (1) |
|
|
|
67 | (1) |
|
|
|
67 | (1) |
|
changeMarkup object functions |
|
|
68 | (1) |
|
|
|
68 | (1) |
|
|
|
68 | (1) |
|
|
|
68 | (1) |
|
Setting properties for supported actions |
|
|
68 | (4) |
|
|
|
72 | (3) |
|
Acquiring collection objects |
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
MarkupSettingElement Collection |
|
|
73 | (1) |
|
MarkupSettingEntity Collection |
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
collection object properties |
|
|
74 | (1) |
|
|
|
74 | (1) |
|
|
|
74 | (1) |
|
|
|
74 | (1) |
|
|
|
75 | (2) |
|
Acquiring comment objects |
|
|
75 | (1) |
|
comment object properties |
|
|
75 | (1) |
|
|
|
75 | (1) |
|
|
|
75 | (1) |
|
|
|
75 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
77 | (1) |
|
Acquiring the common object |
|
|
77 | (1) |
|
|
|
77 | (1) |
|
|
|
77 | (1) |
|
|
|
78 | (7) |
|
Acquiring control objects |
|
|
78 | (1) |
|
general control object properties |
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
79 | (1) |
|
|
|
80 | (1) |
|
|
|
80 | (1) |
|
|
|
80 | (1) |
|
|
|
80 | (1) |
|
|
|
80 | (1) |
|
|
|
81 | (1) |
|
|
|
81 | (1) |
|
|
|
81 | (1) |
|
|
|
81 | (1) |
|
general control object functions |
|
|
82 | (1) |
|
|
|
82 | (1) |
|
|
|
82 | (1) |
|
|
|
82 | (1) |
|
|
|
83 | (1) |
|
|
|
83 | (1) |
|
|
|
83 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
85 | (1) |
|
Acquiring a button object |
|
|
85 | (1) |
|
|
|
86 | (1) |
|
Acquiring a checkbox object |
|
|
86 | (1) |
|
checkbox object properties |
|
|
86 | (1) |
|
|
|
86 | (1) |
|
Control: colorfield Object |
|
|
87 | (1) |
|
Acquiring a colorfield object |
|
|
87 | (1) |
|
|
|
88 | (2) |
|
Acquiring a combobox object |
|
|
88 | (1) |
|
combobox object properties |
|
|
88 | (1) |
|
|
|
88 | (1) |
|
|
|
88 | (1) |
|
combobox object functions |
|
|
89 | (1) |
|
|
|
89 | (1) |
|
|
|
89 | (1) |
|
|
|
89 | (1) |
|
|
|
89 | (1) |
|
|
|
89 | (1) |
|
Control: custom Control Object |
|
|
90 | (1) |
|
Acquiring a custom control object |
|
|
90 | (1) |
|
|
|
91 | (2) |
|
Acquiring an edittext object |
|
|
91 | (2) |
|
|
|
93 | (3) |
|
Acquiring a filelist object |
|
|
93 | (1) |
|
filelist object properties |
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
94 | (1) |
|
filelist object functions |
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
95 | (1) |
|
|
|
95 | (1) |
|
|
|
96 | (1) |
|
|
|
96 | (1) |
|
Control: hierarchy Object |
|
|
97 | (3) |
|
Acquiring a hierarchy object |
|
|
97 | (1) |
|
hierarchy object properties |
|
|
98 | (1) |
|
|
|
98 | (1) |
|
|
|
98 | (1) |
|
|
|
98 | (1) |
|
hierarchy object functions |
|
|
98 | (1) |
|
|
|
98 | (1) |
|
|
|
99 | (1) |
|
|
|
99 | (1) |
|
|
|
99 | (1) |
|
|
|
100 | (2) |
|
|
|
100 | (1) |
|
|
|
100 | (1) |
|
|
|
100 | (1) |
|
|
|
100 | (1) |
|
|
|
100 | (1) |
|
|
|
101 | (1) |
|
|
|
101 | (1) |
|
|
|
101 | (1) |
|
|
|
101 | (1) |
|
|
|
101 | (1) |
|
|
|
102 | (1) |
|
|
|
102 | (1) |
|
|
|
103 | (2) |
|
|
|
103 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
104 | (1) |
|
|
|
105 | (3) |
|
|
|
105 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
107 | (1) |
|
|
|
108 | (2) |
|
Acquiring a preview object |
|
|
108 | (1) |
|
preview object properties |
|
|
108 | (1) |
|
|
|
108 | (1) |
|
|
|
108 | (1) |
|
|
|
108 | (1) |
|
|
|
108 | (1) |
|
|
|
108 | (1) |
|
|
|
109 | (1) |
|
|
|
109 | (1) |
|
|
|
109 | (1) |
|
Control: progressbar Object |
|
|
110 | (1) |
|
Acquiring a progressbar object |
|
|
110 | (1) |
|
progressbar object properties |
|
|
110 | (1) |
|
|
|
110 | (1) |
|
|
|
110 | (1) |
|
Control: radiobutton Object |
|
|
111 | (1) |
|
Acquiring a radiobutton object |
|
|
111 | (1) |
|
radiobutton object properties |
|
|
111 | (1) |
|
|
|
111 | (1) |
|
Control: scrollbar Object |
|
|
112 | (1) |
|
Acquiring a scrollbar object |
|
|
112 | (1) |
|
scrollbar object properties |
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
113 | (1) |
|
Acquiring a slider object |
|
|
113 | (1) |
|
|
|
113 | (1) |
|
|
|
113 | (1) |
|
|
|
113 | (1) |
|
|
|
113 | (1) |
|
|
|
113 | (1) |
|
|
|
114 | (2) |
|
Acquiring a source object |
|
|
114 | (1) |
|
|
|
114 | (1) |
|
|
|
114 | (1) |
|
|
|
114 | (1) |
|
|
|
115 | (1) |
|
|
|
115 | (1) |
|
Control: statictext Object |
|
|
116 | (1) |
|
Acquiring a statictext object |
|
|
116 | (1) |
|
Control: urlgetter Object |
|
|
117 | (1) |
|
Acquiring a urlgetter object |
|
|
117 | (1) |
|
urlgetter object functions |
|
|
117 | (1) |
|
|
|
117 | (1) |
|
|
|
118 | (1) |
|
Acquiring a CSSCharsetRule object |
|
|
118 | (1) |
|
CSSCharsetRule object properties |
|
|
118 | (1) |
|
|
|
118 | (1) |
|
|
|
118 | (1) |
|
|
|
118 | (1) |
|
|
|
118 | (1) |
|
|
|
118 | (1) |
|
|
|
119 | (1) |
|
Acquiring a CSSFontfaceRule object |
|
|
119 | (1) |
|
CSSFontfaceRule object properties |
|
|
119 | (1) |
|
|
|
119 | (1) |
|
|
|
119 | (1) |
|
|
|
119 | (1) |
|
|
|
119 | (1) |
|
|
|
119 | (1) |
|
|
|
120 | (2) |
|
Acquiring a CSSImportRule object |
|
|
120 | (1) |
|
CSSImportRule object properties |
|
|
120 | (1) |
|
|
|
120 | (1) |
|
|
|
120 | (1) |
|
|
|
120 | (1) |
|
|
|
120 | (1) |
|
CSSImportRule object functions |
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
121 | (1) |
|
|
|
122 | (2) |
|
Acquiring a CSSMediaRule object |
|
|
122 | (1) |
|
CSSMediaRule object properties |
|
|
122 | (1) |
|
|
|
122 | (1) |
|
|
|
122 | (1) |
|
|
|
122 | (1) |
|
|
|
122 | (1) |
|
|
|
122 | (1) |
|
|
|
122 | (1) |
|
CSSMediaRule object functions |
|
|
123 | (1) |
|
|
|
123 | (1) |
|
|
|
123 | (1) |
|
|
|
124 | (1) |
|
Acquiring a CSSPageRule object |
|
|
124 | (1) |
|
CSSPageRule object properties |
|
|
124 | (1) |
|
|
|
124 | (1) |
|
|
|
124 | (1) |
|
|
|
124 | (1) |
|
|
|
124 | (1) |
|
|
|
124 | (1) |
|
CSSStyleDeclaration Object |
|
|
125 | (2) |
|
Acquiring a CSSStyleDeclaration object |
|
|
125 | (1) |
|
CSSStyleDeclaration object properties |
|
|
125 | (1) |
|
|
|
125 | (1) |
|
|
|
125 | (1) |
|
|
|
125 | (1) |
|
CSSStyleDeclaration object functions |
|
|
125 | (1) |
|
|
|
125 | (1) |
|
|
|
125 | (1) |
|
|
|
126 | (1) |
|
|
|
126 | (1) |
|
|
|
126 | (1) |
|
|
|
127 | (2) |
|
Acquiring a CSSStyleRule object |
|
|
127 | (1) |
|
CSSStyleRule object properties |
|
|
128 | (1) |
|
|
|
128 | (1) |
|
|
|
128 | (1) |
|