WebSmart Code Samples
 

How this program was created.

  1. Select the 'Simple Page' template.
  2. Choose all creation wizard defaults.
  3. Add a workfield called timerval which is a 5 numeric.
  4. Add a getparm to the generic function in the PML (See line 44 of PML). If you do not have line numbers enabled, you can do so by following these instructions:
    1. Go to the Tools menu at the top
    2. Choose Options
    3. Click the HTML tab
    4. Click the two Line Number checkboxes
  5. Add the if statement to the generic function in the PML that limits the minimum value to 5. (See lines 31-34 in PML)
  6. Add in the Meta tag that refreshes the screen automatically after the specified number of seconds. This tag must be inside the header portion of your page. (See line 4 of MainSeg for the tag)
  7. Place the system time in the HTML segment MainSeg by placing your cursor at the desired location and double clicking pgmf_curtime under the *PGMFLDS tab in top left window.
  8. Place the timerval workfield on the screen so the user can see the current refresh interval. Do this by placing your cursor at the desired location and double clicking the workfield in the top left window.
  9. Place the form that controls updating the refresh interval from lines 51-55 of MainSeg on your page.
  10. Compile and you're done!


  This example was created using WebSmart.

www.excelsystems.com