my current code is below
How would I in the same function also get the buyprice by checking the page
xmlHttp.open("GET","ajaxloadbuyprice.asp?itemid=<%=request("itemid") %>",true);
Code:
if(xmlHttp.readyState==4)
{
document.trade.sellprice.value=xmlHttp.responseText;
document.getElementById("spsellprice").innerHTML=xmlHttp.responseText;
var _pricepaidperpoint=document.trade.pricepaidperpoint.value;
if (_pricepaidperpoint>0){ checktrade(_pricepaidperpoint); }
}
}
xmlHttp.open("GET","ajaxloadsellprice.asp?itemid=<%=request("itemid") %>",true);
xmlHttp.send(null);