ajax with django forms

无人久伴 提交于 2019-12-02 07:53:43

Whay have you tried for ajax call?

Server just serve some result to client then it is up to your client code:

  • either it is post back that you refresh page
  • or iframe, you refresh a frame in parent doc
  • or html tag like tag that you inject by $(targetElement).html($someResultFromServer)

In most case server does not even care what and how it looks like client(rich or thin), Thats you javascript, query and css codes which to works on behalf of client. Vice versa, in most case client does not even care what is and how it looks like it is server: Loosely coupled

For ajax calls you can follow this link: http://api.jquery.com/jQuery.ajax/

As Martin Thurau stated your question is very hard to understand. Regardless I think that what you are asking for is a stepped form.

Best you take a look at Django's Form Wizard here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!