Re: CF Shopping carts

2010-06-28 Thread Kevan Stannard
I used CFShopKart a few years back before it was free and had a pretty poor experience. The list of cart features were good, but I found its implementation very poor with duplicate code, scores of bugs, messy markup and sparse responses from the developer when attempting to contact him regarding t

Re: Comma delimited list

2010-06-01 Thread Kevan Stannard
ice DESC > > > > select feature_code, feature_description > from featureCodes > > > > > > > > > > #featureCodes[code]# > > #code# > > > > ----

Re: Comma delimited list

2010-05-31 Thread Kevan Stannard
y wrong but thats the situation that would > help me the mostanybody know the correct way to concieve of this? > > On Sat, May 29, 2010 at 1:45 AM, Kevan Stannard >wrote: > > > > > A simple option for you is to load all of your feature codes into a > > struc

Re: Comma delimited list

2010-05-28 Thread Kevan Stannard
A simple option for you is to load all of your feature codes into a structure then loop through your feature codes list and just pull the feature code descriptions from the struct. On 29/05/2010 12:37 PM, "Bill Hartley" wrote: I am trying to display feature codes from a comma delimited list in

Re: Validating that only .5 decimal gets through?

2010-02-20 Thread Kevan Stannard
> > > On Sat, Feb 20, 2010 at 1:28 AM, Kevan Stannard > wrote: > > > > This might do: > > > > > > > > > > On 20 February 2010 17:41, Marie Taylore wrote: > > > >> > >> I have an app that I need to validate t

Re: Validating that only .5 decimal gets through?

2010-02-19 Thread Kevan Stannard
This might do: On 20 February 2010 17:41, Marie Taylore wrote: > > I have an app that I need to validate that they enter either whole numbers > (1,2,3, etc.) or if they DO enter a decimal, it can only be in half > increments, so 2.5 is okay, but not 2.1, 2.2, 2.25, etc. Of course, 2.0 > wou

Re: is there a safe way to save an object/cfc loaded into the app scope into the session scope?

2010-02-19 Thread Kevan Stannard
Take a look at this to give you some ideas on working with application and session data: http://learn.objectorientedcoldfusion.org/wiki/Accessing_a_Users_Session_Data Kevan On 19 February 2010 17:22, crippe crippe

Re: For consideration...

2009-12-11 Thread Kevan Stannard
I haven't tried these but they may be what you are looking for http://www.validatethis.org/ http://thor.riaforge.org/ 2009/12/12 Justin Scott > > I'm tired of writing form input validation routines over and over again. > Using CFINPUT

Re: Setting Static Image Expire

2009-12-05 Thread Kevan Stannard
Which version of IE are you experiencing the flickering problem in? I tried IE8, FF3.5, Chrome and all showed no flickering. Considering that the flickering problem may only be present in one browser and version then image caching may not be the right solution. First, reduce the size of your ima

Re: Methods not found.

2009-11-25 Thread Kevan Stannard
programming > thinking into an OOP stand point so I'm still sorting through all the > damn terminology and concepts. > > > -Original Message- > > From: Kevan Stannard [mailto:ke...@stannard.net.au] > > Sent: Wednesday, November 25, 2009 1:56 PM > > To: cf-tal

Re: ARGUMENT scope case

2009-11-25 Thread Kevan Stannard
The struct key name case should be retained with the following syntax: 2009/11/26 Bryan Stevenson > > Hey All, > > I just bumped into an interesting/annoying potential difference between > Adobe CF 8 and OpenBD. > > When I run the following code in a CFFUNCTION: > > > > > > > > > I get

Re: Methods not found.

2009-11-25 Thread Kevan Stannard
> I'm not sure if this is the best way of going > about it so if anyone has a better idea, I'd like to hear about it. :) You may like to take a look at 'dependecy injection' techniques http://learn.objectorientedcoldfusion.org/wiki/Dependency_Injection 2009/11/26 Chung Chow > > Hi all, > > I

ColdFusion with a Java model

2009-11-01 Thread Kevan Stannard
I'm looking to find any information on using ColdFusion for the presentation layer with a Java/Spring back end. So far I have found an excellent presentation by Andrew Powell here http://www.infoaccelerator.net/blog/post.cfm/enterprise-mvc-with-coldfusion-and-java

Re: How to Handle Objects when Doing Several Updates and Once?

2009-09-29 Thread Kevan Stannard
Hi Glyn >From your example I am guessing there is some "thing" that these options are associated with. Let's assume it's a product with various options. Within CFML I would probably have code something like: // create the object // populate with the primary fields (eg optionId might be here?)

Re: Invoking components, methods and storing instance in application scope

2009-09-27 Thread Kevan Stannard
Hi Tony, you make like to take a look at http://learn.objectorientedcoldfusion.org/wiki/The_Init()_Function > instances of an object. I have also seen quite a bit about using > init() in every component but am not sure why I would do this if I > just want to call a method from the application

Re: CFMENU - message submenu collapsed. click to expand submenu

