BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML Project / AJaB / AJaB functions /

 
  Execvera blhtml from Javascript 1216 0
echo(ID, 'page') Exemplet använder $data_0 and $data_1. Därfor används $data_3 to detta example.

Example:
<center>
#PLOPP onclick(clr(); object('flower'); send('a=-1'); echo(11, 'C');) value(preview)#

#PLOPP onclick(object('flower'); blhtml('#1 id=11#<input id=data_3 type=hidden value=0><br>');) value(1)#
#PLOPP onclick(object('flower'); blhtml('#2 id=11#<input id=data_3 type=hidden value=1><br>');) value(2)#
#PLOPP onclick(object('flower'); blhtml('#3 id=11#<input id=data_3 type=hidden value=2><br>');) value(3)#
#PLOPP onclick(object('flower'); blhtml('#4 id=11#<input id=data_3 type=hidden value=3><br>');) value(4)#
#PLOPP onclick(object('flower'); blhtml('#5 id=11#<input id=data_3 type=hidden value=4><br>');) value(5)#

#PLOPP onclick(clr(); object('flower'); send('a=1'); echo(11, 'C');) value(next)#
<br><br>

<div id=flower>
#1 id=11#<input id=data_3 type=hidden value=0></div>
</center>
  • Buttons 1 to 5 anropar EJ ett datapage utan skickar BLHTML kod som exekveras and returneras.
  • <input id=data_3 type=hidden value=?>
    Save/talar if current picture for kanpparna preview and next
  • <div id=flower>#1 id=11#<input id=data_3 type=hidden value=0></div>
    html Ut object.
    Contents skrivs ut när datapage create.
Datapage: 11, C
#DATA[i[+]] post=set type=fieldlist#

#SUM value($data_3 $a) return=data_3#
#IF($data_3 < 0) then(#$data_3=29#)#
#IF($data_3 > 29) then(#$data_3=0#)#
#DATA[data_3] id=data_3 post=hidden#

#PIC no($i[$data_3])#
  • 5 st BLHTML Pictures saves in arrayen $i[+]
  • #SUM value($data_3 $a) return=data_3#
    Adderar $a to $data_3
    If knapp preview är $a=-1, if next är $a=1
  • #IF# kontrollerar att $data_3 inte är större or mindre än de pictures vi vill show
  • #DATA[data_3] id=data_3 post=hidden#
    Sätter det current value $data_3 to den virtuella html object
  • #PIC no($i[$data_3])# Writes ut current picture
Returns:



More information:
  • AJaB functions
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0596 seconds