123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- if(!dojo._hasResource["dojox.io.xhrScriptPlugin"]){
- dojo._hasResource["dojox.io.xhrScriptPlugin"] = true;
- dojo.provide("dojox.io.xhrScriptPlugin");
- dojo.require("dojox.io.xhrPlugins");
- dojo.require("dojo.io.script");
- dojo.require("dojox.io.scriptFrame");
- dojox.io.xhrScriptPlugin = function(/*String*/url, /*String*/callbackParamName, /*Function?*/httpAdapter){
-
-
-
-
-
-
-
-
-
- dojox.io.xhrPlugins.register(
- "script",
- function(method,args){
- return args.sync !== true &&
- (method == "GET" || httpAdapter) &&
- (args.url.substring(0,url.length) == url);
- },
- function(method,args,hasBody){
- var send = function(){
- args.callbackParamName = callbackParamName;
- if(dojo.body()){
- args.frameDoc = "frame" + Math.random();
- }
- return dojo.io.script.get(args);
- }
- return (httpAdapter ? httpAdapter(send, true) : send)(method, args, hasBody);
- }
- );
- };
- }
|