2011-04-25 74 views
0

我正在嘗試爲我的網站實現反饋框。我用這個jquery(http://grasshopperpebbles.com/demos/index.php/jqueryui/feedback/dialog)。解釋在鏈接博客文章中給出。我能夠顯示對話框,但不讀取send_mail.php。爲什麼?jquery反饋對話框

在此先感謝。

+0

沒關係更改此。我自己修復了它。這是爲那些正在尋找答案的人。 在'ui.imFeedBack-0.5.2.js'文件中,我更改了sendFeedback函數部分。這裏是代碼 - sendFeedBack:function(){ x = $(「#imFeedBack-FormContainer」)。serialize(); ('#imFeedBack-FormContainer').html(result); }); $ .post(「send_mail.php」,'&'+ x,function(result){} 您可以根據您的要求對此進行更改 – user556773 2011-05-05 09:37:17

回答

0

沒關係。我自己修復了它。這是爲那些正在尋找答案的人。在'ui.imFeedBack-0.5.2.js'文件中,我更改了sendFeedback函數部分。下面是代碼 -

sendFeedBack: function() { 
x=$("#imFeedBack-FormContainer").serialize(); 
$.post("send_mail.php",'&'+x,function(result){ 
      $('#imFeedBack-FormContainer').html(result); 
}); 

}

您可以根據您的要求