WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 DatePicker placed on a FORM, Václav Ševčík, August 10, 2003
     Re:DatePicker placed on a FORM, Erik Arvidsson, August 11, 2003
         Re:DatePicker placed on a FORM, Bane, September 11, 2003
             Solution, Bane, September 11, 2003

Subject: Solution From: Bane Date: September 11, 2003
after trying and trying and reading some other posts on this forum i found the solution.

its really easy:

form name="form1">
<table width=250>
<tr>
<td> vor </td>
</tr>
<tr>
<td id="date1">
</td>
</tr>
<tr>
<td id="combo1">
<script>
dm=new ComboBox("dm",combo1)
// add combo box to td with id = combo 1 (container)
dm.add(
new ComboBoxItem("barge",1),
new ComboBoxItem("benluc",2),
new ComboBoxItem("benlieeeeck",3),
new ComboBoxItem("taco",4)
)
/*
// generate 1000 more to test performance
for (var i = 0; i < 1000; i++ )
dm.add(new ComboBoxItem(String(i)));
*/

</script>
<script type="text/javascript">
var dfdsfd = new Date();
var dpdfdsfd = new DatePicker(dfdsfd);
date1.appendChild(dpdfdsfd.create());
// append the datepicker to the td with id = date1
</script>
</td>
</tr>
<tr>
<td> dahinter </td>
</tr>
</table>
</form>


the form field with the id could also be a div or anything else.




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX