|
August 10, 2001 Detecting A Page Completion Tips: August 2001
Yehuda Shiran, Ph.D.
|
|
When we write JavaScript code that creates the DeviceRect and LayoutRect elements on the fly, we usually want to know when the rendered page is done. This is the motivation to add the OnLayoutComplete attribute to the LayoutRect element. The event LayoutComplete fires when the LayoutRect element stops rendering its content. The reason for this can be twofold: either the source is exhausted or the LayoutRect element is overflowed by a longer source.
Let's see how to use the event handler
We'll cover the function onPageComplete() tomorrow. For more information on print templates, go to Column 89, Print Templates, Part I.
People who read this tip also read these tips: Look for similar tips by subject: |