jQuery, Apex, and Visualforce – 1 Intro
The design approach I have adopted, though I’m not sure if it is “best” practice or not is to create Apex back ends that fetch the data and then deliver it to a visual force page which uses jQuery to receive the data, process it and display it. Most of the time I don’t make much use of the built in visual force functions. Using JSON to exchange the data.
Over the next few posts I plan to outline how I’ve done this, and post relevant code to try and help any other developers who may be struggling like I am/was. I’ll just get this out of the way first please read the following line carefully.
any code I post comes with no warranty, has not been “extensively” tested, and could almost certainly use some tweaking and optimization. It does however work for me and my org and if nothing else should outline techniques that you can expand upon and improve upon. At which point I hope you’ll share your progress with me 😛
Just to outline a few things, for anyone who isn’t totally up to speed on some of this gibberish…
Apex: Salesforce Java like programing language. Runs on their servers.
ColdFusion: A powerful server side programming language, not really relevant to this discussion, but I may mention it from time to time.
Visual Force: Salesforce scripting for building front UI.
Over the course of the next few entries I’ll be teaching you how to build an integrated calendar application that runs entirely on Salesforce platform and rivals google calendar in appearance and functionality.