function cBanDos() { this.URL = "https://member.afreecatv.com:8111/app/handshake_bbs.php"; this.szMethod = ""; } cBanDos.prototype= { GoHandShake :function( szOwner, szWriter, szHandShakeKey, szMethod ) { this.szMethod = szMethod; var oCurrentScope = this; include_js( this.URL+"?szOwner="+ szOwner+ "&szWriter="+szWriter+"&szHandShakeKey="+szHandShakeKey+"&callback="+szMethod); /*$.jsonp({url: this.URL, data: "szOwner="+ szOwner+ "&szWriter="+szWriter, success: function(data,textStatus){ oCurrentScope.onRecv(data,textStatus); }, beforeSend: function(xhr){ oCurrentScope.onConnect(xhr) }, error :function(xhr,textStatus,errorThrown){ oCurrentScope.onError(xhr,textStatus,errorThrown); }, complete : function(xhr,textStatus) { oCurrentScope.onComplete(xhr,textStatus); }, callbackParameter: "callback", dataType: "jsonp" }); */ }, onLoad : function(data,textStatus) { return; }, onRecv :function(oJson,textStatus) { if( jQuery.isFunction( this.szMethod ) ) { this.szMethod(oJson.CHANNEL.ENCDATA); } return; }, onConnect :function(xhr) { return; }, onError : function(xhr,textStatus,errorThrown) { return; }, onComplete :function(xhr,textStatus) { return; } };