
/*	
	IFベースクラス
*/
(
	function() {
		
		$.superIF = function() { //コンストラクタ
		
		}
		
		$.superIF.prototype = {
			
			/*--------------------
			　CGIの場所さあ
			-------------------- */
			cgiURL : "",
			TYPE : "POST",
			
			/*--------------------
			　通信する
			-------------------- */
			doIF : function(param, callback, url) {
				
				var postUrl = this.cgiURL;
				if(url) postUrl = url;
				$.ajax({
					url : postUrl,
					data : param,
					dataType : 'jsonp',
					//jsonp : 'callback',
					type : this.TYPE,
					complete : function(){
						//通信終了時の処理
						
					},
					success : function(data, status){
						if(callback) callback(data);
					}
				})//ajax
					
			}
				
		}//superIF

	}
)();


