2007-07-16:
[0:48] <tacoman_cool> evening[1:24] <tacoman_cool> yeha![1:25] <tacoman_cool> I love Javascript[1:25] <midnightmonster> ?[1:35] <tacoman_cool> so I finally figured out more about how Helma worked (dumb that it took so long).[1:35] <tacoman_cool> in ColdFusion I have an application that wraps up a bunch of config data for form fields (dozens of form fields). Things like the name, type, maxlength, etc[1:36] <tacoman_cool> in ColdFusion I created a function that I pass in the config and the name of the field and it creates the HTML to output for the form field. It makes for kind of nasty reading code[1:36] <midnightmonster> (took me about a week, I think. we'll see if I've really got it next week once I get to work)[1:37] <tacoman_cool> just playing with the say idea in Helma and what I did was create an object that contains arrays for the form condig [{name:"blah","type":"text"}][1:38] <tacoman_cool> I think added a forEach method to the array prototype and looped over the whole array running a function that creates builder functions for each form field. So now I can called First(); to output the first name text box and First("John"); to output it with a value;[1:38] <tacoman_cool> just had to share :-) this is such fun[1:38] <midnightmonster> cool[1:39] <tacoman_cool> and because of the way it scales I just have to maintain that one function and add as many records to the formConfig array as I want. I'll get an API for all of them.[23:03] <typicaljoe> so what is it going to take to take helma to the top?
In the channel now:
Logs by date: