English 中文(简体)
在模式对话框中 Drupal 7 表格提交
原标题:Drupal 7 form submission in modal dialogs

我在商业产品表格中嵌入了一个视图, 该视图显示任何产品显示节点的链接, 并引用该产品。 还有一个编辑链接, 将产品显示的编辑表装入jQuery 模式对话框( 对话框窗口由产品表格中的空 div 创建, 然后将整个节点编辑页面装入其中 ) 。

我希望能够在同一对话框中显示提交表格的结果,而不是取代整个页面。 媒体和观点模块也做了类似的事情,但我正在努力确定具体的方式。 能否请人概述实现这一点的必要步骤?

问题回答

您可以在工具箱模式窗口( http:// drupal. org/ node/ 1196150) 中学习此教程, 以处理 Webforms 处理 : < a href=" http:// drupal. org/ node/ 1196150" rel= “ no follow” > http:// drupal. org/ node/ 1196150 < /a > 。 效果很好 : 网络形式和确认信息都将在模式窗口中显示, 不重新装入页面 。

< a href="" "http://drupal.org/project/ctools_automodal" rel=“nofollow” > 工具自动调制 模块也可能是一个解决方案(尽管我努力用网络形式使其发挥作用)





相关问题
C# Form Problem: new form losing control and randomly hiding

I m encountering strange behavior with forms on a c# 3.5 app. On a button click, my form1 hides itself, creates a new form2, and shows form2. Form1 also contains the event method triggered when ...

TCPlistener.BeginAcceptSocket - async question

Some time ago I have payed to a programmer for doing multithread server. In the meantime I have learned C# a bit and now I think I can see the slowndown problem - I was told by that guy that nothing ...

RoR: before_save on nested object in form?

I have a form with a nested object (customer < order), and it works except that it keeps creating a new customer record. I d like to have it check to see if an existing customer is already ...

Receive POST from External Form

I have a form on another website (using a different backend) that I want to be able to POST to my Rails application (on a different domain). How do I generate a valid authenticity token for the ...

Getting posted values in MVC PartialView

I ve created a PartialView which I render with Html.RenderPartial, passing the name of the view and the strongly-typed data item to bind to (below): <% Html.RenderPartial("...

Recaptcha - Form Customization

Does anyone know if recaptcha can be fully customize without the default frame. I need the recaptcha image to only be a certain width as well as the input field. Has anyone done this before with ...

Better way to retain form data on manual back redirect?

I have a form that, on submit, requires the customer to look over the data, and then confirm the changes before saving the data. However, I m using a really rough way of retaining data if the user ...

热门标签