Re: New SQL Injection

2008-09-24 Thread Tom Chiverton
On Monday 22 Sep 2008, Judah McAuley wrote: we sit down to discuss strategy and bringing resources on under me, I know that conversion conversation is coming. Print out http://www.webbschofield.com/index.cfm/2008/9/15/ColdFusion-Evangelism-Kit and leave it on your desk just in case. -- Tom

CFC Objects (Best Practice)?

2008-09-24 Thread Randy
To those who use CFCs as Objects: Is it best to create the CFC objects within the application or session scope to be called throughout the application? Ex: -- OnApplicationStart cfscript application.lookupCFC = createobject('component','cfcs.lookup'); /cfscript -- OnSessionStart cfscript

RE: CFC Objects (Best Practice)?

2008-09-24 Thread Dave Watts
Is it best to create the CFC objects within the application or session scope to be called throughout the application? Yes, if you can share them among multiple users, or multiple requests for a single user. CFCs are really no different than any other sort of variable in this way. They are

RE: CFC Objects (Best Practice)?

2008-09-24 Thread Mark Kruger
Randy, If your CFC is a collection of methods then this is fine.. But if you intend on persisting the return value (say in the session scope) then you may end up with some memory issues. We found that storing a return query from an application cached CFC in the session scope caused memory to be

Re: CFC Objects (Best Practice)?

2008-09-24 Thread Loathe
The scope I used would depend on the manner in which I was using the CFC. Something used on every request, like a user.cfc or cfc for logging I would use the application scope, however if it's something thats used less often but needs to exist across multiple requests I would use session

Scrollbars in CFWINDOW

2008-09-24 Thread Scott Spurlock
Hello there. I'm using the following to create a CFWINDOW: onClick=javascript:ColdFusion.Window.create('productDetails','Product Details','details.cfm?ProductID=#ProductID#', {x:150, y:25, resizable:true, height:600, width:900, draggable:true}); Works great in IE except for the fact that the

RE: CFC Objects (Best Practice)?

2008-09-24 Thread Gaulin, Mark
Where to store the object would depend on the nature of the object... Does it have internal state (variables) that are specific to a given user (so, maybe use session, but definitely not application), or is the object sharable by every user (so, application might work). I tend not to cache lite

Re: Using Max Function on more that two data values

2008-09-24 Thread Raymond Camden
Actually MAX works in QofQ. I'd use that instead of maxrows: cfquery name=foo dbtype=query select max(something) as maxvalue from somequery /cfquery On Tue, Sep 23, 2008 at 6:14 PM, s. isaac dealey [EMAIL PROTECTED] wrote: cfquery name=PartyConstituencyResults datasource=#request.datasource#

Re: CFC Objects (Best Practice)?

2008-09-24 Thread Randy
I apprecaite all the comments. I was considering storing lookup values in either scope for easy referencing throughout the application. Not everyone would be used but many are used multiple times. Ex: Being able to call the function: application.lookup.company('some company name'); would return

Re: Using Max Function on more that two data values

2008-09-24 Thread s. isaac dealey
Actually MAX works in QofQ. I'd use that instead of maxrows: cfquery name=foo dbtype=query select max(something) as maxvalue from somequery /cfquery Except that they wanted the max count and the name, not just the max -- s. isaac dealey ^ new epoch isn't it time for a change? ph:

Re: Using Max Function on more that two data values

2008-09-24 Thread Raymond Camden
Well, I guess if you want to _read_ and all. ;) On Wed, Sep 24, 2008 at 10:17 AM, s. isaac dealey [EMAIL PROTECTED] wrote: Actually MAX works in QofQ. I'd use that instead of maxrows: cfquery name=foo dbtype=query select max(something) as maxvalue from somequery /cfquery Except that they

Re: Using Max Function on more that two data values

