TextBox and Password Field : TextBox : GUI Components : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Java
Java Tutorial
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » GUI Components » TextBox 
TextBox and Password Field


<html>
<head>
<title>DynAPI Examples - HTML TextBox</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');
dynapi.library.include('TemplateManager');
dynapi.library.include('HTMLTextBox');
</script>
<script language="Javascript">

var tp = new Template('This is the Template:<center><form><table border="1" width="150"><tr><td align="center">User Name<br>{@fldPassword<br>{@fld1}</td></tr></table></form></center>',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);

</script>
</head>
<body>
<script>
  dynapi.document.insertAllChildren();
</script>
</body>
</html>

           
       
dynapi.zip( 791 k)
Related examples in the same category
Home | Contact Us
Copyright 2003 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.