ajax操作表格

更新时间:2023-05-19 07:32:15 阅读: 评论:0

<script type="text/javascript">
var myRequest;
var namess;
var providerIdValue;
var providerFullName;
function ndRequest()
{
namess=form1.names.value;
myRequest=new ActiveXObject("Msxml2.XMLHTTP");
var v_url="getProviderInfor?name="+namess+"&date="+new Date();
myRequest.open("get",v_url,fal);
myRequest.nd(null);
}
function getRequest()
{
adystate==4)
{
if(myRequest.status==200)
{
var sponXML;
var ElementsByTagName("provider");
for( i=0;i<providers.length;i++)
{
var contactMan=providers[i].getElementsByTagName("contactMan")[0].text;
}
}
}
}
var myRequest1;
var inrtStr='<td><lect name="productName" onBlur="  ndOneProduct(); deleteRow();"> </lect></td>';
function ndProduct()
{
var ws.length;
var inrtRowNum=rowNum-1;
var row=table2.inrtRow(inrtRowNum);
var inrtStrs=inrtStr.split(',');
for( i=0;i<inrtStrs.length;i++)
{
var v_cell=row.inrtCell(i);
v_cell.innerHTML=inrtStrs[i];
档案的读音}
myRequest1=new ActiveXObject("Msxml2.XMLHTTP");
var v_url="GetAllProduct?companyName="+form1.names.value+"&date="+new Date();
myRequest1.open("get",v_url,fal);
myRequest1.nd(null);
}
function getProduct()
{
adystate==4)
老挝语翻译{
if(myRequest1.status==200)
{
bored的意思
var sponXML;
var ElementsByTagName("product");
var ElementsByName("productName");
var j=a.length-1;
a[j].options.length=0;
a[j].options.add(new Option('---请选择商品---',''));
for(i=0;i<products.length;i++)
{
var productName=products[i].getElementsByTagName("productName")[0].text;
a[j].options.add(new Option(productName,productName));
}
a[j].options.add(new Option('删除','删除'));
}
}
}
var myRequest2;
var c;
var a;
function ndOneProduct()
{
c=window.event.srcElement.wIndex;
ws(c).cells(0).children(0).value;
myRequest2=new ActiveXObject("Msxml2.XMLHTTP");
var v_url="getProductByproductName?productName="+a+"&date="+new Date();
如何在ppt中加入背景音乐
myRequest2.open("Get",v_url,fal);
myRequest2.nd(null);
}
function getOneProduct()
{
adystate==4)
{
if(myRequest2.status==200)
{
var sponXML;
var ElementsByTagName("product");
for(ws(c).cells.length-1;i>=1;i--){
}
for(i=0;i<products.length;i++)
{       
c).cells(1).innerHTML='<td width="150">'+products[i].getElementsByTagName("productID")[0].text+'</td>';
仪式英文
pets4
基础英语
}   
}
}
form1.amount.ws.length-2;
}
function getPrice()
{
var ElementsByName("price");
var ElementsByName("quantity");
var AllQuantity=0;
var allPrice=0;
for(i=0;i<prices.length;i++)
{
var quantity=parInt(quantitys[i].value);
var aPrice=parFloat(prices[i].value);
allPrice=allPrice+aPrice*quantity;
AllQuantity=AllQuantity+quantity;
}
form1.allPrice.value=allPrice;
form1.allAmount.value=AllQuantity;
}
function submitTick()
{
var ElementsByName("productName");
var ElementsByName("quantity");
var ElementsByName("price");
var prices=new Array();
var pIDs=new Array();
var allQuantity=new Array();
for(i=0;i<productIDs.length;i++)
{
pIDs.push(productIDs[i].value);
allQuantity.push(allquantitys[i].value);
prices.push(allPrices[i].value);
}
var inStorageMainID=form1.inStorageMainID.value;
var inputVirietyQuantity=form1.amount.value;
var allMoney=form1.allPrice.value;
var lusion.value;
var balanceMode=form1.balanceMode.value;
var date=form1.date.value;
form1.action="InStore?prices="+prices+"&pIDs="+pIDs+"&allQuantity="+allQuantity+"&inStorageMainID="+inStorageMainID+"&name="+namess+
"&inputVirietyQuantity="+inputVirietyQuantity+"&allMoney="+allMoney+"&conclusion="+conclusion+
"&balanceMode="+balanceMode+"&date="+date+"&dealMan="+deal
Man;
form1.submit();
}
rapid framework
function deleteRows()
{
var ws.length;
for(i=a-2;i>=1;i--)
礼仪培训
imperative{
table2.deleteRow(i);
}
}
function deleteRow()
{
var ElementsByName("productName");
for(i=0;i<option.length;i++)
{
if(option[i].value=='删除')
{
table2.deleteRow(c);
}
}
}
</script>

本文发布于:2023-05-19 07:32:15,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/114271.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:读音   选择   背景音乐   礼仪   档案   商品   加入
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图