X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.data.ScriptTagProxy.json;h=2ea744c63f26a8834d4d04dd37f1fc9802e46ff0;hb=23a0c8c1c7942f78ddb512df49e0ff19f12b06fa;hp=3696615632bc96fc5682cdc25335308ba05aca5a;hpb=7811bdad238a16fa881fa617d9c4e53da624968e;p=roojs1 diff --git a/docs/symbols/Roo.data.ScriptTagProxy.json b/docs/symbols/Roo.data.ScriptTagProxy.json index 3696615632..2ea744c63f 100644 --- a/docs/symbols/Roo.data.ScriptTagProxy.json +++ b/docs/symbols/Roo.data.ScriptTagProxy.json @@ -1,6 +1,7 @@ { "name" : "Roo.data.ScriptTagProxy", "augments" : [], + "childClasses" : [], "desc" : "An implementation of Roo.data.DataProxy that reads a data object from a URL which may be in a domain\nother than the originating domain of the running page.

\n

\nNote that if you are retrieving data from a page that is in a domain that is NOT the same as the originating domain\nof the running page, you must use this class, rather than DataProxy.

\n

\nThe content passed back from a server resource requested by a ScriptTagProxy is executable JavaScript\nsource code that is used as the source inside a <script> tag.

\n

\nIn order for the browser to process the returned data, the server must wrap the data object\nwith a call to a callback function, the name of which is passed as a parameter by the ScriptTagProxy.\nBelow is a Java example for a servlet which returns data for either a ScriptTagProxy, or an HttpProxy\ndepending on whether the callback name was passed:\n

\n

\nboolean scriptTag = false;\nString cb = request.getParameter(\"callback\");\nif (cb != null) {\n    scriptTag = true;\n    response.setContentType(\"text/javascript\");\n} else {\n    response.setContentType(\"application/x-json\");\n}\nWriter out = response.getWriter();\nif (scriptTag) {\n    out.write(cb + \"(\");\n}\nout.print(dataBlock.toJsonString());\nif (scriptTag) {\n    out.write(\");\");\n}\n
", "isSingleton" : false, "isStatic" : false,