Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
        <div class="body-wrap">
2
        <div class="top-tools">
3
            <a class="inner-link" href="#Ext.data.ScriptTagProxy-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.data.ScriptTagProxy-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.data.ScriptTagProxy-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                            <a class="inner-link" href="#Ext.data.ScriptTagProxy-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7
                        <a class="bookmark" href="../docs/?class=Ext.data.ScriptTagProxy"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8
        </div>
9
                <div class="inheritance res-block">
10
<pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11
  <img src="resources/elbow-end.gif"/><a ext:cls="Ext.data.DataProxy" ext:member="" href="output/Ext.data.DataProxy.html">DataProxy</a>
12
    <img src="resources/elbow-end.gif"/>ScriptTagProxy</pre></div>
13
                <h1>Class Ext.data.ScriptTagProxy</h1>
14
        <table cellspacing="0">
15
            <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
16
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/data/ScriptTagProxy.js" target="_blank">ScriptTagProxy.js</a></td></tr>
17
            <tr><td class="label">Class:</td><td class="hd-info">ScriptTagProxy</td></tr>
18
                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.DataProxy" ext:member="" href="output/Ext.data.DataProxy.html">DataProxy</a></td></tr>
19
                    </table>
20
        <div class="description">
21
            An implementation of Ext.data.DataProxy that reads a data object from a URL which may be in a domain
22
other than the originating domain of the running page.<br>
23
<p>
24
<b>Note that if you are retrieving data from a page that is in a domain that is NOT the same as the originating domain
25
of the running page, you must use this class, rather than HttpProxy.</b><br>
26
<p>
27
The content passed back from a server resource requested by a ScriptTagProxy is executable JavaScript
28
source code that is used as the source inside a &lt;script> tag.<br>
29
<p>
30
In order for the browser to process the returned data, the server must wrap the data object
31
with a call to a callback function, the name of which is passed as a parameter by the ScriptTagProxy.
32
Below is a Java example for a servlet which returns data for either a ScriptTagProxy, or an HttpProxy
33
depending on whether the callback name was passed:
34
<p>
35
<pre><code>boolean scriptTag = false;
36
String cb = request.getParameter(<em>"callback"</em>);
37
<b>if</b> (cb != null) {
38
    scriptTag = true;
39
    response.setContentType(<em>"text/javascript"</em>);
40
} <b>else</b> {
41
    response.setContentType(<em>"application/x-json"</em>);
42
}
43
Writer out = response.getWriter();
44
<b>if</b> (scriptTag) {
45
    out.write(cb + <em>"("</em>);
46
}
47
out.print(dataBlock.toJsonString());
48
<b>if</b> (scriptTag) {
49
    out.write(<em>");"</em>);
50
}</code></pre>        </div>
51
 
52
        <div class="hr"></div>
53
                <a id="Ext.data.ScriptTagProxy-configs"></a>
54
        <h2>Config Options</h2>
55
        <table cellspacing="0" class="member-table">
56
            <tr>
57
                <th class="sig-header" colspan="2">Config Options</th>
58
                <th class="msource-header">Defined By</th>
59
            </tr>
60
                <tr class="config-row expandable">
61
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
62
        <td class="sig">
63
        <a id="Ext.data.ScriptTagProxy-callbackParam"></a>
64
            <b>callbackParam</b> : String            <div class="mdesc">
65
                        <div class="short">(Optional) The name of the parameter to pass to the server which tells the server the name of the callback function s...</div>
66
            <div class="long">
67
                (Optional) The name of the parameter to pass to the server which tells the server the name of the callback function set up by the load call to process the returned data object. Defaults to "callback".<p>The server-side processing must read this parameter value, and generate javascript output which calls this named function passing the data object as its only parameter.            </div>
68
                        </div>
69
        </td>
70
        <td class="msource">ScriptTagProxy</td>
71
    </tr>
72
        <tr class="config-row inherited alt expandable">
73
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
74
        <td class="sig">
75
        <a id="Ext.data.ScriptTagProxy-listeners"></a>
76
            <b>listeners</b> : Object            <div class="mdesc">
77
                        <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
