OutSystems Forge 日本語データベース

Timer

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

Forge英文サイト

2017-05-25 1.0.0 John Williams All All Components, Libraries
シンプルなjavascriptタイマーとページリフレッシュコントロールを使用して、単一またはインターバルタイマーで通知を呼び出すことができます。また、ブラウザーの戻るボタンを使用してページを更新することもできます。
インターバルタイマー - 一定間隔でタイマーを実行する タイマー通知によってリフレッシュされているコンテナ内にインターバルタイマーを配置しないでください。これは、リフレッシュごとにタイマーを不必要に破棄して再作成するためです。 シングルタイマー - 設定した時間後にタイマーを1回実行します。 タイマ通知によってリフレッシュされるコンテナ内に単一のタイマを配置すると、インターバルタイマを効果的にエミュレートする各リフレッシュ時にタイマが再作成されます。 Back Refresh - ブラウザの戻るボタンでアクセスすると、ページを更新します。 これにより、ブラウザが最初にキャッシュされたページにアクセスし、location.refresh()を実行してページをリロードする際に、ロード遅延が発生する可能性があります。 これが許容できない遅延を引き起こす場合は、約100msの単一タイマーを使用して準備コードを通知イベントに移動することもできます。 これにより、ページのロード後またはブラウザの後ろに100ms後に準備が強制的に実行されます。

[Overview]
Simple javascript timers and page refresh controls that allows you to call a notification on a single or interval timer as well as force a page refresh when using the browser back button.
[Detail]
interval Timer - Execute Timer on a regular interval Do not place an interval timer inside a container that is being refreshed by the timer notify as this will have the effect of unnecessarily destroying and recreating the timer on each refresh. Single Timer - Execute timer once after set duration. Placing the single timer within a container that is refreshed by the timer notify will recreate the timer on each refresh effectively emulating an interval timer. Back Refresh - Force page to refresh when accessed via the browser back button. This can cause a load delay as the browser will first access the cached page and then perform a location.refresh() to reload the page. If this causes an unacceptable delay then an alternative is to use a single timer of around 100ms and move the preparation code to the notify event. This will then force the preparation to run 100ms after a page load OR a browser back.
戻る