September 16, 2011
@ 12:44 AM
check the JQuery Ajax:
$.ajax({
type: "POST",
url: this.url,
data: form_data,
beforeSend: function() {
$('#ajaxDetails').addClass('progress');
},
error: function() {
$('#status').text('Update failed—try again.').slideDown('slow');
},
success: function() {
$('#status').text('Update successful!');
},
complete: function() {
$('#ajaxDetails').removeClass('progress');
setTimeout(function() {
$('#status').slideUp('slow');
}, 3000);
}
});

to get the from data:
var form_data = $("form").serialize();
var form_data_array = $("form").serializeArray();
a simple example:
$(document).ready(function() {
$('#submit').click(function () {
var name = $('.uname').val();
var data = 'uname=' + name;
$.ajax({
type:"GET",
url:"welcome.php",
data: data,
success: function (html) {
$('#message').html(html);
}
});
return false;
});
});


and MVC3 Ajax
@using (Ajax.BeginForm(       
"ActionName",
"ControllerName",
new AjaxOptions {
 UpdateTargetId = "modal-dialog",
OnFailure="searchFailed",
OnBegin = "Dialog.Updating()",
OnSuccess = "Dialog.Update({title:'Select Friends'})"
})) {
… <input type="submit" value="Next" />
}





 
Wednesday, 07 March 2012 23:20:28 (Eastern Standard Time, UTC-05:00)
Thursday, 08 March 2012 04:32:09 (Eastern Standard Time, UTC-05:00)
Nike Dunk sb from the U.S., nike dunk sale womens shortness of breath nike dunk shoes it? cheap nike dunk </P> <br> nike dunk hi <P> but far less womens nike dunk low female womens nike dunk ... nike dunk highs
Tuesday, 10 April 2012 23:33:56 (Eastern Daylight Time, UTC-04:00)
w areas Retro Jordan Shoes of cheap jordan 3 innovation jordan retro 3 present, we still no Retro Jordan Shoes specific product plans to announce jordan retro 2 ; but the integration with Google , we have more information will be disclosed , cheap jordan 2 so stay tuned and ... jordan 2 sale
Thursday, 12 April 2012 02:23:30 (Eastern Daylight Time, UTC-04:00)
Men often Cheap Ray Ban Sunglasses do not have a rational Ray Ban Polarized and love to accept gifts may be using a Ray Ban Caravans.Consider these places where you can give a Ray Ban Daddy O coin of the watch.
Sunday, 20 May 2012 09:01:35 (Eastern Daylight Time, UTC-04:00)
Friday, 01 June 2012 01:53:31 (Eastern Daylight Time, UTC-04:00)
Discount Louis Vuitton Bags, Portefeuille Louis Vuitton, Louis Vuitton Homme, you can put all kinds of documents, wallet, Lunettes De Soleil Louis Vuitton, and a variety of styles, for about a month will launch new products, new styles. Whether it is fashionable ladies or mature male, and even the young and lively, can be found in the LV leather goods.
Comments are closed.