78
            <div class="long">
79
                A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>
80
                        </div>
81
        </td>
82
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
83
    </tr>
84
        <tr class="config-row">
85
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
86
        <td class="sig">
87
        <a id="Ext.data.ScriptTagProxy-nocache"></a>
88
            <b>nocache</b> : Boolean            <div class="mdesc">
89
                            (Optional) Defaults to true. Disable cacheing by adding a unique parameter name to the request.                        </div>
90
        </td>
91
        <td class="msource">ScriptTagProxy</td>
92
    </tr>
93
        <tr class="config-row alt">
94
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
95
        <td class="sig">
96
        <a id="Ext.data.ScriptTagProxy-timeout"></a>
97
            <b>timeout</b> : Number            <div class="mdesc">
98
                            (Optional) The number of milliseconds to wait for a response. Defaults to 30 seconds.                        </div>
99
        </td>
100
        <td class="msource">ScriptTagProxy</td>
101
    </tr>
102
        <tr class="config-row">
103
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
104
        <td class="sig">
105
        <a id="Ext.data.ScriptTagProxy-url"></a>
106
            <b>url</b> : String            <div class="mdesc">
107
                            The URL from which to request the data object.                        </div>
108
        </td>
109
        <td class="msource">ScriptTagProxy</td>
110
    </tr>
111
            </table>
112
                <a id="Ext.data.ScriptTagProxy-props"></a>
113
        <h2>Public Properties</h2>
114
        <div class="no-members">This class has no public properties.</div>        <a id="Ext.data.ScriptTagProxy-methods"></a>
115
        <h2>Public Methods</h2>
116
                <table cellspacing="0" class="member-table">
117
            <tr>
118
                <th class="sig-header" colspan="2">Method</th>
119
                <th class="msource-header">Defined By</th>
120
            </tr>
121
                <tr class="method-row expandable">
122
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
123
        <td class="sig">
124
        <a id="Ext.data.ScriptTagProxy-ScriptTagProxy"></a>
125
            <b>ScriptTagProxy</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">
126
                        <div class="short"></div>
127
            <div class="long">
128
                    <div class="mdetail-params">
129
        <strong>Parameters:</strong>
130
        <ul><li><code>config</code> : Object<div class="sub-desc">A configuration object.</div></li>        </ul>
131
        <strong>Returns:</strong>
132
        <ul>
133
            <li><code></code></li>
134
        </ul>
135
    </div>
136
                </div>
137
                        </div>
138
        </td>
139
        <td class="msource">ScriptTagProxy</td>
140
    </tr>
141
        <tr class="method-row alt expandable">
142
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
143
        <td class="sig">
144
        <a id="Ext.data.ScriptTagProxy-abort"></a>
145
            <b>abort</b>() : void            <div class="mdesc">
146
                        <div class="short">Abort the current server request.</div>
147
            <div class="long">
148
                Abort the current server request.    <div class="mdetail-params">
149
        <strong>Parameters:</strong>
150
        <ul><li>None.</li>        </ul>
151
        <strong>Returns:</strong>
152
        <ul>
153
            <li><code>void</code></li>
154
        </ul>
155
    </div>
156
                </div>
157
                        </div>
158
        </td>
159
        <td class="msource">ScriptTagProxy</td>
160
    </tr>
161
        <tr class="method-row inherited expandable">
162
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
163
        <td class="sig">
164
        <a id="Ext.data.ScriptTagProxy-addEvents"></a>
165
            <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">
166
                        <div class="short">Used to define events on this Observable</div>
167
            <div class="long">
168
                Used to define events on this Observable    <div class="mdetail-params">
169
        <strong>Parameters:</strong>
170
        <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>
171
        <strong>Returns:</strong>
172
        <ul>
173
            <li><code>void</code></li>
174
        </ul>
175
    </div>
176
                </div>
177
                        </div>
178
        </td>
179
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
180
    </tr>
181
        <tr class="method-row inherited alt expandable">
182
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
183
        <td class="sig">
184
        <a id="Ext.data.ScriptTagProxy-addListener"></a>
185
            <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
