310 CHAPTER 10 (Web hosting ecommerce) INFINITE DATA PATTERN Figure
310 CHAPTER 10 INFINITE DATA PATTERN Figure 10-2 shows two text boxes; one text box has the value of 200, and the other has the value of 1000. Each text box represents the maximum number to find all primes. The result area is where the text No Result is displayed. The Send Data buttons are used to send the maximum number value to the server. The Start Communications and End Communications buttons are used to start and stop the Persistent Communications pattern. These two buttons are not necessary and can be automatically controlled by the Send Data buttons. They were kept in the HTML page to illustrate how the Persistent Communications and Infinite Data patterns work seamlessly together. Overall Implementation Details of the HTML Page The implementation of the HTML page will be presented as a series of code segments. The first code segment is the overall HTML page, with most of the implementation missing for clarity purposes. Then as needed each missing code segment will be illustrated and explained. The overall structure of the HTML page illustrated in Figure 10-2 is as follows:
| Number | |||
| No Result | |||
| Number | |||