CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 javascript function in editable grid

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.