########################################################################33 tclass.js.inc.php:send function ########################################################################33 send : function( json ) { json['appid'] = this.appid; json['tclass'] = this.tclass; json['tid'] = this.tid; var _this = this; /* $.post( this.url_app_entry, json, function(data) { _this.process(data); }); */ $.ajax({ url:this.url_app_entry, data:json, dataType: 'jsonp', success:function(json){ _this.process(json); } }); }, ########################################################################33 tclass.js.inc.php:process function ########################################################################33 //----------------------------------------------- // process //----------------------------------------------- process : function( data ) { this.wait_icon.hide(); var b_evaled = false; try { //this.res = eval('(' + data + ')'); this.res = data; b_evaled = true; } ########################################################################33 CTClassObject.inc.php:run function ########################################################################33 //---------------------------------------------------------------- // run //---------------------------------------------------------------- function run( $sys ) { .................... .................... .................... .................... // echo CJson::encode( $ret ); echo $_GET['callback'] . "(" . CJson::encode( $ret ) . ");"; return true; } }