[ Pobierz całość w formacie PDF ]
.Maybe server-side communication through submitting data to a server program you write is a better approach.In any case, VBScript will not support these communication activities directly.WorkshopWrite your own endless loop program for experimental purposesas described earlier today.Because this is a script where youhave intentionally introduced a problem, make sure not to distributeit on your server.Even though you don't expect any other sideeffects, practice safe computing.Make sure all other programsof importance are closed before you do these tests.Load the page with this script into the browser.Start the loopand observe how long it takes the browser to detect the long-runningscript, notify you, and halt it.Do you think this behavior couldinterrupt any correctly functioning scripts? Write a large calculationloop (that is not endless) and time it.Observe whether it comesin under the browser "endless activity" detection time.Most practical applications should complete their work well underthis time line.Try to use other programs at the same time the code is running.See if you observe any noticeable effect on the performance ofthose other applications.Generally, you won't see much impact,but certain operations can cause a ripple.For example, a scriptthat heavily stresses memory could make a noticeable impact.Extensiveallocation of very large strings through repeated string assignmentsto grow the string longer and longer is one such case.QuizNoteRefer to Appendix C, "Answers to Quiz Questions," for the answers to these questions.List two normal aspects of a traditional Windows programminglanguage not in VBScript whose absence could be said to make VBScripta more secure envi-ronment.Why is it safest to use certified controls in a script?
[ Pobierz całość w formacie PDF ]