> Achieving Synchronization on Pages with Javascript Components
Background...
Certain Javascript components, when loaded in a page, do not
instantaneously appear even when the status indicator of the
browser displays the "Done" message. For example, some menu-based
navigation schemes or complicated form or manipulation passages
can take a non-trivial amount of time to complete.
Technical Explanation...
When downloading and rendering a page, eValid has an internal
"Page Complete" signal which tells the eValid browser that all
components have been successfully downloaded. In the case of
Javascript files and passages, however, all of the page components
have already been downloaded and "Page Complete" does not
necessarily mean that all of the Javascript work has been
completed. While the page may appear complete on the screen,
until the Javascript work is done any playback action with the
page may cause synchronization issues during playback.
Solution...
To ensure reliable playback of scripts in eValid, it is best to
add validation & synchronization steps in the script.
For example, a Validate and Synchronize command based on
appearance of some text string or image that is produced by
Javascript will work fine to assure synchronized playback.
The other method is to impose slight delays to allow the
Javascript work to complete. These delays can be inter-command
delays, or increases in the wait times in between the script
commands. The extra time allows large Javascript components to
load and render on the screen, making a script playback fully
reliable.
|