|
Programming Basicsheitml is much more than a tool to quickly paste together certain Web applications: is also a powerful Internet programming language, that can be used to create complex applications. For example the component editor was completely programmed in heitml. ![]() You can arbitrarily mix components and heitml programs. For example you can embed code to calculate quadratic numbers on the page: 1*1=1 , 2*2= 4 , 3*3= 9 , 4*4= 16 , 5*5= 25 , 6*6= 36 , 7*7= 49 , 8*8= 64 , 9*9= 81 , 10*10= 100 , 11*11= 121 , 12*12= 144 , 13*13= 169 , 14*14= 196 , 15*15= 225 , 16*16= 256 , 17*17= 289 , 18*18= 324 , 19*19= 361 Look at the content of above paragraph, to get an impression. The Language Guide gives an introduction into heitml programming and the Language Reference contains the details. ![]() Sometimes it is useful to use the heitmlprog component to insert a program into a page. heitmlprog encloses the program by handles and so makes it easily editable using RADpage. For example the total of the numbers given above is 2470. To just insert an heitml expression the display component is useful and for conditions the cond component. For example, your browser runs on 38.107.179.217. It's p.m. server time. ![]() Note that programs and components can be seamlessly combined. Components can be used inside programs and component attributes can be dynamically evaluated expressions. For example the name of the following counter is calculated by a program to become the top-level domain of the client. This way there is a separate counter for each top level domain accessing the server.
Unknown: 3650
The following example demonstrates how to call a tag with an object as parameter. The msgLinkKey parameter is an object that must contain a database key. Clicking the link sends the key to a scroller to display all matching records. Show all guests from a country containing "US" Note that you can not edit this component with RADpage because it can not yet handle expression as parameters. © 1996-2012 H.E.I. All Rights Reserved. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||