2009-08-29 Thread Kevan Stannard
Not sure if this matters, but your version of YUI /scripts/ajax/yui/menu/menu-min.js is 2.2.0 The version I am running is 2.3.0. My full CF version is 8,0,1,195765 2009/8/30 Glyn Jackson > > you can see it happening here > > http://demo.salesmaxx.co.uk/test.cfm > > only code on the page is

Re: CFMENU - message submenu collapsed. click to expand submenu

2009-08-29 Thread Kevan Stannard
Hi Glyn, tried this and did not see the extra message. Also running CF 8.01. 2009/8/30 Glyn Jackson > > could someone cut and paste the the code below and tell me if you see the > message > "submenu collapsed. click to expand submenu" > under products items. > > I dont remember CFMENU having th

Re: Help with creating a filename field

2009-08-24 Thread Kevan Stannard
Would be a good idea to also check the file extension of the uploaded file, otherwise you may get a .cfm file uploaded with a spoofed mime type of image/jpg for example. 2009/8/24 Dave l > > I'm in the middle of remaking a decent jquery uploader for my admin sites > and here is what i do ( for t

Re: returning all table records ColdBox & ColdSpring via an object?

2009-08-18 Thread Kevan Stannard
Hi Glyn, couple of options: 1) If you only need a query, then just return a query. Not ideal, not OO, breaks encapsulation, but does not suffer performance or memory issues. 2) Use an "iterating business object" which is just like a bean with getters but also has a next() function to move to the

Re: ColdBox and ColdSpring Login

2009-08-15 Thread Kevan Stannard
> if I should be do this all in my service, or should I come out again with the username > and run the bean.setUserSession() in the handler? I'd keep everything behind the service (or even other objects beyond that) and not put session related code in your handler. I'd also keep session code out

Re: venture into OO, well sort of, need help!

2009-08-14 Thread Kevan Stannard
collection of errors, as in Glyn's sample code. 2009/8/15 Matt Quackenbush > > I respectfully 100% disagree. You should **ALWAYS** validate ___ALL___ > data > that comes from your users. > > (Note the period at the end of that sentence.) > > > On Fri, Aug 14, 2009

Re: venture into OO, well sort of, need help!

2009-08-14 Thread Kevan Stannard
Can you provide a few more details on what you are trying to do? If you are just logging in a user then you probably don't need the validation steps. // Returns zero if not authenticated, else returns a User object var user = variables.adminUsersService.getAuthenticatedUser(rc.username,rc.password

Re: Alternatives to multiple 'if/else if' statements

2009-07-28 Thread Kevan Stannard
You can probably put your winner criteria into a struct: etc ... Then loop over the struct keys ... you've found a match ... ... no match found ... > 2009/7/29 Mark Henderson > > >> This is a pretty basic question so I hope it makes sense, as I'm c

Re: Alternatives to multiple 'if/else if' statements

2009-07-28 Thread Kevan Stannard
You can probably put your winner criteria into a struct: etc ... Then loop over the struct keys ... you've found a match ... ... no match found ... 2009/7/29 Mark Henderson > > This is a pretty basic question so I hope it makes sense, as I'm cur

Re: ecommerce emergency

2009-07-22 Thread Kevan Stannard
Phillip, you might need to double check but last I looked cfshopkart it was storing credit card details in its database (an MS Access database). And if you're on shared hosting this this db is likely to be web accessible. If this is still the case then avoid this cart. Mike, cfshopkart was one of

File not found error with flash remoting talking to a cfc

2009-03-12 Thread Kevan Stannard
We are using AS3 in Flash and trying to get flash remoting working via IIS6 to access a ColdFusion 7 component. The remoting call is failing and producing an error message: File not found: C:\sites\orion\remote\quizEngineProxy.cfm C:\sites\orion is the web root. The actual file we are calling

RE: CFEclipse code folding; not working

2008-08-12 Thread Kevan Stannard
Hi Dominic In the version of CFEclipse we are using the code folding does not work in files that have nested CF comments. Once the nested comments have been removed then the fold icons show up. Kevan -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: Monday, 11 Aug

RE: date problem

