code snippets
I would like to store several different code snippets on one page. I will have an ajax window pop up and depending on the action that called the window it will draw a specific snippet from the set of code blocks. I'm not sure how to go about this. I want to be sure that only the block of code needed is executed as there will be over 100 code snippets and each will contain a different database query and display different content.
Does anyone know how I might best attack this? I was thinking of using <cfscript> and naming each a different function but I want this file stored seperately. I'm afraid that if I include the file it will make the page load hard.
A side note, I am hosting 3rd party and I don't have access to the cf administrator so I think that rules out creating a .cfc.
Thanks for any hints on this.
