New Programming

Yesterday, I got to experience some new programming by using jQuery, an AJAX type add-on for ColdFusion. The interesting thing is that I wasn’t expecting to use it, but I was eventually forced to.

I encountered the need for AJAX when working on the future DDA GRID and I needed to grab data during an ‘on-click’ action and use that in ColdFusion to get more data and run some queries. After many attempts at getting ColdFusion to assign variables dynamically with the ‘onclick’ action, it became apparent that this wasn’t possible since the ColdFusion has already been run. I was able to get the data I needed in Javascript. So then I needed to find out how to get that data to ColdFusion, but again the ColdFusion had already been run. I couldn’t find a way to do it, so I asked the Internet. The Internet told me it wasn’t possible to do it like that — which made me feel somewhat better — and said that advanced programming using AJAX is needed to pull of something like that.

I went to our lead programmer for some assistance since I have never used AJAX before and she suggested using jQuery and sent me a perfect code sample to use. After making it match my application, it worked just as needed. I must say that it is nice to have a super code guru among the staff here who always handles my questions well. Now, back to finish the DDA GRID.