2008-09-24 Thread s. isaac dealey
Well, I guess if you want to _read_ and all. ;) It's easier to find the time to read when you've got a smaller number of open source project emails to respond to. ;) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog

(ot) Action Script 3 Coder

2008-09-24 Thread Robert Harrison
Hi, Sorry, if this is a bit OT, but need some help. We are rebuilding our own web site and want to do this right. The display side of the site is Flash and we want it coded in Action Script 3. The site uses a Cold Fusion CMS system. The CMS system and queries are fully done, but we need help

RE: (ot) Action Script 3 Coder

2008-09-24 Thread Dave Watts
Sorry, if this is a bit OT, but need some help. We are rebuilding our own web site and want to do this right. The display side of the site is Flash and we want it coded in Action Script 3. The site uses a Cold Fusion CMS system. The CMS system and queries are fully done, but we need

Help with CF8 upgrade

2008-09-24 Thread Victor Moore
Hi all, I have upgraded a CF 8 standard to CF8.01. The installation completed OK but when trying to connect to the Admin I get the following error: java.io.FileNotFoundException at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:94) at

Re: Logging to db vs txt file

2008-09-24 Thread Mike Chabot
Both solutions are fine. It mainly depends on what you want to do with the data. If you want to implement a quick logging solution for a specific error that you intend to fix and be done with, or if you are just trying to gather information on a rare error, cflog works great. If you want a

Alagad's Model-Glue Training

2008-09-24 Thread Doug Hughes
All, I just wanted to send a quick note to the cf-talk mailing list to let everyone know that Alagad will be holding a Model-Glue training class in Raleigh, NC on October 6th to 9th. If you'd like more information please visit these links... Class Overview:

Re: Alagad's Model-Glue Training

2008-09-24 Thread Doug Hughes
I have been chastised for sending this to this list. So, my apologizes to those I offended. Doug On Wed, Sep 24, 2008 at 1:52 PM, Doug Hughes [EMAIL PROTECTED] wrote: All, I just wanted to send a quick note to the cf-talk mailing list to let everyone know that Alagad will be holding a

Re: Alagad's Model-Glue Training

2008-09-24 Thread Judah McAuley
Doesn't seem like spam at all to me. I wish I could make it out to NC for it. If there is a seperate mailing list Alagad trainings, please send me the address and I'll subscribe. Cheers, Judah On Wed, Sep 24, 2008 at 11:08 AM, Doug Hughes [EMAIL PROTECTED] wrote: I have been chastised for

RE: Logging to db vs txt file

2008-09-24 Thread Dawson, Michael
One other thing to consider is that database logging is great until the database is unavailable. Then, you have no other choice but to log to a file or send a high-urgency email. Mike -Original Message- From: Mike Chabot [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008

Re: Using Max Function on more that two data values

2008-09-24 Thread Fawzi Amadu
Hi S. Isaac, this worked fine after some tweeking. Currently my first query returns 24 rows of records (because there are currently for constituencies returning results and each has 6 parties participating), but the logic beats me, how is it that your cfquery name=PartyConstituencyResults

Re: Using Max Function on more that two data values

2008-09-24 Thread Fawzi Amadu
Sorry for the premature posting I mistakenly hit the enter key. Now to my question Hi S. Isaac, this worked fine after some tweeking. Currently my first query returns 24 rows of records (because there are currently for constituencies returning results and each has 6 parties participating)so

Re: Using Max Function on more that two data values

2008-09-24 Thread Rob Parkhill
He added the order by desc, so that it sorted the highest to lowest.. Had it been asc, you would have gotten the four smallest returns. Rob On Wed, Sep 24, 2008 at 4:52 PM, Fawzi Amadu [EMAIL PROTECTED] wrote: Sorry for the premature posting I mistakenly hit the enter key. Now to my question

Re: Using Max Function on more that two data values

2008-09-24 Thread s. isaac dealey
He added the order by desc, so that it sorted the highest to lowest.. Had it been asc, you would have gotten the four smallest returns. Parkhill makes the layup! :) He's right the order by TotalVotes desc in the query sorted the results highest to lowest and then maxrows=1 just cut it down to

