"My job is not to be easy on people. My job is to make them better." 

(Steve Jobs - CNNMoney/Fortune, 2008)

icon Blog Detail

AJAX Often Used

  • Posted: Dec 27, 2013 /
  • By: Admin /
  • Reads : 865

AJAX Submit Form

 var options = {

    beforeSubmit:  showRequest,
    success:       showResponse

};

$("#theForm").ajaxSubmit(options);

function showRequest(formData, jqForm, options){

}

function showResponse(responseText, statusText, xhr, $form){

}

 

Source : http://malsup.com/jquery/form/

 

AJAX Get

$.get( "ajax/test.html", function( data ) {
    $( ".result" ).html( data );
    alert( "Load was performed." );
});

 

Source : http://api.jquery.com/jquery.get/

Back

Headstart your career with us

Find out more about current openings at Rhino Technology