Re: Evaluate vs ?

2006-04-18 Thread Matt Williams
What about this one: Basically it is calling a setter method based on what is in the a structure. The cfset would evaluate to myObject.setFirstName('Matt') ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238001

Re: input box "focus"

2006-04-12 Thread Matt Williams
Possible DUH!... Make sure that javascript is enabled in whatever browser you are using. On 4/12/06, Paul <[EMAIL PROTECTED]> wrote: > > Yeah I suspect the body onload is a better solution than an inline > window.onload function definition; maybe the form object doesn't even > exist > in the dom u

Re: input box "focus"

2006-04-12 Thread Matt Williams
The line break after window.onload = could cause a problem (maybe?) On 4/12/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote: > > > window.onload = > > document.myform.yardage_ticket_no.focus() > > add a semi-colon to the end > document.myform.yardage_ticket_no.focus(); > > Also try the code I sent

Re: Group - but with no order specified

2006-04-11 Thread Matt Williams
This idea may seem complicated, but it should work. Put the ORDER BY in the SQL. Create an empty array. Do your cfoutput with the 'group' attribute. Use cfsavecontent to put each Group's output into a variable in the array. Then you can use some kind of randomizer to grab the output from the array.

Re: Newbie Model Glue Questions

2006-04-08 Thread Matt Williams
Be careful Joe, you may be speaking over Russ' head. Acronyms like 'API' are foriegn to the 'open a page in DreamWeaver/HomeSite and edit it' type of people. I think the main point is that Joe and Russ agree on the idea that frameworks are overkill for a simple web site. However, I would make the

Re: How can I tell what version of CF a particular site is running?

2006-04-05 Thread Matt Williams
This will give you all kinds of interesting info: Look for product version for your specific question. On 4/5/06, Les Mizzell <[EMAIL PROTECTED]> wrote: > > How can I tell what version of CF a particular site is running? > > I've only ftp access to the site files, but not the server. > > >

Re: OT: CFEclipse and CFC file saves

2006-04-04 Thread Matt Williams
You may have better responses on one of the CF Eclipse Mailing list: http://cfeclipse.tigris.org/servlets/ProjectMailingListList On 4/4/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote: > > Hey All, > > I'm finally trying out CFEclipse and so far it's pretty good (missing some > Homesite stuff, bu

Re: shipping rate calculator?

2006-04-04 Thread Matt Williams
UPS has some tools for API Integration. I haven't used it, just know it's there. On 4/3/06, Tony <[EMAIL PROTECTED]> wrote: > > wouldnt that fully depend on the carrier and nothing you > could just wing? > > tw > > On 4/3/06, Les Mizzell <[EMAIL PROTECTED]> wrote: > > Anybody know where I might fi

Re: CFDocument and multi-column layouts.

2006-04-04 Thread Matt Williams
CFReport and the Report Builder may be able to do it. I currently use Crystal Reports for mulit column stuff, but am hoping to migrate to CF Report. On 4/3/06, Jerry Johnson <[EMAIL PROTECTED]> wrote: > > Is there anything I am missing that can help generate nice > multi-column flowed layouts in c

Re: Creating double confirm

2006-04-03 Thread Matt Williams
Another idea: Use a temporary table to store the data including a timestamp. When they verify their address, you move data from temp table to permanent table. You could also set up a scheduled task to delete data from the temp table that is older than x days/hours. On 4/3/06, Ken <[EMAIL PROTECT

Re: Change dynamic dropdown into radio buttons

2006-03-31 Thread Matt Williams
There is a leftover '' after your in the radio input version. May or may not cause issues, but messy nonetheless. On 3/31/06, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > what does #inputChecked(status_id, qStatus.status_id)# return? > > for a element it would be 'selected="selected"' (or jus

Re: CFEclipse and code colour

2006-03-31 Thread Matt Williams
You can change the font that is used for all code to whatever you like, including bold, etc. (if that font has that style). ->Window ->Preferences ->General ->Appearance ->Colors and Fonts Expand the Basic Folder, select the Text Font option. Then click Change.. and have at it. Personally, I like

Re: Anything inherently wrong with this query?

2006-03-31 Thread Matt Williams
What error are you getting? Or is it just bad data? If your Client_ID fields are numeric, then you shouldn't have quote marks around them. I usually do inner joins as follows... Select C.*, FG.*, E.* from clients C inner join family_groups FG on C.Family_ID = FG.Family_ID inner join employer

Re: OOP/CF - Update Function in a DAO

2006-03-30 Thread Matt Williams
Tanguy, I think I knew what you meant. Thanks for clarifying though. I'll give this a shot. I'll have to work on it a bit as I am working within the confines of Mach-II. When either form is submitted, it currently calls the updatePerson function in PersonService.cfc. This creates the Bean and runs

Re: OOP/CF - Update Function in a DAO

2006-03-30 Thread Matt Williams
you add to your SQL UPDATE statement. > > I think this is a bit of a kludge, but it's workable. > > M!ke > > -Original Message- > From: Matt Williams [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 30, 2006 2:22 PM > To: CF-Talk > Subject: Re: OOP/CF - Upda

Re: OOP/CF - Update Function in a DAO

2006-03-30 Thread Matt Williams
Mike, I thought of that too. It would probably work. The issue I have with it is if a field were to get added at some point, I'd have to make sure every possible form got that field added. Keep thinking. I know there has to be an easier way. I fear it involves mucho 'if' statements. Matt On 3/30

Re: OOP/CF - Update Function in a DAO

2006-03-30 Thread Matt Williams
So should the init function in the bean have if (StructKeyExists(arguments,'Foo')) {setLastName(arguments.Foo);} The problem I see then is the Update function would throw an error on getFoo because variables.Foo does not exist. On 3/30/06, Tanguy Rademakers <[EMAIL PROTECTED]> wrote: > > >The fi

OOP/CF - Update Function in a DAO

2006-03-30 Thread Matt Williams
I create a Person Bean based on my submitted form data. Then send that bean to the Person DAO update function which runs my Update query. All is good. I have another form that contains only partial info on a Person. When I create the Person Bean, I don't send all the arguments. Those I don't send

<    1   2   3   4