Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2014 15:16

Revisions

  1. @invalid-email-address Anonymous created this gist Jul 31, 2014.
    24 changes: 24 additions & 0 deletions Untitled-1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <a href id="reload">clicky</a>

    <script type="text/javascript">
    $(document).ready(function(){
    function getUsers(){
    $.ajax({
    type: "GET",
    url:"../components/user.cfc?method=GET",
    dataType: "json",
    data: {
    objectid: 0
    },
    success: function (data) {
    $("##userTableBody").html("");
    $.each(data,function(i,obj){
    var div_data= 'obj.blah';
    $(div_data).appendTo('#userTableBody');
    });
    }
    });
    }
    $('#reload').click(getUsers);
    });
    </script>