186
                        <div class="short">Appends an event handler to this component</div>
187
            <div class="long">
188
                Appends an event handler to this component    <div class="mdetail-params">
189
        <strong>Parameters:</strong>
190
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
191
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
192
properties. This may contain any of the following properties:<ul>
193
<li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
194
<li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
195
<li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
196
<li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
197
by the specified number of milliseconds. If the event fires again within that time, the original
198
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
199
</ul><br>
200
<p>
201
<b>Combining Options</b><br>
202
Using the options argument, it is possible to combine different types of listeners:<br>
203
<br>
204
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
205
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
206
    single: true,
207
    delay: 100,
208
    forumId: 4
209
});</code></pre>
210
<p>
211
<b>Attaching multiple handlers in 1 call</b><br>
212
The method also allows for a single argument to be passed which is a config object containing properties
213
which specify multiple handlers.
214
<p>
215
<pre><code>foo.on({
216
    <em>'click'</em> : {
217
        fn: <b>this</b>.onClick,
218
        scope: <b>this</b>,
219
        delay: 100
220
    },
221
    <em>'mouseover'</em> : {
222
        fn: <b>this</b>.onMouseOver,
223
        scope: <b>this</b>
224
    },
225
    <em>'mouseout'</em> : {
226
        fn: <b>this</b>.onMouseOut,
227
        scope: <b>this</b>
228
    }
229
});</code></pre>
230
<p>
231
Or a shorthand syntax:<br>
232
<pre><code>foo.on({
233
    <em>'click'</em> : <b>this</b>.onClick,
234
    <em>'mouseover'</em> : <b>this</b>.onMouseOver,
235
    <em>'mouseout'</em> : <b>this</b>.onMouseOut,
236
     scope: <b>this</b>
237
});</code></pre></div></li>        </ul>
238
        <strong>Returns:</strong>
239
        <ul>
240
            <li><code>void</code></li>
241
        </ul>
242
    </div>
243
                </div>
244
                        </div>
245
        </td>
246
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
247
    </tr>
248
        <tr class="method-row inherited expandable">
249
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
250
        <td class="sig">
251
        <a id="Ext.data.ScriptTagProxy-fireEvent"></a>
252
            <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">
253
                        <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
254
            <div class="long">
255
                Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">
256
        <strong>Parameters:</strong>
257
        <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>
258
        <strong>Returns:</strong>
259
        <ul>
260
            <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
261
        </ul>
262
    </div>
263
                </div>
264
                        </div>
265
        </td>
266
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
267
    </tr>
268
        <tr class="method-row inherited alt expandable">
269
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
270
        <td class="sig">
271
        <a id="Ext.data.ScriptTagProxy-hasListener"></a>
272
            <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">
273
                        <div class="short">Checks to see if this object has any listeners for a specified event</div>
274
            <div class="long">
275
                Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">
276
        <strong>Parameters:</strong>
277
        <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>
278
        <strong>Returns:</strong>
279
        <ul>
280
            <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
281
        </ul>
282
    </div>
283
                </div>
284
                        </div>
285
        </td>
286
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
287
    </tr>
288
        <tr class="method-row expandable">
289
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
290
        <td class="sig">
291
        <a id="Ext.data.ScriptTagProxy-load"></a>
292
            <b>load</b>(&nbsp;<code>Object params</code>, <code>Ext.data.DataReader reader</code>, <code>Function callback</code>, <code>Object scope</code>, <code>Object arg</code>&nbsp;) : void            <div class="mdesc">
293
                        <div class="short">Load data from the configured URL, read the data object into
294
a block of Ext.data.Records using the passed Ext.data.Da...</div>
295
            <div class="long">
296
                Load data from the configured URL, read the data object into
297
a block of Ext.data.Records using the passed Ext.data.DataReader implementation, and
298
process that block using the passed callback.    <div class="mdetail-params">
299
        <strong>Parameters:</strong>
300
        <ul><li><code>params</code> : Object<div class="sub-desc">An object containing properties which are to be used as HTTP parameters
