Avatar of brihol44

asked on 

Just wanted to get some feedback on the methodology of how I use Coldfusion and (jQuery) $.ajaxy goodness..

I'm curious if this is a standard way of doing this with Coldfusion + $.ajax. It seems that my code gets a little bloated from this way. And again my question is really just to explore other ways to not have full page refreshes.
<!DOCTYPE html>

<div class="loadData"></div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

$(document).ready(function() {

I might have other functions here that specifically work for a few unrelated items in the "loadData" content area.



#### mydata.cfm 

<!--- I usually create .cfc's for retrieving data but for simplicty I'm adding it here --->

#data# I could have functionality like deleting or updating to where I utilize jquery as well.

     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.

Open in new window

ColdFusion Language

Avatar of undefined
Last Comment

8/22/2022 - Mon