English 中文(简体)
如何动态地增加文本领域,在数据库中增加信息?
原标题:How to add textfields dynamically and add information in to database?

我采取的一种形式是,我要不断在我数据库中增加一个实体的文本领域,然后增加信息。 我的模型是组合的,但不能想到最好的办法,以保留案文领域,把 d子读到,因为形式将具有其他领域。 因此,我基本上拥有某种田地的形式,然后在细节输入到它所展示的一个田地之后。 现在,我 st不住如何把信息传递给我的应用,这是否应该通过一系列数字,即已经使用的田地的长度,然后通过从田地获取信息的阵列加以利用,或者是否有更好的办法?

最佳回答

如果案文领域的数量是任意的,那么,如果最后一个文本已经填满,你可以通过贾瓦文添加一个新案文领域,并通过阿麻省提交文本。 不妨检查 Java文图书馆jquery

如果你能对问题提出更多的具体内容,我会得到更多的帮助。

问题回答

暂无回答




相关问题
How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

Flexible pagination in Django

I d like to implement pagination such that I can allow the user to choose the number of records per page such as 10, 25, 50 etc. How should I go about this? Is there an app I can add onto my project ...

is it convenient to urlencode all next parameters? - django

While writing code, it is pretty common to request a page with an appended "next" query string argument. For instance, in the following template code next points back to the page the user is on: &...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

热门标签