JQuery Ajax Tutorial For WordPress

JQuery Ajax Tutorial For WordPress


In this video we cover how to create an ajax request. While these series about working in WordPress the methods shown in the video are really the same with or without WordPress.

20 Comments

20 Replies to “JQuery Ajax Tutorial For WordPress”

  1. I thinks, Its very helpfull , every wordpress plugin developer ….., Thanks you very much for this tutorials

  2. ajax doesnt callback success and also calls error 🙁 .. I have done nothing wrong in syntax though.

    jQuery(document).ready(function($) {

    var sortlist = $(‘ul#custom_type_list’);
    var animation = $( ‘#loading-animation’);
    var pageTitle = $( ‘div h2’ );

    sortlist.sortable({

    update: function( event, ui ) {
    animation.show();

    $.ajax({
    url: ajaxurl,
    type: ‘POST’,
    dataType: ‘json’,
    data: {

    action: ‘save_post’,
    order: sortlist.sortable( ‘toArray’ ).toString()

    },
    success: function( response ) {
    animation.hide();
    pageTitle.after( ‘Has been updated’ );
    },
    error: function( error ) {
    pageTitle.after( ‘Has been errored.’ );
    }
    });
    }

    });
    })

  3. ok Solved, its actually no need to write dataType “json” because format not in json :):):)

  4. thanks, bobby. i really like your video. this is the first one i have watched but i will watch many more.

  5. Doing a great job man! I am trying to learn php and WordPress coding. Your
    vids have really helped me to better stand what is going on.

  6. I really appreciate this tutorial, but I have to say, from the beginning it is not really clear what you are trying to achieve. It would be nice to see an example at the beginning just to get an idea of what the objective is.

  7. I always love to see what the final product actually does in the first 15 seconds of the video. Thanks for making this video.

  8. Great Video! I love that you include your references so that we can go and look into specific items when we want a more in depth understanding of what you are talking about. One of the most difficult things about learning this is not knowing where to start, I am beyond grateful to you for giving us that in your videos!

    My one concern at the end of this video is that the success message stays on the screen instead of only appearing for a short amount of time. My guess is that we will fix that later in the videos….

    Thanks Bobby!!

  9. You Sir just lightened my mind. I have PHP experience but before this series I didn’t have any clue how to integrate it with wordpress. After watching your videos I learned in very short time to write my very own plugins. You are awesome. Please keep up the good work.

  10. Thank you!
    Very useful tutorial.

    Getting up the basics, well explained in details.
    It’s good to know what’s under the hood and how it works.

  11. Going through this tutorial has been one of the most productive things I have done in a while and I have a general grasp of how WordPress works a LOT better, so thank you very much.

  12. Hi thank you for good videos. Can u take video about wordpress post like plugin development please.

Comments are closed.