本文介绍了刷新后,部分数据会丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户选择choclates代码,并且用户输入要生成的数量

,具体取决于choclates的包装,表格显示在那里再次生成的数量在包装之前分配。


一旦用户点击ok按钮

以下代码应该在此后执行

数据从mysql表中获取并在刷新后显示在下表中

我正在传递choclate代码,但没有在javascript中传递包装清单详细信息,所以它变得空白

现在取决于制作独立于包装的choclate所需的项目列表显示在表格中


克服这个我想使用iframe只在部分文档得到刷新。

i可以somebosy告诉我如何这样做?

解决方案




高于此我有选择choclates的组合框,然后生成要生成的数量,然后完成以下代码

,根据给予choclates的包装列出choclates

和在那里输入的特殊包装数量

生产的总数量为不同的包装分配。这是在while循环中,这是正常的


[HTML]< table>

< tr>

< td width =" 5">< input type =" text"值= QUOT;< =

User selects choclates code and qty to be produced is entered by the user
depending upon the packing of choclates the table is shown where again the produced qty is divided betwwen packing.

once the user clicks ok button
below code should get executed afte this
data is fetched from mysql table and displayed in the below table once refreshed
and i''m passing choclate code but not passing packing list details in javascript so it get blank
now depending upon the items required for making the choclate which independent of packing list is displayed in the table

to overcome this i want to use iframe where in only part of the document gets refreshed .
i can somebosy tell me how to do this?

解决方案


above this i have combo box from where choclates are selected and then the qty to be produced is taken and after that the following code is done
which list the choclates depending upon the packing given to the choclates
and the number of packs of particualr pack is entered there
the total qty produced is distributed for different packs . this is in the while loop upto this is ok

[HTML]<table>
<tr>
<td width="5"><input type="text" value="<?=



这篇关于刷新后,部分数据会丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 15:58