Web hosting rating - 287Chapter 16 .Window and Frame Objects JavaScript provides

287Chapter 16 .Window and Frame Objects JavaScript provides no built-in equivalent for a wait command. The worst alternative is to devise a looping function of your own to trap script execution for a fixed amount of time. In NN3+, you can also use LiveConnect (see Chapter 44) to invoke a Java method that freezes the browser s thread for a fixed amount of time. Unfortunately, both of these practices prevent other processes from being carried out, so you should consider reworking your code to rely on a setTimeout() method instead. NN4+ provides a mechanism for passing parameters to functions invoked by setTimeout(). See the section Passing Parameters in the discussion of window.setInterval() for details on this and passing parameters in other browser versions. As a note to experienced programmers, neither setInterval() nor setTimeout() spawn new threads in which to run their invoked scripts. When the timer expires and invokes a function, the process gets at the end of the queue of any pending script processing in the JavaScript execution thread. On the CD-ROM Example (with Listing 16-38) on the CD-ROM Related Items: window.clearTimeout(), window.setInterval(), window.clearInterval() methods. showHelp( URL ,[ contextID ]) Returns: Nothing. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . The IE-specific showHelp() method (not implemented in IE5/Mac) lets a script open a Winhelp window with a particular .hlpfile. This method is specific to the Win32 operating systems. If your Winhelp file has context identifiers specified in various places, you can pass the ID as an optional second parameter. This lets the call to showHelp() navigate to a particular area of the .hlpfile that applies to a specific element on the page. Example See the Microsoft Visual Studio authoring environment for details on building Winhelp files. windowObject.showHelp()
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

Leave a Reply