301
for the request to the remote server.</div></li><li><code>reader</code> : Ext.data.DataReader<div class="sub-desc">The Reader object which converts the data
302
object into a block of Ext.data.Records.</div></li><li><code>callback</code> : Function<div class="sub-desc">The function into which to pass the block of Ext.data.Records.
303
The function must be passed <ul>
304
<li>The Record block object</li>
305
<li>The "arg" argument from the load function</li>
306
<li>A boolean success indicator</li>
307
</ul></div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which to call the callback</div></li><li><code>arg</code> : Object<div class="sub-desc">An optional argument which is passed to the callback as its second parameter.</div></li>        </ul>
308
        <strong>Returns:</strong>
309
        <ul>
310
            <li><code>void</code></li>
311
        </ul>
312
    </div>
313
                </div>
314
                        </div>
315
        </td>
316
        <td class="msource">ScriptTagProxy</td>
317
    </tr>
318
        <tr class="method-row inherited alt expandable">
319
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
320
        <td class="sig">
321
        <a id="Ext.data.ScriptTagProxy-on"></a>
322
            <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
323
                        <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
324
            <div class="long">
325
                Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">
326
        <strong>Parameters:</strong>
327
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
328
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
329
        <strong>Returns:</strong>
330
        <ul>
331
            <li><code>void</code></li>
332
        </ul>
333
    </div>
334
                </div>
335
                        </div>
336
        </td>
337
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
338
    </tr>
339
        <tr class="method-row inherited expandable">
340
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
341
        <td class="sig">
342
        <a id="Ext.data.ScriptTagProxy-purgeListeners"></a>
343
            <b>purgeListeners</b>() : void            <div class="mdesc">
344
                        <div class="short">Removes all listeners for this object</div>
345
            <div class="long">
346
                Removes all listeners for this object    <div class="mdetail-params">
347
        <strong>Parameters:</strong>
348
        <ul><li>None.</li>        </ul>
349
        <strong>Returns:</strong>
350
        <ul>
351
            <li><code>void</code></li>
352
        </ul>
353
    </div>
354
                </div>
355
                        </div>
356
        </td>
357
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
358
    </tr>
359
        <tr class="method-row inherited alt expandable">
360
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
361
        <td class="sig">
362
        <a id="Ext.data.ScriptTagProxy-removeListener"></a>
363
            <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
364
                        <div class="short">Removes a listener</div>
365
            <div class="long">
366
                Removes a listener    <div class="mdetail-params">
367
        <strong>Parameters:</strong>
368
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
369
        <strong>Returns:</strong>
370
        <ul>
371
            <li><code>void</code></li>
372
        </ul>
373
    </div>
374
                </div>
375
                        </div>
376
        </td>
377
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
378
    </tr>
379
        <tr class="method-row inherited expandable">
380
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
381
        <td class="sig">
382
        <a id="Ext.data.ScriptTagProxy-resumeEvents"></a>
383
            <b>resumeEvents</b>() : void            <div class="mdesc">
384
                        <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
385
            <div class="long">
386
                Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">
387
        <strong>Parameters:</strong>
388
        <ul><li>None.</li>        </ul>
389
        <strong>Returns:</strong>
390
        <ul>
391
            <li><code>void</code></li>
392
        </ul>
393
    </div>
394
                </div>
395
                        </div>
396
        </td>
397
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
398
    </tr>
399
        <tr class="method-row inherited alt expandable">
400
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
401
        <td class="sig">
402
        <a id="Ext.data.ScriptTagProxy-suspendEvents"></a>
403
            <b>suspendEvents</b>() : void            <div class="mdesc">
404
                        <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
405
            <div class="long">
406
                Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">
407
        <strong>Parameters:</strong>
408
        <ul><li>None.</li>        </ul>
409
        <strong>Returns:</strong>
410
        <ul>
411
            <li><code>void</code></li>
412
        </ul>
413
    </div>
414
                </div>
415
                        </div>
416
        </td>
417
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
418
    </tr>
419
        <tr class="method-row inherited expandable">
420
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
421
        <td class="sig">
422
        <a id="Ext.data.ScriptTagProxy-un"></a>
423
            <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
424
                        <div class="short">Removes a listener (shorthand for removeListener)</div>
