View Single Post
Old 06-06-2007, 09:08 PM   PM User | #10
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Is totalsBlock inside the form tag? Can you post a sample of the generated form field tags returned by responseText?

But why not just generate the values of the totals excluding the field tags? Something like this.

Code:
100.00|5.00|110.00
And then just split it to get each total and update the corresponding field.

Code:
var totals = http_request.responseText.split("|");
if (totals.length==3){ //change 3 to number of totals you are expecting
  //update the corresponding fields
  var frm=document.formNameHere;
  frm.whateverField1.value = totals[0];
  frm.whateverField2.value = totals[1];
  frm.whateverField3.value = totals[2];
}
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote