X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/output/Ext.data.ScriptTagProxy.html diff --git a/docs/output/Ext.data.ScriptTagProxy.html b/docs/output/Ext.data.ScriptTagProxy.html index 58aab844..65bcc852 100644 --- a/docs/output/Ext.data.ScriptTagProxy.html +++ b/docs/output/Ext.data.ScriptTagProxy.html @@ -1,529 +1,360 @@ -
-
- Properties - Methods - Events - Config Options - Direct Link -
-
-
Observable
-  DataProxy
-    ScriptTagProxy
-

Class Ext.data.ScriptTagProxy

- - - - - -
Package:Ext.data
Defined In:ScriptTagProxy.js
Class:ScriptTagProxy
Extends:DataProxy
-
- * -An implementation of Ext.data.DataProxy that reads a data object from a URL which may be in a domain -other than the originating domain of the running page.
-

-Note that if you are retrieving data from a page that is in a domain that is NOT the same as the originating domain -of the running page, you must use this class, rather than HttpProxy.
-

-The content passed back from a server resource requested by a ScriptTagProxy must be executable JavaScript -source code because it is used as the source inside a <script> tag.
-

-In order for the browser to process the returned data, the server must wrap the data object -with a call to a callback function, the name of which is passed as a parameter by the ScriptTagProxy. -Below is a Java example for a servlet which returns data for either a ScriptTagProxy, or an HttpProxy -depending on whether the callback name was passed: -

-

boolean scriptTag = false;
-String cb = request.getParameter("callback");
-if (cb != null) {
-    scriptTag = true;
-    response.setContentType("text/javascript");
-} else {
-    response.setContentType("application/x-json");
-}
-Writer out = response.getWriter();
-if (scriptTag) {
-    out.write(cb + "(");
-}
-out.print(dataBlock.toJsonString());
-if (scriptTag) {
-    out.write(");");
-}
- -
- -

Config Options

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Config OptionsDefined By
  - - nocache : Boolean
- (optional) Defaults to true. Disable caching by adding a unique parameter name to the request.
-
ScriptTagProxy
  - - timeout : Number
- (optional) The number of milliseconds to wait for a response. Defaults to 30 seconds.
-
ScriptTagProxy
  - - url : String
- The URL from which to request the data object.
-
ScriptTagProxy
- -

Public Properties

-
This class has no public properties.
-

Public Methods

- - - - - - - - - - - - - - - - - - - - - - -
MethodDefined By

Public Events

EventDefined By
\ No newline at end of file