2011-07-26 18 views

答えて

1

は、バックエンドのスクリプトにAJAXポストを使用してライトボックスに返されたデータをプッシュします。

$('#form_id').submit(function(e)){ 
    //stop the form from submitting 
    e.preventDefault(); 

    //send the form data to the backend script 
    $.post('backend_script.php',$(this).serialize(),function(msg){ 
     //alert(msg) 
     //add content to lightbox here 
    }); 
}); 
関連する問題