Hi,
I have written the code for a Form and the form is printed out in my browser. Thats all okay but now my question how can I print out a second Form in the browser??
my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="dhtmlxForm/codebase/skins/dhtmlxform_dhx_skyblue.css">
<script src="dhtmlxForm/codebase/dhtmlxcommon.js"></script>
<script src="dhtmlxForm/codebase/dhtmlxform.js"></script>
<link rel="STYLESHEET" type="text/css" href="../codebase/dhtmlx.css">
<script src="dhtmlxForm/codebase/dhtmlx.js" type="text/javascript"></script>
</head>
<body onload="doOnLoad()">
<div id="form_container" style="width:280px;height:250px;"></div>
<script>
var myForm, formData;
function doOnLoad() {
formData = [
{type:"settings",position:"label-top"},
{type: "fieldset",name:"persI", label: "persönliche Infos", list:[
{type: "input", name: 'vname', label: 'Vorname'},
{type:"input", name:"nname", label:"Nachname", position:"label-top"},
{type:"input", name:"mail", label:"E-Mail", position:"label-top"},
{type:"newcolumn"},
{type:"button", name:"prüfen", width:50,offsetTop:120, value:"prüfen"},
]}
];
myForm = new dhtmlXForm("form_container", formData);
myForm.attachEvent("onButtonClick", function(id){
var res, v1, n2;
v1 = parseInt(myForm.getItemValue("vname"));
n2 = parseInt(myForm.getItemValue("nname"));
if (id=="prüfen")
{ res=v1+"."+n2+"@abc.de";}
myForm.setItemValue("mail",res);
})
}
</script>
</body>
</html>
Is it possible that I have at the left side this form and next to it another Form??
thank you