在AJAX中同时添加和更新的问题 [英] problem in adding and updating at the same time in AJAX
问题描述
带有多个记录的AJAX PROB
helo我在ma代码中遇到问题会让任何机构看到帮助,我想在数据库中添加销售记录并检查部分slod的数量和将它减少到当前数量,例如,如果tehre是部分没有10023并且它在展示室中的数量是20并且总数量是25那么如果有2个部分的销售那么我必须添加销售并减少当前数量显示房间的数量和总数量我的代码工作正常,直到添加,但当我打开另一个记录集减少SHOW ROOM和TOTAL QUANTITY的值时,在另一个名为Stk_items的表中,xmlobject不会进入检查xmlObjad。 status == 200,
AJAX PROB WITH MULTIPLE RECORDS
helo iam having problem in ma code will any body look out an help, i am trying t add sale record in the database and the checkthe quantity of the part slod and decrement it to the current quantity for example if tehre is a part woth part no 10023 and its quantity in show room is 20 and total quantity is 25 then if there is a sale of 2 parts then i have to add the sale and decrement the current quantity in the show room and total quantity also my code works fine till adding but when i open another recordset to decrement teh value of the SHOW ROOM AND TOTAL QUANTITY which is in another table named Stk_items,the xmlobject does not come into the check xmlObjad.status==200 ,
推荐答案
我建议您获得ASP首先工作,然后回来,这样我们就可以解决任何可能的Ajax问题。
What I would suggest is that you get the ASP working first and then come back so we can sort out any possible Ajax problems.
嘿asp是完美的你知道当我试图运行它而不使用xmlobject意味着添加action =" sd2.asp"在< form标签>中它是完美的但是使用xmlobject它在asp代码中做了某种东西我不知道它因为值到了asp页面或某些什么........
hey the asp is perfect ya know when i tried to run it without using xmlobject means by adding action="sd2.asp" in the <form tag> it rnus perfect but using xmlobject it makes some kind of a mes in the asp code i donno its because of the values comming onto the asp page or some what........
我建议你先让ASP工作然后再回来,这样我们就可以解决任何可能出现的Ajax问题。
What I would suggest is that you get the ASP working first and then come back so we can sort out any possible Ajax problems.
好的,我能看到这一行:
str = makestr(fobj," validate");
产生?
OK, can I see what this line:
str=makestr(fobj,"validate");
produces?
这篇关于在AJAX中同时添加和更新的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!