Basic HTML version of Foils prepared 23 June 1997

Foil 67 The Asynchronous JavaScript/Browser

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


There are several issues that are tricky due to asynchronous, thread-based processing in browsers
This is seen when reloading JavaScript pages, which sometimes produces unclear results since different frames and variables are set in a different order from that in which multi-frame system was built!
  • Often get "false" errors as variables not set "in time"
Note that when you set a location field in a window with a JavaScript command such as:
window.location = "newurl";
subsequent commands are executed immediately and do not wait wait for the new page to be loaded!



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998