Inserting an image in a PDF?

2008-09-24 Thread Aaron C
Is it possible to insert an image (e.g. jpg) into a PDF using ColdFusion 8? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

How Do I treat this Changing Variable?

2008-09-24 Thread Fawzi Amadu
Hello, I am writing an application that is tracking the results arriving from various selected stations (230 of them). My application will dynamically displays only stations for which results have been received. I plan to have my page refresh every 5 minutes to update the results list. Now

Re: Inserting an image in a PDF?

2008-09-24 Thread Ryan Stille
Aaron C wrote: Is it possible to insert an image (e.g. jpg) into a PDF using ColdFusion 8? Yes, since CF7. cfdocument img src=file:///home/data/whatever/image.jpg /cfdocument Or do you mean into an *existing* PDF? In that case I think you'd do something like above, then use the new

Gmail blocking CF8 as x-mailer

2008-09-24 Thread James Wolfe
I think that Gmail may have just changed their spam filters to identify as spam any email with the following header: X-Mailer: ColdFusion 8 Application Server This would, of course, prove very bad for anyone who uses CF8 and sends email out. The questions are: A. Have any of you

Re: Securing session

2008-09-24 Thread heath stein
Yes, that was not one of the smartest comments i have ever posted, I was trying to come up with a solution for getting around having to send cookies through ssl to make them secure. But my solution was not very thought out. Dave, That is one of the scariest things I ever read :) Heath -

Re: Securing session

2008-09-24 Thread Al Musella, DPM
I didn't mean your comment was scary - I was referring to the article about how to steal sessions.. At 09:07 PM 9/24/2008, heath stein wrote: Yes, that was not one of the smartest comments i have ever posted, I was trying to come up with a solution for getting around having to send

using anchors

2008-09-24 Thread Eric Roberts
I am having a bit of an issue here... I have a column link that set off a javascript form submission. This process updates the status of a record. What I want is for the page to return to the location of the link you just clicked on. I set the anchor (I tried both a label=#xx#/a and div

Re: using anchors

2008-09-24 Thread AJ Mercer
I have found in the past that there needs to be content on the tag that has the anchortry putting in nbsp; On Thu, Sep 25, 2008 at 11:04 AM, Eric Roberts [EMAIL PROTECTED] wrote: I am having a bit of an issue here... I have a column link that set off a javascript form submission. This

RE: using anchors

2008-09-24 Thread Eric Roberts
I tried wrapping it around the data to no avail :-( Eric /*-Original Message- /*From: AJ Mercer [mailto:[EMAIL PROTECTED] /*Sent: Wednesday, September 24, 2008 9:08 PM /*To: CF-Talk /*Subject: Re: using anchors /* /*I have found in the past that there needs to be content on the tag that

Re: using anchors

2008-09-24 Thread Azadi Saryev
usually an anchor tag is a name=somename, not a label=.. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Eric Roberts wrote: I tried wrapping it around the data to no avail :-( Eric ~| Adobe® ColdFusion® 8

Amazon S3 change ACL

2008-09-24 Thread Andrew Grosset
I am trying to change the access policy on an existing bucket. I am using Amazon S3 REST Wrapper by Joe Danziger. Using his cfc I can create, upload and delete buckets and objects - everything works! I added a function getACL() that will retrieve the ACL on a bucket (which works): cffunction

Re: Gmail blocking CF8 as x-mailer

2008-09-24 Thread Azadi Saryev
i just tried sending the following and it worked fine, got it in my inbox. cfmail server=...# username=... password=... from=... to=[EMAIL PROTECTED] subject=sdkjfhksjdeoiuroeir skdjfhdkjfhiuoeritueo dfjhgkdjfg rtuieurtyieur /cfmail Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ James