[TEEDA-233] ajax.jsにタイムアウト処理、キャンセル処理を追加する Created: 2007-01-18 Updated: 2007-01-19 Due: 2007-01-18 Resolved: 2007-01-19 |
|
| Status: | Resolved |
| Project: | Teeda |
| Component/s: | Teeda Ajax |
| Affects Version/s: | 1.0.3 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | mopemope | Assignee: | mopemope |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
・タイムアウト ・実行中のRequestの中断 ・各readyStateに対応したcallback |
| Comments |
| Comment by mopemope [ 2007-01-19 ] |
|
対応しました。 ; var process = Kumu.Ajax.executeTeedaAjax(callback, param, Kumu.Ajax.RESPONSE_TYPE_TEXT); キャンセルは 各readyStateに対応したコールバック関数は callback.onLoaded = function(req, ajaxComponent){ alert('onLoaded'); } callback.onInteractive = function(req, ajaxComponent){ alert('onLoaded'); } あるいは var param= {}; param.onLoading = function(req, ajaxComponent){ alert('onLoading'); } param.onLoaded = function(req, ajaxComponent) { alert('onLoaded'); }param.onInteractive = function(req, ajaxComponent){ alert('onLoaded'); } var process = Kumu.Ajax.executeTeedaAjax(callback, ajax, Kumu.Ajax.RESPONSE_TYPE_TEXT); |