2008-01-25 Thread Kevan Stannard
explicitly: Regards Kevan -Original Message----- From: Kevan Stannard [mailto:[EMAIL PROTECTED] Sent: Saturday, 26 January 2008 2:28 PM To: 'cf-talk@houseoffusion.com' Subject: RE: date problem Hi Richard We deal with the same issue here in Australia. You may have the problem sorted

RE: date problem

2008-01-25 Thread Kevan Stannard
Hi Richard We deal with the same issue here in Australia. You may have the problem sorted out by now, but you may like to have a look at some notes I put down a little while ago on this. http://stannard.net.au/blog/index.cfm/2006/10/25/Date-Objects-vs-Date-String s-in-ColdFusion Just an extra c

re: Getting the data & time from an unfamiliar returned value

2007-11-28 Thread Kevan Stannard
That looks like ISO 8601 date time format You can get more info http://en.wikipedia.org/wiki/ISO_8601 http://www.w3.org/TR/NOTE-datetime And a UDF from http://www.cflib.org/udf.cfm?id=1144&enable=1 ~| ColdFusion is deliveri

re: CF8 Java Problem, Works on CF7

2007-11-28 Thread Kevan Stannard
Matthew, I gave this a try using your mock classes and it work fine for me, however a dump of outer.getInner() showed Class Name: Outer$Inner Parent Class: AbstractDecorator Class Name: AbstractDecorator Methods: getID() int Parent Class: Wrapped Class Name: Wrapped Methods: getID() int whi

RE: Dynamic cfinvoke

2007-11-06 Thread Kevan Stannard
Hi Rick An idea you might like to try is to wrap up your URL and FORM variables in an 'Event' component and pass this event object to your controller. For example, you could create a component called Event.cfc and init() it with the url and form data. This event object has a function available su

RE: Session not being maintained - Problem solved

2007-02-01 Thread Kevan Stannard
Problem solved. The subdomain we were using contained an underscore. test_site.ourdomain.com.au Of course I never thought to include that in my emails to the list! The underscore is not a valid domain name character. We switched to using a hyphen and suddenly our cookies (and sessions) started

RE: Session not being maintained - Problem solved

2007-02-01 Thread Kevan Stannard
. - Original Message - From: "Kevan Stannard" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, February 01, 2007 6:58 PM Subject: RE: Session not being maintained > One additional bit of information: > > I am accessing this site via a subdomain: >

RE: Session not being maintained

2007-02-01 Thread Kevan Stannard
Some more info: I am accessing the site from 1) http://testsite.ourdomain.com.au/ - not working 2) http://testsite/ - working When I ping these domains they return different IP addresses (both external IPs). Thanks -Original Message- From: Kevan Stannard [mailto:[EMAIL PROTECTED

RE: Session not being maintained

2007-02-01 Thread Kevan Stannard
by cookie blockers. Check again for the cookie settings in IE or any toolbars/helpers loaded into IE, as this is the problem. On 2/2/07, Kevan Stannard <[EMAIL PROTECTED]> wrote: > I have tested on a number of machines and all are set to allow cookies. > > I have tested in IE7 and IE

RE: Session not being maintained

2007-02-01 Thread Kevan Stannard
d into IE, as this is the problem. On 2/2/07, Kevan Stannard <[EMAIL PROTECTED]> wrote: > I have tested on a number of machines and all are set to allow cookies. > > I have tested in IE7 and IE6 with the same behaviour, but Firefox 2.0 seems > to be fine. > > I have also trie

RE: Session not being maintained

2007-02-01 Thread Kevan Stannard
you browser accept cookies? try this for your refresh link Refresh ColdFusion works out if it needs to append CFID and CFTOKEN to the URL - like if cookies are not enabled. On 2/2/07, Kevan Stannard <[EMAIL PROTECTED]> wrote: > > Hi > > > > I have an application on our

Session not being maintained

2007-02-01 Thread Kevan Stannard
Hi I have an application on our server that is not being maintained across pages. I have set up a test directory with only two files: Application.cfm -- index.cfm -- BEFORE: AFTER: Refresh When I execute index.cfm, this i

ColdFusion Shopping Cart

2007-01-31 Thread Kevan Stannard
when trying to set up for Australia). Ideally I will be able to link it to an Australian payment gateway, and if not it should have a secure strategy for storing credit card details. Any suggestions much appreciated. Kevan Stannard

RE: CFML IDE's

2007-01-19 Thread Kevan Stannard
An extra 0.02c on IDEs. I don't use either in much depth (mostly as simple code editors), but I found: HomeSite+ - Outstanding text editor - Very fast to start up - Has an patch to support CF7 tags - If you are using tortoise SVN, you can still access the context menu from the list of folders with

Re: Getting auto generated id after insert in MSSQL

2007-01-18 Thread Kevan Stannard
Thanks everyone, works perfectly. -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 January 2007 6:30 PM To: CF-Talk Subject: SPAM-LOW: Re: Getting auto generated id after insert in MSSQL Indeed, this is clearly identified within BOL. In mo

Getting auto generated id after insert in MSSQL

2007-01-17 Thread Kevan Stannard
Hi everyone Can anyone advise if this is the best way to get the auto generated id from MSSQL after an insert? Is it multiuser safe? insert into person (firstName,lastName) values ( , ); select @@identity as personId; Thanks Keva

RE: JS and Radio Button Issue

2007-01-10 Thread Kevan Stannard
Hi Bruce, Something that you might want to look at is either the Prototype or jQuery (www.jquery.com) javascript libraries. They are just amazing in how they can manipulate a page. They are cross browser compatible too. For example, using jQuery you would write your code as follows (may not be ex

RE: A question about CFCFactory objects as a singleton ....

2007-01-09 Thread Kevan Stannard
Hi Mike I would take the approach of passing the user object in as part of your DAO save (or create and update) method. Just as you only need a singleton factory, you also only need singleton DAOs. Best regards Kevan Stannard -Original Message- From: Mike Kear [mailto:[EMAIL