Help With CF8 Regular Expressions

2010-05-03 Thread Robert Nurse

Hi All,

I'm trying to come up with a regular expression for CF8 that finds links in 
text and inserts a call to a pop up window in the on click event.  I came up 
with the following that works in Javascript:

myStr.replace(/\s*a\s+([hH][rR][eE][fF])\s*=/g, 'a 
onclick=popwin(this.href); return false; href=');

I now need to convert this to something CF will use and I'm failing miserably. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333291
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: Help With CF8 Regular Expressions

2010-05-03 Thread Jason Fisher

how about simplifying?

replaceNoCase(myStr, 'a ', 'a onclick=popwin(this.ref); return false; 
', 'all');

[note the training space in the test and the replacement]



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333292
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Matthew Lowrey

This is getting to be quite an interesting challenge.  All the examples I've 
seen logically make sense but none of them have worked so far.  I will say I'm 
learning quite a bit from everyone's knowledge/wisdom.  I will try and list 
here all the different methods I've tried out and have failed.  First, the 
method I've used (and still using):

cfif isDefined(form.myVal)cfqueryparam cfsqltype=cf_sql_varchar 
value=#form.myVal# maxlength=50cfelsecfqueryparam null=yes/cfif

Examples that have not worked (unless I cfparam the variable):

cfqueryparam value=#form.myVar# null='#not IsDefined(form.myVar)#'
cfqueryparam value=#form.myVar# null=#not IsDefined('form.myVar')#
cfqueryparam value=#form.myVar# null=#not IsDefined('form.myVar')#
cfqueryparam value=#form.myVar# null=#not Len(Trim(form.myVar))# / 
cfqueryparam type=cf_sql_varchar value=#form.myVar# isNull=#NOT 
isDefined(form.myVar)# / (actually got a different error on this one and 
couldn't figure it out for some reason  Attribute validation error for tag 
CFQUERYPARAM. Usually it's because I'm passing the wrong cf_sql_type, but I 
took that out and it still gave me the error)
cfqueryparam type=cf_sql_varchar value=#form.myVar# 
isNull=#yesNoFormat(NOT isDefined(form.myVar)# /
cfqueryparam type=cf_sql_varchar value=#form.myVar# 
isNull=#YesNoFormat(NOT Len(Trim(form.myVar)))# /
cfqueryparam type=cf_sql_varchar value=#form.myVar# 
isNull=#yesNoFormat(not structKeyExists(form, 'myVar'))# /
cfqueryparam type=cf_sql_varchar value=#form.myVar# 
isNull=#yesNoFormat(not len(trim(form.myVar)))# /

I went ahead and re-tried all these examples above.  Most (if not all) these 
examples should work logically.  Also, for the record I'm currently using:
Coldfusion 9
SQL Server 2005

Thank again for everybody's help and wisdom!

Best Regards
Matt..

  what Dominic meant is that value=#somevalue# in cfqueryparam tag
 cause the problem when somevalue var does not exist, not the
 isDefined(somevalue) part.

Oh, well, yes - that would cause a problem! I didn't even think about that 
part.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333293
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Brian Kotek

I think the point is that if you're going to use any of those techniques,
you DO have to param the variable, or use some other mechanism to make sure
the variable exists. Otherwise the code in your value attribute will
always fail when the variable doesn't exist. Make sense?

On Mon, May 3, 2010 at 11:12 AM, Matthew Lowrey rid...@gmail.com wrote:


 This is getting to be quite an interesting challenge.  All the examples
 I've seen logically make sense but none of them have worked so far.  I will
 say I'm learning quite a bit from everyone's knowledge/wisdom.  I will try
 and list here all the different methods I've tried out and have failed.
  First, the method I've used (and still using):

 cfif isDefined(form.myVal)cfqueryparam cfsqltype=cf_sql_varchar
 value=#form.myVal# maxlength=50cfelsecfqueryparam null=yes/cfif

 Examples that have not worked (unless I cfparam the variable):

 cfqueryparam value=#form.myVar# null='#not IsDefined(form.myVar)#'
 cfqueryparam value=#form.myVar# null=#not IsDefined('form.myVar')#
 cfqueryparam value=#form.myVar# null=#not IsDefined('form.myVar')#
 cfqueryparam value=#form.myVar# null=#not Len(Trim(form.myVar))# /
 cfqueryparam type=cf_sql_varchar value=#form.myVar# isNull=#NOT
 isDefined(form.myVar)# / (actually got a different error on this one and
 couldn't figure it out for some reason  Attribute validation error for tag
 CFQUERYPARAM. Usually it's because I'm passing the wrong cf_sql_type, but I
 took that out and it still gave me the error)
 cfqueryparam type=cf_sql_varchar value=#form.myVar#
 isNull=#yesNoFormat(NOT isDefined(form.myVar)# /
 cfqueryparam type=cf_sql_varchar value=#form.myVar#
 isNull=#YesNoFormat(NOT Len(Trim(form.myVar)))# /
 cfqueryparam type=cf_sql_varchar value=#form.myVar#
 isNull=#yesNoFormat(not structKeyExists(form, 'myVar'))# /
 cfqueryparam type=cf_sql_varchar value=#form.myVar#
 isNull=#yesNoFormat(not len(trim(form.myVar)))# /

 I went ahead and re-tried all these examples above.  Most (if not all)
 these examples should work logically.  Also, for the record I'm currently
 using:
 Coldfusion 9
 SQL Server 2005

 Thank again for everybody's help and wisdom!

 Best Regards
 Matt..




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Dave Watts

 I think the point is that if you're going to use any of those techniques,
 you DO have to param the variable, or use some other mechanism to make sure
 the variable exists. Otherwise the code in your value attribute will
 always fail when the variable doesn't exist. Make sense?

