Comment puis-je avoir inclus ajaxoptions sous la forme suivante:Comment ajouter ajaxoptions pour former
<form id="" action="<%=Url.Action("ChangePassword",new{Action="ChangePassword" }) %>" method="post" enctype="multipart/form-data">
Comment puis-je avoir inclus ajaxoptions sous la forme suivante:Comment ajouter ajaxoptions pour former
<form id="" action="<%=Url.Action("ChangePassword",new{Action="ChangePassword" }) %>" method="post" enctype="multipart/form-data">
Que javascript (le cas échéant) bibliothèque utilisez-vous?
Généralement, vous définissez les options dans le script et non dans le code C#.
Pour répondre à votre commentaire:
En JQuery w/Form Plugin comme:
var options = {
target: '#output2' // target element(s) to be updated with server response
}
$(function() {
$("form").submit(function() {
$(this).ajaxSubmit(options);
return false;
});
});
Puis-je avoir un exemple comment faire cela? – learning
... regardez à nouveau la réponse. –
Vous afficherez votre formulaire avec appel ajax et vous vous demandez comment le faire? – anilca
Je souhaite mettre à jour dynamiquement une vue partielle. – learning