ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY', '~!MSG')
rx = ''
rxtype.1 = 'HTML'
rxflags.1 = 'STRING|NOBORDER|REPORT'
rxlabel.1 = '|'
rxval.1 = 'TEXT'
rxpos.1 = '1 10 20 400 10'
text.1 = '<B>This is a test.</B><P><A HREF="str:1">Click here to cause event 1.</A><P><A HREF="str:2">Click here to cause event 2.</A>'
CALL RXCREATE('Rx', 1, 'HTML display', 'NOCLOSE|SETVAL')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL ERROR
IF rxval.1 == '1' THEN CALL RXSET(, 'VALUE', 'This is the page for event 1.<P><TABLE BORDER=2 CELLPADDING=10><TR><TD>One</TD><TD>Two</TD></TR><TR><TD>Three</TD><TD>Four</TD></TR></TABLE><P><A HREF="str:3">Click here to go back to home page.</A>', 1, 1)
ELSE IF rxval.1 == '2' THEN CALL RXSET(, 'VALUE', 'This is the page for event 2.<P><A HREF="str:3">Click here to go back to home page.</A>', 1, 1)
ELSE CALL RXSET(, 'VALUE', text.1, 1, 1)
END
syntax:
CALL CONDITION('M')
halt:
error:
CALL RXMSG(,'END')
EXIT
|