-2

I am trying to create some sort of multipage modal dialog with Django/Python and JQuery. I didn't found yet in the web something similar to what i have in mind.

My idea is to show a popup dialog when a user press a button in a webpage, then that user can choose from 3 possible choices that immediately - when pressed - bring him to the next page in the dialog. Here the user can choose one element in a list and then the dialog will close and will show the original webpage with the informations submitted by the user.

I already try to put togheter some code blocks, but till now i didn't obtain good results.

Could someone - at least - tell me the correct process?

4

1 回答 1

1
  • 使用 ajax 将表单作为弹出窗口(使用 Bootstrap 或 jQuery UI)
  • 如果是静态表单,您可以添加 jQuery 代码以在每个部分检测到更改时替换内容,使用显示和隐藏或其他效果来执行此操作
  • 多部分表单通常称为“表单向导”。Django 有一个内置的表单向导系统,您可能想要使用它(特别是如果表单是动态的)。
  • 为了您的开发方面的简单性和常识,我强烈建议您不要自动执行此操作。添加一个按钮在表单中来回移动更好,也更容易配置$('mybutton').on('click' yada yada yada...
  • 还有,这个。而这个

祝你好运!

于 2013-09-18T21:24:16.010 回答