asked on
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div class="loadData"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$(".loadData").load("mydata.cfm");
});
I might have other functions here that specifically work for a few unrelated items in the "loadData" content area.
</script>
</body>
</html>
#### mydata.cfm
<!--- I usually create .cfc's for retrieving data but for simplicty I'm adding it here --->
<cfquery>
SELECT *
FROM TABLE
</cfquery>
<cfoutput>
#data# I could have functionality like deleting or updating to where I utilize jquery as well.
</cfoutput>
<script>
I might have functions here that seem to only specifically work for this pages functionality here. Which makes sense (DOM) but I'm just exploring other ways to possibly handle the ajax awesomeness as I've mentioned above.
</script>