425
            <div class="long">
426
                Removes a listener (shorthand for removeListener)    <div class="mdetail-params">
427
        <strong>Parameters:</strong>
428
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
429
        <strong>Returns:</strong>
430
        <ul>
431
            <li><code>void</code></li>
432
        </ul>
433
    </div>
434
                </div>
435
                        </div>
436
        </td>
437
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
438
    </tr>
439
            </table>
440
                <a id="Ext.data.ScriptTagProxy-events"></a>
441
        <h2>Public Events</h2>
442
                <table cellspacing="0" class="member-table">
443
            <tr>
444
                <th class="sig-header" colspan="2">Event</th>
445
                <th class="msource-header">Defined By</th>
446
            </tr>
447
                <tr class="event-row inherited expandable">
448
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
449
        <td class="sig">
450
        <a id="Ext.data.ScriptTagProxy-beforeload"></a>
451
            <b>beforeload</b> : (&nbsp;<code>Object This</code>, <code>Object params</code>&nbsp;)            <div class="mdesc">
452
                        <div class="short">Fires before a network request is made to retrieve a data object.</div>
453
            <div class="long">
454
                Fires before a network request is made to retrieve a data object.    <div class="mdetail-params">
455
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
456
        <ul><li><code>This</code> : Object<div class="sub-desc">DataProxy object.</div></li><li><code>params</code> : Object<div class="sub-desc">The params parameter to the load function.</div></li>        </ul>
457
    </div>
458
                </div>
459
                        </div>
460
        </td>
461
        <td class="msource"><a ext:cls="Ext.data.DataProxy" ext:member="#event-beforeload" href="output/Ext.data.DataProxy.html#event-beforeload">DataProxy</a></td>
462
    </tr>
463
        <tr class="event-row inherited alt expandable">
464
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
465
        <td class="sig">
466
        <a id="Ext.data.ScriptTagProxy-load"></a>
467
            <b>load</b> : (&nbsp;<code>Object This</code>, <code>Object o</code>, <code>Object arg</code>&nbsp;)            <div class="mdesc">
468
                        <div class="short">Fires before the load method's callback is called.</div>
469
            <div class="long">
470
                Fires before the load method's callback is called.    <div class="mdetail-params">
471
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
472
        <ul><li><code>This</code> : Object<div class="sub-desc">DataProxy object.</div></li><li><code>o</code> : Object<div class="sub-desc">The data object.</div></li><li><code>arg</code> : Object<div class="sub-desc">The callback argument object passed to the load function.</div></li>        </ul>
473
    </div>
474
                </div>
475
                        </div>
476
        </td>
477
        <td class="msource"><a ext:cls="Ext.data.DataProxy" ext:member="#event-load" href="output/Ext.data.DataProxy.html#event-load">DataProxy</a></td>
478
    </tr>
479
        <tr class="event-row inherited expandable">
480
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
481
        <td class="sig">
482
        <a id="Ext.data.ScriptTagProxy-loadexception"></a>
483
            <b>loadexception</b> : (&nbsp;<code>Object This</code>, <code>Object o</code>, <code>Object arg</code>, <code>Object e</code>&nbsp;)            <div class="mdesc">
484
                        <div class="short">Fires if an Exception occurs during data retrieval.</div>
485
            <div class="long">
486
                Fires if an Exception occurs during data retrieval.    <div class="mdetail-params">
487
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
488
        <ul><li><code>This</code> : Object<div class="sub-desc">DataProxy object.</div></li><li><code>o</code> : Object<div class="sub-desc">The data object.</div></li><li><code>arg</code> : Object<div class="sub-desc">The callback argument object passed to the load function.</div></li><li><code>e</code> : Object<div class="sub-desc">The Exception.</div></li>        </ul>
489
    </div>
490
                </div>
491
                        </div>
492
        </td>
493
        <td class="msource"><a ext:cls="Ext.data.DataProxy" ext:member="#event-loadexception" href="output/Ext.data.DataProxy.html#event-loadexception">DataProxy</a></td>
494
    </tr>
495
            </table>
496
 
497
        </div>