I need to send my contact form via ajax and then show pop-up message.
For example if I'll send form POST data to some url it should response with "OK" or "FAIL"
Drupal 6
A module is there for ajax submition
http://drupal.org/project/ajaxsubmit
$form['#ajaxsubmit'] = TRUE;
That will change your form behavior to ajax.
Drupal 7 core integrated it.
使用JQuery Form插件,实现起来非常简单实用: http : //jquery.malsup.com/form/#getting-started
you can use the ajax module(http://drupal.org/project/ajax) to ajaxify your form, to show the popup, use a module like bettermessages, or growl or something of the sort.
Joshua
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.