X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F06_net%2F00_XNet.js;h=3e7b4543393872f9baf25458cfcba06c375c4b53;hb=HEAD;hp=50bb695ed32ee00c37b6f9687e2216bdbf6e04f2;hpb=94c39d10a21853703c90cb09b1e82bd7a2d8923e;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/06_net/00_XNet.js b/0.6.x/js/06_net/00_XNet.js index 50bb695..3e7b454 100644 --- a/0.6.x/js/06_net/00_XNet.js +++ b/0.6.x/js/06_net/00_XNet.js @@ -1,42 +1,202 @@ // TODO onlineevent offlineevent, netspeed // local への通信に対しては、netspeed を更新しない -X.Net = { - xhrGet : function( url, type ){ - return new X_NET_Queue( X_NET_TYPE_XHR, { method : 'GET', url : url, type : type } ); - }, - - xhrPost : function( url, type, postbody ){ - return new X_NET_Queue( X_NET_TYPE_XHR, { method : 'POST', url : url, type : type, postbody : postbody } ); - }, - - formGet : function(){ - - }, - - formPost : function(){ - - }, - - // TODO chashe - // TODO iframe useful or not. - // TODO file: では http: は使えない - jsonp : function( url, useIframe ){ - return new X_NET_Queue( X_NET_TYPE_JSONP, url ); - }, - - image : function( url, needSize, delay, timeout ){ - return new X_NET_Queue( X_NET_TYPE_IMAGE, { url : url, needSize : needSize } ); - }, - - //