OutSystems Forge 日本語データベース

Light Ajax Refresh

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2015-09-09 2.0.1 Goncalo Borrega 9.0.1.18 All .NET Widgets
画面の一部を自動的に更新するかどうかを通知するJSONタイムスタンプを返すページを、ajax経由で定期的にポーリングする方法を示す実装パターンです。
画面の一部を自動的に更新するかどうかを通知するJSONタイムスタンプを返すページを、ajax経由で定期的にポーリングする方法を示す実装パターンです。 返されたタイムスタンプが変更された場合は、ページのボタンをクリックして、プラットフォームのajaxメカニズムを使用してエリアを更新します。 デモ:http://goo.gl/byI4N 特徴 - ポーリングタイミングの設定。遅延のステップを踏むことができます:1,3,5,10と設定することで、ブラウザは1秒後、3秒後、5秒後、10秒後ごとにチェックします。 - リフレッシャーは、特定のグループのMAX値(UpdatedOn)を返すように設定された非常に軽量のページをポーリングします。 またタイムスタンプが変更されていない場合、ページはリフレッシュされません - Extension は、DateTimeからディレイタイムを取得するために必要です。 Thread.Sleepはデモでのみ使用します。 主な利点 - 軽量リフレッシュ。新しいデータがある場合にのみリフレッシュを使用します。

[Overview]
An implementation pattern that shows how to periodically poll, via ajax, a page that return a JSON timestamp that inform the browser whether it should automatically refresh some part of the screen
[Detail]
An implementation pattern that shows how to periodically poll, via ajax, a page that return a JSON timestamp that inform the browser whether it should automatically refresh some part of the screen. If the returned timestamp has changed, a button in the page is clicked to refresh an area using the platform's ajax mechanism. Demo at: http://goo.gl/byI4N Feature List - Configurable polling period. Can follow a lazy phase down: by configuring 1,3,5,10 the browser will check after 1 second, then after 3, then after 5 and afterwards every 10 seconds. - The refresher polls a very lightweight page that is only responsible for returning the MAX(UpdatedOn) for a given "Group" (business identifier if required). If the timestamp has not changed, the page is not refreshed - The extension is only required to obtain Ticks (a long) from a DateTime. The Thread.Sleep is for demo purposes only. Main Benefits - lightweight refresh. Only uses the "heavy" refresh when there is new data.
戻る