howto create an Ajax Popup Form and submit the form

◇◆丶佛笑我妖孽 提交于 2019-12-13 16:31:43

问题


I like to request a ajax-popup bij clicking on a link with variable. The popup will show some date requested from the server. After submit the data will be checked on the server and send a responce back. Depending on the responce, new content will be showed in the popup. The user can close the popup afterwards.

I have searched a while for a tutorial or example, but i can't find any.

Who can give me an example or suggestion to startup?


回答1:


Check into the jQuery UI Dialog widget. It can do what you need. You just put the controls, text, etc into a DIV, and then invoke the method to pop the dialog. Since the code is in a div, you can update it dynamically with the results of ajax calls as needed.



来源:https://stackoverflow.com/questions/2089303/howto-create-an-ajax-popup-form-and-submit-the-form

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