Hi,
I recieved some amount from responseXML and loaded them into the form using data islands. The values are reflected in the text boxes on the form. But when i run a calculateTotal function after :
//javascript
if(oXmlHttp.readystate == 4){
if(oXmlHttp.status == 200) {
//loading data into text boxes using data island.
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async="false";

xmlDoc.load(oXmlHttp.responseXML);

var xmlObj = xmlDoc.documentElement;

//this loads the data into the <xml id=mydata></xml> in the HTML to which my input fields are binded like <input type=text datasrc=#mydata datafld=amount name=amtFld>

xmlObject.loadXML(xmlObj.xml);

//alert('calculates total if this is uncommented otherwise does not');

//this js function calculates the total of various amount fields (amtFld) and shows the total in total field on the screen
calculateTotal();
}

The calculateTotal does not get any values for calculation in the amount whose data is coming from xml data source.

However if i put a alert just before calling calculateTotal() function it works fine....but i dont want to put alert. Is there any other way out??