Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Forked from anonymous/Untitled-1.html
Created July 31, 2014 15:36
Show Gist options
  • Save cfjedimaster/0d614422b66075d90c21 to your computer and use it in GitHub Desktop.
Save cfjedimaster/0d614422b66075d90c21 to your computer and use it in GitHub Desktop.
<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);
getUsers();
});
</script>
@ngn6u65
Copy link

ngn6u65 commented Mar 2, 2025

الو

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment