GUI Components JavaScript DHTML



DynAPI Examples - HTML TextBox


dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');
dynapi.library.include('TemplateManager');
dynapi.library.include('HTMLTextBox');


var tp = new Template('This is the Template:
User Name
{@fld} Password
{@fld1}
',100,100,250,200,'#EEEEEE');
var t1 = new HTMLTextBox(null,'Mary Brown');
var t2 = new HTMLTextBox(null,'password',20,10,true);
t1.setReadOnly(true);
t1.addEventListener({
  onkeyup:function(e){
    var o=e.getSource();
    status='User entered:'+o.getText();
  }
});
tp.addChild(t1,'fld');
tp.addChild(t2,'fld1');
dynapi.document.addChild(tp);






           
       
dynapi.zip( 791 k)