buzi
07-26-2005, 08:02 PM
Hello there again,
didn't find any better title - sorry for that :)
So I have this code inside a cell in a row:
<input type="text" name="details_date1" size="10" maxlength="10" class="textbox" value="22/8/2005">
<script language=javascript>
var proDOB = new calendar("FIELD:document.safe_f.details_date1;ZEROS:false;" +"DELIMITER:/;FORMAT:1;");
proDOB.writeCalendar();
</script>
The entire row get's cloned for adding more rows to the table.
I've managed to find a way to change the input textbox name to "details_date2" (for eg.), but not it's name inside the script of the calender.
so I thought the best idea, will be not to use the textbox direct name, but to get it throw something like:
var x=main_table.rows.length; // getting the row number for the field name
and then use it somehow (and here's my problem - I don't really know how) in a variable in the:
var proDOB = new calendar("FIELD:document.safe_f.details_date1;ZEROS:false;" +"DELIMITER:/;FORMAT:1;");
instead of using the textbox direct name.
I hope I was clear enough..
any sugestions?
I thank you all in advance for helping..
this has been a long project, and after 4 days of sleeping 3 hours a night while working on it, I finally got to the last problem, and I'd be real happy to get some sleep.. :sleepy:
didn't find any better title - sorry for that :)
So I have this code inside a cell in a row:
<input type="text" name="details_date1" size="10" maxlength="10" class="textbox" value="22/8/2005">
<script language=javascript>
var proDOB = new calendar("FIELD:document.safe_f.details_date1;ZEROS:false;" +"DELIMITER:/;FORMAT:1;");
proDOB.writeCalendar();
</script>
The entire row get's cloned for adding more rows to the table.
I've managed to find a way to change the input textbox name to "details_date2" (for eg.), but not it's name inside the script of the calender.
so I thought the best idea, will be not to use the textbox direct name, but to get it throw something like:
var x=main_table.rows.length; // getting the row number for the field name
and then use it somehow (and here's my problem - I don't really know how) in a variable in the:
var proDOB = new calendar("FIELD:document.safe_f.details_date1;ZEROS:false;" +"DELIMITER:/;FORMAT:1;");
instead of using the textbox direct name.
I hope I was clear enough..
any sugestions?
I thank you all in advance for helping..
this has been a long project, and after 4 days of sleeping 3 hours a night while working on it, I finally got to the last problem, and I'd be real happy to get some sleep.. :sleepy: