Demonstration
Introduction
Start RADpage
RADpage
Databases
Shopping
Programming
    Basics
    Hello World
    Panel Example
    Nested Queries
    Checked Mailform
    Checked Dbform
    User-Defined
Use RADpage
    

Programming Basics

heitml 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
CounterValue
source_com35475
source_unknown3650
source_de119
source_net874
source_es16
source_ca22
source_nl15
source_int1
source_lu5
source_be6
source_au15
source_dk6
source_at5
source_ch6
source_fi14
source_nz8
source_my8
source_uy1
source_ar3
source_sg7
source_gov2
source_to1
source_za11
source_uk23
source_jp11
source_se76
source_gr6
source_pl25
source_il4
source_edu14
source_it15
source_ro7
source_ee1
source_fr244
source_902
source_arpa2
source_cz2
source_su1
source_pt12
source_hr2
source_mx3
source_ru10
source_sk3
source_br8
source_cc3
source_ug65
source_gt1
source_us2
source_in17
source_hu12
source_yu2
source_mil1
source_rw1
source_no4
source_ph2
source_924
source_pe1
source_916
source_992
source_982
source_gbl140
source_lk1
source_sa2
source_ma1
source_tr2
source_org3
source_om1
source_zm1
source_tw2
source_ua2
source_cn3
source_th1
source_931
source_name24
source_lt1
source_local6
source_set1
source_im1
Total41059

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.


Created using RADpage web components
© 1996-2012 H.E.I. All Rights Reserved.