sappie
Posts: 13
|
| Posted: 08/07/2007, 1:08 PM |
|
Hello,
Despite several posts on this subject, I can't get following to work:
I've got this javascript which divides the contents of one text box over three other textboxes:
"
<script language="JavaScript">
<!-- Begin
var Tot = "";
function InitSaveVariables2(form) {
Tot = form.totaal.value;
Num = Tot.substring(0,10)
Own = Tot.substring(17,30)
Tit = Tot.substring(30)
}
function ShipToBillPerson2(form) {
InitSaveVariables2(form);
form.nummer.value = Num;
form.owner.value = Own;
form.titel.value = Tit;
}
// End -->
</script>
"
Call this onblur of the "totaal" textbox: "<input onblur="ShipToBillPerson2(form);" value="{totaal}" name="{totaal_Name}">"
Works fine... as long as is not in an editable grid. I understand I have to get the right names for the textboxes in the rows (e.g. totaal_1, nummer_1, ..) but I don't know how to achieve this.
Tried to work it out follwing the explantion of post 60507 by Nicole, but unfortunately didn't succeed.
Can someone please help me out, how to achieve this functionality?
I would be very grateful.
Kind regards,
Harold
|
 |
 |
|