Yes. This is the part that, in my initial reading, I didn't even see.
This doesn't have anything to do with CFQUERYPARAM per se, it's just
that you can't reference a variable that doesn't exist at all.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Jason Fisher

CFParam, unless you want to go the multiline route:

cfif structKeyExists(form, myVar)
cfqueryparam type=cf_sql_integer value=#form.myVar# /

cfelse
cfqueryparam type=cf_sql_integer value= isNull=Yes /

/cfif

But you can't go cfqueryparam type=cf_sql_integer value=#form.myVar# 
isNull=#NOT
isNumeric(form.myVar)# /
because value=#form.myVar# will fail to compile if form.myVar doesn't 
exist.



From: Dave Watts dwa...@figleaf.com
Sent: Monday, May 03, 2010 12:05 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: cfqueryparam question (null attribute)

 I think the point is that if you're going to use any of those 
techniques,
 you DO have to param the variable, or use some other mechanism to make 
sure
 the variable exists. Otherwise the code in your value attribute will
 always fail when the variable doesn't exist. Make sense?

Yes. This is the part that, in my initial reading, I didn't even see.
This doesn't have anything to do with CFQUERYPARAM per se, it's just
that you can't reference a variable that doesn't exist at all.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333296
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help With CF8 Regular Expressions

2010-05-03 Thread Robert Nurse

how about simplifying?

