Wednesday, September 21, 2011 Related selects using jQuery, ColdFusion 9 ORM & FW/1
I'm currently working on a Framework One project where I needed to populate a second select list (contacts) based upon the selection made in the first select list (clients).
With some help from John Whish and an article written by Ray Camden this is how I did it.
Firstly, in my views directory I created a .cfm file containing my jQuery script and HTML form.
Secondly, in my views directory I created a file called contactsasjson.cfm which outputs a list of contacts matching the selected client in JSON (JavaScript Object Notation).
I need to do some additional coding to ensure the functionality still works if JavaScript is disabled in the web browser, but that's basically it!
Tags
Share
Comments
Be the first to add a comment!