Get the most out of the JavaScript arguments object
So if you're a CF'er who has doubled down on AJAX then you really should take a minute to get to know the JavaScript arguments object.
So if you're a CF'er who has doubled down on AJAX then you really should take a minute to get to know the JavaScript arguments object.
If you've struggled with emulating GMail or Yahoo style Select All functionality for tabular forms and you're in love (or just curious) about jQuery and ColdFusion then this post is for you! If you love MASS EFFECT and you just want to see where someone has come up with a legitimate reason to use the words MASS EFFECT in code then this post if for you too!
Have you ever spent an hour on something that was so simple that upon solving it you wonder how you possess enough brain power to have ever learned to write a simple statement? Well I did and I'm writing this entry for anyone else who has ever felt like they should be immediately de-rezzed! Yeah - I just went TRON on you...
Someone recently asked me if it were possible to easily execute the same code for two or more possible case values in a JavaScript switch statement.
If you're into using jQuery UI (and who's not?) then this is an easy way to change the heading of a jQuery accordion tab style heading to reflect user focus.
Many web apps that are used for CRUD activities (INSERT, UPDATE and DELETE statements) employ tables that simply have what is often referred to as a manufactured key. Most people more commonly know this as an auto-increment or auto-numbered identity style of primary key and it is typically stored as a data type that's an integer of some sort. This is great until you're working on something a bit bigger, say a business app, and you want the key to a subsidiary table to hold meaning to the end user throughout the app. Perhaps you're setting up location codes or category codes for instance, the value 5 will probably not mean a lot to an end user when filtering inventory reports by location code and it unfortunately forces the user to perform mental lookups to remember that 5 truly means a location of 'Chicago'.
So let's say that you make the decision to structure lookup tables using user defined key values - would you know how to use CF to help maintain referential integrity in your database while not endlessly frustrating your end users?
Showing and hiding form and document elements on a page can be pretty useful when you're trying to walk a user through a process and you only want them to interact with controls that are geared towards to the task at hand.
Have you ever wanted to notify a group of users that an event has taken place using a cfwindow or some other type of alert? Well here's a way!
Have you ever wanted to juice up or possibly hide the default loading message for your cfdivs or cflayoutareas?