replaceNoCase(myStr, 'a ', 'a onclick=popwin(this.ref); return false; 
', 'all');

[note the training space in the test and the replacement] 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333297
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help With CF8 Regular Expressions

2010-05-03 Thread Robert Nurse

how about simplifying?

replaceNoCase(myStr, 'a ', 'a onclick=popwin(this.ref); return false; 
', 'all');

[note the training space in the test and the replacement]

This doesn't work for:

   a href=somelocation.cfm  Some Place/a

My original regex took care of all white space before the a, and any amount 
of white space between the a and href 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333298
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse on Mac with Subclipse -- unstable?

2010-05-03 Thread Kris Jones

Subclipse doesn't have an auto-detector that I know of. That would
suggest that you have a subclipse client version that is compatible
with SVN 1.5.6? That may not be the correct version.


 My svn his hosted on projectLocker and can't find what version they're
 using, so I have a support request in to verify it.  It's connecting with a
 connecto for SVN 1.5.6, which I assume it auto-detected (?).

 Scott

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFEclipse on Mac with Subclipse -- unstable?

2010-05-03 Thread Kris Jones

Oh, and here is a link to the old Tigris site for downloads:
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

This link shows all the various client update site archives. Saved me
when I had to link against Subversion 1.4.2:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240expandFolder=2240folderID=0

Cheers,
Kris


 Subclipse doesn't have an auto-detector that I know of. That would
 suggest that you have a subclipse client version that is compatible
 with SVN 1.5.6? That may not be the correct version.


 My svn his hosted on projectLocker and can't find what version they're
 using, so I have a support request in to verify it.  It's connecting with a
 connecto for SVN 1.5.6, which I assume it auto-detected (?).

 Scott


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:00
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Sean Corfield

Since you're on CF9:

cfqueryparam value=#isDefined('form.myVar')?form.myVar:''#
null=#!isDefined('form.myVar')# /

The (new in CF9) ?: operator only evaluates the true-expr if the
condition is true.

On Mon, May 3, 2010 at 8:12 AM, Matthew Lowrey rid...@gmail.com wrote:
 This is getting to be quite an interesting challenge.  All the examples I've 
 seen logically make sense but none of them have worked so far.  I will say 
 I'm learning quite a bit from everyone's knowledge/wisdom.  I will try and 
 list here all the different methods I've tried out and have failed.  First, 
 the method I've used (and still using):

 cfif isDefined(form.myVal)cfqueryparam cfsqltype=cf_sql_varchar 
 value=#form.myVal# maxlength=50cfelsecfqueryparam null=yes/c

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:01
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


How to protect PDF documents from direct access

2010-05-03 Thread col...@uci.edu col...@uci.edu

Is there some easy way to protect PDF (and perhaps other kinds of documents) 
from sideaways access?

In other words, after building login pages, protecting html/cfm pages from 
direct access, etc.; someone can still directly access a document with a direct 
URL, like

www.xxx.com/.pdf

Any quick and easy ideas appreciated.

Rick. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:02
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access

2010-05-03 Thread Dave Watts

 Is there some easy way to protect PDF (and perhaps other kinds of documents) 
 from sideaways access?

 In other words, after building login pages, protecting html/cfm pages from 
 direct access, etc.; someone can still directly access a
 document with a direct URL, like

 www.xxx.com/.pdf

You can remove them from web-accessible directories and (a) serve them
with CFCONTENT, or (b) create a temporary symlink of some sort using
CFEXECUTE.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:03
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access

2010-05-03 Thread Mark Mandel

Keep them off the webroot, and then serve them up with cfcontent or apache
mod_xsendfile

Mark

On Tue, May 4, 2010 at 8:57 AM, col...@uci.edu col...@uci.edu 
col...@uci.edu wrote:


 Is there some easy way to protect PDF (and perhaps other kinds of
 documents) from sideaways access?

 In other words, after building login pages, protecting html/cfm pages from
 direct access, etc.; someone can still directly access a document with a
 direct URL, like

 www.xxx.com/.pdf

 Any quick and easy ideas appreciated.

 Rick.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:04
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: How to protect PDF documents from direct access

2010-05-03 Thread brad

Store them outside your web root and serve them up with cfcontent.  Just
remember a CF thread is used for the duration of the download.

~Brad


 Original Message 
Subject: How to protect PDF documents from direct access
From: col...@uci.edu col...@uci.edu col...@uci.edu
Date: Mon, May 03, 2010 5:57 pm
To: cf-talk cf-talk@houseoffusion.com


Is there some easy way to protect PDF (and perhaps other kinds of
documents) from sideaways access?

In other words, after building login pages, protecting html/cfm pages
from direct access, etc.; someone can still directly access a document
with a direct URL, like

www.xxx.com/.pdf

Any quick and easy ideas appreciated.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:05
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfqueryparam question (null attribute)

2010-05-03 Thread Matthew Lowrey

YA  SEAN WINS THE PRIZE!! Thank you Mr. Corfield.  This 
worked beautifully and better yet I didn't have to set anything or cfif 
anything, just one tag with everything all inside of it.  Thanks a million x 
yourVal

Matt...

 Since you're on CF9:
 
 cfqueryparam value=#isDefined('form.myVar')?form.myVar:''#
 null=#!isDefined('form.myVar')# /
 
 The (new in CF9) ?: operator only evaluates the true-expr if the
 condition is true.
 
 On Mon, May 3, 2010 at 8:12 AM, Matthew Lowrey rid...@gmail.com 
 wrote:
  This is getting to be quite an interesting challenge.  All the 
 examples I've seen logically make sense but none of them have worked 
 so far.  I will say I'm learning quite a bit from everyone's 
 knowledge/wisdom.  I will try and list here all the different methods 
 I've tried out and have failed.  First, the method I've used (and 
 still using):
 
  cfif isDefined(form.myVal)cfqueryparam 
 cfsqltype=cf_sql_varchar value=#form.myVal# 
 maxlength=50cfelsecfqueryparam 
null=yes/c

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:06
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help With CF8 Regular Expressions

2010-05-03 Thread Jason Fisher

OK, that's some pretty sloppy HTML, but let's see.  Same principal 
should work:

myVar = reReplaceNoCase(myVar, '\s*a ', 'a onclick=popwin(this.ref); 
return false; ', 'all');


On 5/3/2010 1:13 PM, Robert Nurse wrote:

 how about simplifying?

 replaceNoCase(myStr, 'a ', 'a onclick=popwin(this.ref); return false;
 ', 'all');

 [note the training space in the test and the replacement]
  
 This doesn't work for:

 a href=somelocation.cfmSome Place/a

 My original regex took care of all white space before the a, and any amount 
 of white space between the a and href

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:07
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Convert image to its negative

2010-05-03 Thread Les Irvin

Does anyone know of a CF custom tag that will convert an image to its
negative?  For example, converting a medical x-ray image to its
positive, etc.

Thanks in advance for any help,
Les

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:08
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help With CF8 Regular Expressions

2010-05-03 Thread denstar

Another option is using Javascript to bind the a element onclick events.

It's super simple with both Dojo (the best javascript library on the
face of the planet) and something a little more pedestrian, like
jQuery.  :D

Generally the JS route doesn't require you to change as much stuff
(and you can limit the bind to links within certain DIV elements and
whatnot).

:Den

-- 
Nothing is so fatiguing as the eternal hanging on of an uncompleted task.
William James

On Mon, May 3, 2010 at 5:16 AM, Robert Nurse wrote:

 Hi All,

 I'm trying to come up with a regular expression for CF8 that finds links in 
 text and inserts a call to a pop up window in the on click event.  I came up 
 with the following that works in Javascript:

 myStr.replace(/\s*a\s+([hH][rR][eE][fF])\s*=/g, 'a 
 onclick=popwin(this.href); return false; href=');

 I now need to convert this to something CF will use and I'm failing miserably.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:09
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Convert image to its negative

2010-05-03 Thread Wil Genovese

Use the ImageNegative(name) function in CF.  

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_33.html#5164718



Wil Genovese

One man with courage makes a majority.
-Andrew Jackson

A fine is a tax for doing wrong. A tax is a fine for doing well. 

On May 3, 2010, at 7:05 PM, Les Irvin wrote:

 
 Does anyone know of a CF custom tag that will convert an image to its
 negative?  For example, converting a medical x-ray image to its
 positive, etc.
 
 Thanks in advance for any help,
 Les
 
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:10
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access

2010-05-03 Thread Rick Colman

I am on a shared host, so moving outside the web directories is not 
practical.

On 5/3/2010 4:09 PM, Dave Watts wrote:

 Is there some easy way to protect PDF (and perhaps other kinds of documents) 
 from sideaways access?

 In other words, after building login pages, protecting html/cfm pages from 
 direct access, etc.; someone can still directly access a
 document with a direct URL, like

 www.xxx.com/.pdf
  
 You can remove them from web-accessible directories and (a) serve them
 with CFCONTENT, or (b) create a temporary symlink of some sort using
 CFEXECUTE.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:11
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access

2010-05-03 Thread Mark Mandel

Rename them with a .cfm extension - put a Application.cfm in the root of the
dir with a cfabort in it.

Then push them out through cfcontent and using HTTP Headers tell the
browser the name of the file without the .cfm extension.

Mark

On Tue, May 4, 2010 at 12:53 PM, Rick Colman rcol...@cox.net wrote:


 I am on a shared host, so moving outside the web directories is not
 practical.

 On 5/3/2010 4:09 PM, Dave Watts wrote:
 
  Is there some easy way to protect PDF (and perhaps other kinds of
 documents) from sideaways access?
 
  In other words, after building login pages, protecting html/cfm pages
 from direct access, etc.; someone can still directly access a
  document with a direct URL, like
 
  www.xxx.com/.pdf
 
  You can remove them from web-accessible directories and (a) serve them
  with CFCONTENT, or (b) create a temporary symlink of some sort using
  CFEXECUTE.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  http://training.figleaf.com/
 
  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
  GSA Schedule, and provides the highest caliber vendor-authorized
  instruction at our training centers, online, or onsite.
 
 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:12
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access

2010-05-03 Thread Mark Mandel

...or I could also say ;o) get off a shared host.

Mark

On Tue, May 4, 2010 at 1:00 PM, Mark Mandel mark.man...@gmail.com wrote:

 Rename them with a .cfm extension - put a Application.cfm in the root of
 the dir with a cfabort in it.

 Then push them out through cfcontent and using HTTP Headers tell the
 browser the name of the file without the .cfm extension.

 Mark


 On Tue, May 4, 2010 at 12:53 PM, Rick Colman rcol...@cox.net wrote:


 I am on a shared host, so moving outside the web directories is not
 practical.

 On 5/3/2010 4:09 PM, Dave Watts wrote:
 
  Is there some easy way to protect PDF (and perhaps other kinds of
 documents) from sideaways access?
 
  In other words, after building login pages, protecting html/cfm pages
 from direct access, etc.; someone can still directly access a
  document with a direct URL, like
 
  www.xxx.com/.pdf
 
  You can remove them from web-accessible directories and (a) serve them
  with CFCONTENT, or (b) create a temporary symlink of some sort using
  CFEXECUTE.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  http://training.figleaf.com/
 
  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
  GSA Schedule, and provides the highest caliber vendor-authorized
  instruction at our training centers, online, or onsite.
 
 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:13
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to protect PDF documents from direct access [spamtrap bayes][spamtrap heur]

2010-05-03 Thread Paul Hastings

On 5/4/2010 10:01 AM, Mark Mandel wrote:

 ...or I could also say ;o) get off a shared host.

actually a decent shared host should provide a dir w/your web root under that. 
i 
mean where would people put their access databases ;-)

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:14
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help With CF8 Regular Expressions

2010-05-03 Thread James Holmes

I hope you have your flameproof suit handy :-P

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


On 4 May 2010 08:19, denstar valliants...@gmail.com wrote:


  It's super simple with both Dojo (the best javascript library on the
 face of the planet) and something a little more pedestrian, like
 jQuery.  :D


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:15
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm