Re: Packing directory output to a list

2009-09-25 Thread Ultimator Ultimator

ok this problem has been solved it is one of my directories acting up. 

~|
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:326618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cffile action=delete problems

2009-09-25 Thread Will Swain

Your query needs a name - so you can refer to it later.

CFQUERY DATASOURCE=#Application.DSN# NAME=qGetDocument SELECT * FROM
documnents WHERE docid = CFQUERYPARAM CFSQLTYPE=CF_SQL_INTEGER
Value=#docid#
maxlength=4
/CFQUERY

Assuming the filename is docname, and your file lives in F:\downloads\:

cffile action=delete
file=F:\downloads\#qGetDocument.docname#

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: 25 September 2009 10:00
To: cf-talk
Subject: cffile action=delete problems


Hi

I have the following script that removes a record from a database.  This
database record contains document information i.e. docid, docname,
docpath etc.   

CFQUERY DATASOURCE=#Application.DSN# SELECT * FROM documnents WHERE
docid = CFQUERYPARAM CFSQLTYPE=CF_SQL_INTEGER Value=#docid#
maxlength=4
/CFQUERY

However how can I modify the above so it actually removes the document from
the filesystem?  At present it only removes the record from the database,
and the file is still left on the file server.

I have tried the following

cffile action=delete
file=F:\downloads\#docpath#

But I am getting the error

---
Variable DOCPATH is undefined.  
 
34 : 
35 : cffile action=delete
36 :file=F:\downloads\#docpath#





~|
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:326620
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cffile action=delete problems

2009-09-25 Thread Ian Vaughan

Hi

I have the following script that removes a record from a database.  This
database record contains document information i.e. docid, docname,
docpath etc.   

CFQUERY DATASOURCE=#Application.DSN#
SELECT * FROM documnents
WHERE docid = CFQUERYPARAM CFSQLTYPE=CF_SQL_INTEGER Value=#docid#
maxlength=4
/CFQUERY

However how can I modify the above so it actually removes the document
from the filesystem?  At present it only removes the record from the
database, and the file is still left on the file server.

I have tried the following

cffile action=delete
file=F:\downloads\#docpath#

But I am getting the error

---
Variable DOCPATH is undefined.  
 
34 : 
35 : cffile action=delete
36 :file=F:\downloads\#docpath#



~|
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:326619
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cffile action=delete problems

2009-09-25 Thread Ian Vaughan

Thanks Will, that's great

-Original Message-
From: Will Swain [mailto:w...@hothorse.com] 
Sent: 25 September 2009 10:08
To: cf-talk
Subject: RE: cffile action=delete problems


Your query needs a name - so you can refer to it later.

CFQUERY DATASOURCE=#Application.DSN# NAME=qGetDocument SELECT *
FROM
documnents WHERE docid = CFQUERYPARAM CFSQLTYPE=CF_SQL_INTEGER
Value=#docid#
maxlength=4
/CFQUERY

Assuming the filename is docname, and your file lives in F:\downloads\:

cffile action=delete
file=F:\downloads\#qGetDocument.docname#

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: 25 September 2009 10:00
To: cf-talk
Subject: cffile action=delete problems


Hi

I have the following script that removes a record from a database.  This
database record contains document information i.e. docid, docname,
docpath etc.   

CFQUERY DATASOURCE=#Application.DSN# SELECT * FROM documnents WHERE
docid = CFQUERYPARAM CFSQLTYPE=CF_SQL_INTEGER Value=#docid#
maxlength=4
/CFQUERY

However how can I modify the above so it actually removes the document
from
the filesystem?  At present it only removes the record from the
database,
and the file is still left on the file server.

I have tried the following

cffile action=delete
file=F:\downloads\#docpath#

But I am getting the error

---
Variable DOCPATH is undefined.  
 
34 : 
35 : cffile action=delete
36 :file=F:\downloads\#docpath#







~|
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:326622
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Applications and constant connection

2009-09-25 Thread Paul Vernon

 
 Our company is looking for a solution to a problem we are sure is very
 common
 
 - We have various documents stored within our application on our
 internet server
 - our employees connect to the application to access these documents
 - the problem is... sometimes our employees are at client sites that do
 not have internet connection and therefore cannot access these
 documents, which makes it very hard to conduct our business sometimes
 
 we would appreciate your thoughts on any possible solutions!
 

Whilst this is completely off topic. Have you considered giving your
off-site employees 3G based mobile internet?

I simply plug in my phone and use it as a 3G modem when needed giving full
mobile broadband goodness.

Paul



~|
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:326623
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cf_barcode height not working in Firefox:

2009-09-25 Thread Richard White

Hi

we are using the tag cf_barcode and although we can change the height in IE it 
is not changing in firefox. The code that sets the height is as follows (note: 
attributes.barheight). can anyone spot what could be causing this?

span 
style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px
 solid; border-color: black; height: 
#Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span

thanks

richard 

~|
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:326624
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Applications and constant connection

2009-09-25 Thread Richard White

Hi

Our company is looking for a solution to a problem we are sure is very common

- We have various documents stored within our application on our internet server
- our employees connect to the application to access these documents
- the problem is... sometimes our employees are at client sites that do not 
have internet connection and therefore cannot access these documents, which 
makes it very hard to conduct our business sometimes

we would appreciate your thoughts on any possible solutions!

thanks

richard 

~|
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:326621
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Applications and constant connection

2009-09-25 Thread Azadi Saryev

depending where you and your clients are located, you may also use one
of the 'pocket wi-fi' services like verizon's wireless MiFi:
http://news.digitaltrends.com/news-article/19896/verizon-wireless-mifi-lets-wi-fi-devices-tap-3g-connectivity

another option is to just issue all your employees with a usb flash
drive with all the docs on it :)

yet another option is to pitch this requirement to online storage
companies (i.e. Dropbox and the like) and wait until they develop a
corporate solution which allows companies to create accounts for
employees, assign and maintain per-user privileges/access rights and has
an api to access it remotely for uploading new files...

hmm... not a bad idea, eh?


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 25/09/2009 18:46, Paul Vernon wrote:
   
 Our company is looking for a solution to a problem we are sure is very
 common

 - We have various documents stored within our application on our
 internet server
 - our employees connect to the application to access these documents
 - the problem is... sometimes our employees are at client sites that do
 not have internet connection and therefore cannot access these
 documents, which makes it very hard to conduct our business sometimes

 we would appreciate your thoughts on any possible solutions!

 
 Whilst this is completely off topic. Have you considered giving your
 off-site employees 3G based mobile internet?

 I simply plug in my phone and use it as a 3G modem when needed giving full
 mobile broadband goodness.

 Paul



 

~|
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:326625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cf_barcode height not working in Firefox:

2009-09-25 Thread Azadi Saryev

see if adding display:inline-block to the span's style, or setting
line-height property, helps.
iirc, span, by default,  is not a block-level element, and thus uses the
line-height of its parent for its height...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 25/09/2009 18:50, Richard White wrote:
 Hi

 we are using the tag cf_barcode and although we can change the height in IE 
 it is not changing in firefox. The code that sets the height is as follows 
 (note: attributes.barheight). can anyone spot what could be causing this?

 span 
 style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px
  solid; border-color: black; height: 
 #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span

 thanks

 richard 

 

~|
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:326626
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cf_barcode height not working in Firefox:

2009-09-25 Thread Richard White

thanks for your reply, this has sorted out the height issue, although the width 
has increased significatly (again only in Mozilla but works fine in IE) 

do you know what would cause this?

thanks

see if adding display:inline-block to the span's style, or setting
line-height property, helps.
iirc, span, by default,  is not a block-level element, and thus uses the
line-height of its parent for its height...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 25/09/2009 18:50, Richard White wrote:
 

~|
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:326627
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How to clear local cache when users logout

2009-09-25 Thread Imperial, Robert

I tend wrap content in a cfif SESSION.Validatedstuffcfelsesend them
back to login/cfif type deal, no need to clear anything client side
(even if you could).

Bob 
-Original Message-
From: Nathan Chen [mailto:nathan.c...@cu.edu] 
Sent: Thursday, September 24, 2009 6:54 PM
To: cf-talk
Subject: How to clear local cache when users logout


All:

 

How do you clear users'  local cache after they log out and the session
variable is cleared? I can clear the session on the server, but if users
click the Back button, they can still get back and that's not what I
want. This must have been discussed but I guess I missed.

 

Nathan Chen





~|
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:326628
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cftextarea richtext=true not displaying after clicking ajaxlink

2009-09-25 Thread Shadeyoj Shadeyoj

Solved. If any runs in to this quirk. I changed the cfinputs to inputs and it 
worked. I also noticed that if i placed the cfinputs below the textarea it 
worked as well.

 I can't get the cftextarea richtext=true to display after clicking 
 ajaxlink (or coldfusion.navigate) The cftextarea renders as a textarea.
 
 Page B works independently. 
 
 Page A
 cfdiv id=contentDiv
   a href=#AjaxLink('/site/filesystem/ria/areapagechange.
 cfm?aid=#areaItem.aid#')# 
   Please edit this text

 /a
 /cfdiv
 
 Page B
 cfform name=breakfastForm method=post

 
 div id=submitDiv
   
 cfinput type=submit value=exit name=close
   
 cfinput type=submit value=save name=saveChange
 
 /div
 

 

 bArea page:/bbr

 cftextarea richtext=true name=description id=descriptionid 
   
 toolbar=Basic  wrap=hard width=800 height=1000 
 value=#areaItem.Longdescription# /
 /cfform 


~|
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:326629
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Its Friday please dont be mad! - checkbox which corresponded with the value?

2009-09-25 Thread Glyn Jackson

Going a bit mad! I should know how to do this but my brain is not working 
today

when the form below is submitted if the checkbox is checked I want to update 
the option on the valueId (which is a hidden field) and keep looping all the 
results only updating option have is ticked. however once submitted how will I 
know what checkbox ticked corresponded with what valueId?


cfoutput query=rc.option group=name
  tr class=tableBG2
td class=borderleftnbsp;/td
tdb#rc.option.name#/b/td
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  
 cfoutput
 cfset current = 
storeService.getCurrentOptions(prodID=#rc.ProdcutBean.getprodId()#,valueID=#rc.option.valueID#)
!--- cfdump var=#current#---
  tr
td class=borderleftnbsp; input type=checkbox cfif current.idexists 
eq 1 checked=checked /cfif //td
tdnbsp;nbsp;nbsp;nbsp;#rc.option.value#/td
td+ pound; input value=#NumberFormat(current.optionPrice,99.99)# 
type=text name=optionPrice size=3 / extra/td
tdnbsp;/td
tdnbsp;/td
  /tr
  input type=hidden value=valueId name=#rc.option.valueId# /
 /cfoutput  
  
  
/cfoutput 

~|
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:326630
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Its Friday please dont be mad! - checkbox which corresponded with the value?

2009-09-25 Thread Rob Parkhill

You would give it an ID, that would correspond to the ID of the ValueID you
were looping on
so

cfoutput
 cfset current =
storeService.getCurrentOptions(prodID=#rc.ProdcutBean.getprodId()#,valueID=#rc.option.valueID#)
!--- cfdump var=#current#---
 tr
   td class=borderleftnbsp; input id=checker#valueID#
type=checkbox cfif current.idexists eq 1 checked=checked /cfif
//td
   tdnbsp;nbsp;nbsp;nbsp;#rc.option.value#/td
   td+ pound; input value=#NumberFormat(current.optionPrice,99.99)#
type=text name=optionPrice#valueID# size=3 / extra/td
   tdnbsp;/td
   tdnbsp;/td
 /tr
 input type=hidden value=valueId name=#rc.option.valueId# /
 /cfoutput

Then on the processing page, you need to loop over the form fields/list of
valueids and see what ones are checked

so, you can evaluate the form names dynamically with:

cfif structkeyExists(form,'checker[currentrecord]')

do whatever

/cfif

HTH

Rob

On Fri, Sep 25, 2009 at 10:24 AM, Glyn Jackson
glyn.jack...@newebia.co.ukwrote:


 Going a bit mad! I should know how to do this but my brain is not working
 today

 when the form below is submitted if the checkbox is checked I want to
 update the option on the valueId (which is a hidden field) and keep looping
 all the results only updating option have is ticked. however once submitted
 how will I know what checkbox ticked corresponded with what valueId?


 cfoutput query=rc.option group=name
  tr class=tableBG2
td class=borderleftnbsp;/td
tdb#rc.option.name#/b/td
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr

  cfoutput
  cfset current =
 storeService.getCurrentOptions(prodID=#rc.ProdcutBean.getprodId()#,valueID=#rc.option.valueID#)
 !--- cfdump var=#current#---
  tr
td class=borderleftnbsp; input type=checkbox cfif
 current.idexists eq 1 checked=checked /cfif //td
tdnbsp;nbsp;nbsp;nbsp;#rc.option.value#/td
td+ pound; input value=#NumberFormat(current.optionPrice,99.99)#
 type=text name=optionPrice size=3 / extra/td
tdnbsp;/td
tdnbsp;/td
  /tr
  input type=hidden value=valueId name=#rc.option.valueId# /
  /cfoutput


 /cfoutput

 

~|
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:326631
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Invoking components, methods and storing instance in application scope

2009-09-25 Thread Tony Bentley

I am building an application where I want to eliminate instantiating the same 
component more than once per application. I thought it would be a good idea to 
setup all of the methods through the application scope:

application.getters = createObject(component,cfc.GetterQueries);

This way I am using what I believe is Singleton Patterns for single 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 scope:

contacts = application.getters.getContacts();

Is there any reason why this would not be a good practice? 

~|
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:326632
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: getting min value based on inputs

2009-09-25 Thread Greg Morphis

They use it for 100+ line accounts. Umm yeah, not going to happen.
Thank for your time though Brad, good solution for learning purposes.

On Tue, Sep 8, 2009 at 10:51 AM, Greg Morphis gmorp...@gmail.com wrote:
 Thanks brad! We use Oracle but I should be able to adapt your solution to it.
 I'd like to see a CF solution mainly to see the speed difference. The
 database solution should blow away the CF solution but I'm curious
 none-the-less.
 Maybe using your solution I can manage something like that too

 On Mon, Sep 7, 2009 at 12:35 PM, b...@bradwood.com wrote:

 Ok Greg, I went ahead and just stuck the code and explanation into a
 blog post since it was kind of long.

 http://www.codersrevolution.com/index.cfm/2009/9/7/Phone-Plan-Matchup-SQL-Brute-Force-Method

 Keep in mind this really just one way to do it, and it might not be the
 best.  I also considered using some recursion to generate the possible
 combinations in CF, but this method was a little easier.  Use it as a
 starting point or don't use it at all.  :)

 Thanks.

 ~Brad

  Original Message 
  Subject: Re: getting min value based on inputs
  From: Greg Morphis gmorp...@gmail.com
  Date: Sun, September 06, 2009 10:20 am
  To: cf-talk cf-talk@houseoffusion.com


  The idea is that all lines add up to the total minutes entered in any
  possible way because in the end they'll share the minutes.
  1 line at 10,000 minutes would fail because there are no plans of that
 size.
  Priority is on cost, not so much on minutes.
  For example if you entered 9100 minutes and 10 lines the solution
  would return 9200 minutes.
  I'll have to get the exact plans/minutes on Tuesday to provide the
 solution.
  And if multiple options add up to the same cost then yeah, one at
  random would work because it meets the requirements.

  Thanks!



 

~|
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:326633
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


methods other than GET or POST

2009-09-25 Thread Claude Schneegans

Hi,

I recently found in my error logs a request to a page using 
METHOD=OPTIONS...
I didn't even know this couls exist.
Apparently, thes requests are sent by Microsoft Office, in this 
occurrence, while receiving some CSV file.
This caused an error in my system because no parameter the template was 
expecting in the URL or the FORM scope
was present.
Obviously, my application does not support these requests, and I don't 
intend to do it.

I haven't find any procedure that would limit methods at server level in 
MSIS.

Then I'm planing to add some check in my Application.cfm to limit 
requests to the only type I support,
ie POST and GET, ie:
CFIF listFindNocase(POST,GET, CGI.REQUEST_METHOD) EQ 0
  cfheader statuscode=405 statustext=Method Not Allowed
  CFABORT
/CFIF

But I see many other types of requests
( http://www.askapache.com/online-tools/request-method-scanner/ )
including MOVE, COPY or DELETE!

My question: is: it safe to allow only GET and POST?
What is the best practice in CF?

~|
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:326634
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Applications and constant connection

2009-09-25 Thread Richard White

thanks for your replies

the 3G seems the best way to go and found there are now 3G/GPRS USB data cards, 
so this is a combination of both your suggestions :) 

thanks for your help



 Hi
 
 Our company is looking for a solution to a problem we are sure is very 
 common
 
 - We have various documents stored within our application on our 
 internet server
 - our employees connect to the application to access these documents
 - the problem is... sometimes our employees are at client sites that 
 do not have internet connection and therefore cannot access these 
 documents, which makes it very hard to conduct our business sometimes
 
 we would appreciate your thoughts on any possible solutions!
 
 thanks
 
 richard 


~|
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:326635
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Applications and constant connection

2009-09-25 Thread Judah McAuley

You might also take a look at developing an Air application that
understands when it is online/offline. When the app is online, have it
sync the remote document store to the local document store. When it is
offline, just run off of whatever is in the local document store.

Judah

On Fri, Sep 25, 2009 at 9:25 AM, Richard White rich...@j7is.co.uk wrote:

 thanks for your replies

 the 3G seems the best way to go and found there are now 3G/GPRS USB data 
 cards, so this is a combination of both your suggestions :)

 thanks for your help



 Hi

 Our company is looking for a solution to a problem we are sure is very
 common

 - We have various documents stored within our application on our
 internet server
 - our employees connect to the application to access these documents
 - the problem is... sometimes our employees are at client sites that
 do not have internet connection and therefore cannot access these
 documents, which makes it very hard to conduct our business sometimes

 we would appreciate your thoughts on any possible solutions!

 thanks

 richard


 

~|
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:326636
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Check for Specific Numeric Date

2009-09-25 Thread Steve LaBadie

I am trying to checked that a specific number is entered into a form
field. I am able stop the form from executing, but can't get the form to
submit with the correct number. Any guidance would be appreciated.

 

cfif IsDefined(form.num) AND form.num NEQ  AND
IsNumeric(form.num) EQ 4

cfelse

cflocation url=cms_test.cfm

/cfif

 

Thanks

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu http://www.esu.edu 

slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu 



~|
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:326637
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Check for Specific Numeric Date

2009-09-25 Thread Charlie Griefer

isNumeric(form.num) will always evaluate to 0 (and not 4).  It's a literal
string (by virtue of the fact that it's enclosed in quotes).  So this
condition will never be true.

What you want is isNumeric(form.num).  Which will return true or false.  So
when you say isNumeric(form.num) eq 4... I'm not sure that's what you want.
ColdFusion will accept that... it uses implicit boolean conversion so true
== 4 is true.  But that's not really what you're going for, I don't think.

try:

cfif structKeyExists(form, 'num') and val(form.num) eq 4

On Fri, Sep 25, 2009 at 1:03 PM, Steve LaBadie slaba...@po-box.esu.eduwrote:


 I am trying to checked that a specific number is entered into a form
 field. I am able stop the form from executing, but can't get the form to
 submit with the correct number. Any guidance would be appreciated.



 cfif IsDefined(form.num) AND form.num NEQ  AND
 IsNumeric(form.num) EQ 4

 cfelse

 cflocation url=cms_test.cfm

 /cfif



 Thanks



 Steve LaBadie, Web Manager

 East Stroudsburg University

 200 Prospect St.

 East Stroudsburg, Pa 18301

 570-422-3999

 http://www.esu.edu http://www.esu.edu

 slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu



 

~|
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:326638
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Check for Specific Numeric Date

2009-09-25 Thread Steve LaBadie

Thanks for that Charles. All I am doing is setting up a simple math
question on a form to stop the spam bots. I am not a fan of Captcha and
being a public institution I need to accommodate the masses regarding
accessibility. This is an interim fix until I have time to evaluate my
options.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
slaba...@po-box.esu.edu

-Original Message-
From: Charlie Griefer [mailto:charlie.grie...@gmail.com] 
Sent: Friday, September 25, 2009 4:09 PM
To: cf-talk
Subject: Re: Check for Specific Numeric Date


isNumeric(form.num) will always evaluate to 0 (and not 4).  It's a
literal
string (by virtue of the fact that it's enclosed in quotes).  So this
condition will never be true.

What you want is isNumeric(form.num).  Which will return true or false.
So
when you say isNumeric(form.num) eq 4... I'm not sure that's what you
want.
ColdFusion will accept that... it uses implicit boolean conversion so
true
== 4 is true.  But that's not really what you're going for, I don't
think.

try:

cfif structKeyExists(form, 'num') and val(form.num) eq 4


~|
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:326639
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Dave Watts

 But I see many other types of requests
 ( http://www.askapache.com/online-tools/request-method-scanner/ )
 including MOVE, COPY or DELETE!

These are used by WebDAV. If your server isn't configured to support
WebDAV, it should ignore those HTTP verbs.

 My question: is: it safe to allow only GET and POST?

Yes, if you're not using WebDAV.

 What is the best practice in CF?

I don't know if there really is one. CF will, by default, respond to
any HTTP request made to a CF URL, but it won't actually handle PUT or
DELETE unless you explicitly write code to make it do so. You can
typically configure CF to only support specific HTTP request verbs at
the web server.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:326640
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Claude Schneegans

Thanks for tis clarification.

~|
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:326641
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 8.01 Server Error IO server on server communication

2009-09-25 Thread Tracy Loi

 This error is related to RDS not being enabled on server, apparently 
 can't browse without RDS. Question answered.
 
 Thanks

I'm encountered this problem when click on the browse buttom, how can I fix 
this problem?


~|
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:326642
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Matthew Small

Hi Claude,
Yes, it is safe to allow only GET and POST verbs.  Be aware, limiting 
yourself to these verb may have unintended consequences, such as when trying 
execute a remote debugging session against the server (I don't know how many 
CFers do that).  You can limit the verbs via the ISAPI Extensions list in IIS:

IIS Manager  Right-click the website  Properties  Home Directory tab  
Configuration Button  Mappings  Find .cfm, .cfc and any other extensions that 
you are worried about for CF  Edit  Verbs: Limit to ...

Matt Small 
Microsoft IIS Engineer





~|
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:326643
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 8.01 Server Error IO server on server communication

2009-09-25 Thread Dave Watts

 This error is related to RDS not being enabled on server, apparently
 can't browse without RDS. Question answered.

 I'm encountered this problem when click on the browse buttom, how can I fix 
 this
 problem?

Enable RDS, as described in previous posts.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:326644
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 8.01 Server Error IO server on server communication

2009-09-25 Thread Kris Jones

This problem is not just an RDS issue. I've seen this on new installs of
CF8, with RDS enabled, and cannot get the browse to work. Simply typing the
path to the item works (in my case this was a DSN setup thing).

Suspect this may be related to JVM version. For instance, on my localhost @
work, 1.6.0_04 it works fine. At home, 1.6.0_13 (I think), it does not work.

Cheers,
Kris

 This error is related to RDS not being enabled on server, apparently
  can't browse without RDS. Question answered.
 
  Thanks

 I'm encountered this problem when click on the browse buttom, how can I fix
 this problem?



~|
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:326645
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Matthew Small

Just a word of warning - PUT will in fact place a file on the webserver if 1) 
WRITE access is enabled in IIS for the folder and 2) The account used 
(IUSR_MACHINENAME for anonymous is default) has NTFS permissions to write to 
the folder.  No coding necessary - just add the PUT header, a filename, and 
some content.  I haven't tried with delete, but I assume it's the same way.



 But I see many other types of requests
 ( http://www.askapache.com/online-tools/request-method-scanner/ )
 including MOVE, COPY or DELETE!

These are used by WebDAV. If your server isn't configured to support
WebDAV, it should ignore those HTTP verbs.

 My question: is: it safe to allow only GET and POST?

Yes, if you're not using WebDAV.

 What is the best practice in CF?

I don't know if there really is one. CF will, by default, respond to
any HTTP request made to a CF URL, but it won't actually handle PUT or
DELETE unless you explicitly write code to make it do so. You can
typically configure CF to only support specific HTTP request verbs at
the web server.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information! 

~|
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:326646
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 8.01 Server Error IO server on server communication

2009-09-25 Thread Dave Watts

 This problem is not just an RDS issue. I've seen this on new installs of
 CF8, with RDS enabled, and cannot get the browse to work. Simply typing the
 path to the item works (in my case this was a DSN setup thing).

 Suspect this may be related to JVM version. For instance, on my localhost @
 work, 1.6.0_04 it works fine. At home, 1.6.0_13 (I think), it does not work.

Really? Are you able to make other RDS connections? Have you tried
other browsers?

The reason I'm a bit surprised at this is that I've used this on
literally hundreds of computers, and the only reason it hasn't worked
in a Java-enabled browser is RDS. But of course, anything is possible.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:326647
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Claude Schneegans

 Just a word of warning - PUT will in fact place a file on the webserver

Ok, but I do not need this feature.

~|
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:326648
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Claude Schneegans

 (I don't know how many CFers do that). 

Not me anyway ;-/

 IIS Manager  Right-click the website  Properties  Home Directory 
tab  Configuration Button  Mappings  Find .cfm, .cfc and any other 
extensions that you are worried about for CF  Edit  Verbs: Limit to ...

Ah ok, and I enter a list like GET,POST I suppose? But this has to be 
done for every web site.
I finally prefer my solution in a commonApplication.cfm which is 
included by every site Application.cfm

Thanks anyway.

~|
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:326649
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Dave Watts

 Just a word of warning - PUT will in fact place a file on the webserver if 1) 
 WRITE access is enabled in IIS for the folder and 2) The
 account used (IUSR_MACHINENAME for anonymous is default) has NTFS permissions 
 to write to the folder.  No coding
 necessary - just add the PUT header, a filename, and some content.  I haven't 
 tried with delete, but I assume it's the same way.

Yes, PUT and DELETE are both WebDAV commands, and they'll both run if
you've enabled WebDAV (the write access mentioned above) and the
user's permissions are appropriate.

However, I'm not sure if IIS will process the command at all if it
includes a file normally processed by CF. I generally don't use
WebDAV, so I've never tested this. I would expect that, if you don't
filter the verbs processed by the CF ISAPI extension, CF would accept
the PUT request and simply treat it as if it were a GET request.

Have you tested this?

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more informatio

~|
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:326650
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Dave Watts

 Ah ok, and I enter a list like GET,POST I suppose?

Right.

 But this has to be done for every web site. I finally prefer my solution in a 
 commonApplication.cfm which is
 included by every site Application.cfm

Well, actually, you can do this. If you're using IIS 6 or earlier, you
can configure the CF ISAPI mapping in one place if you choose (when
you select All when running wsconfig). If you're using IIS 7, you
can place entries in applicationHost.config.

And, frankly, this is something I'd rather handle at the web server
than at the application server, as the web server has a clearly
defined way for dealing with HTTP verbs. CF really doesn't, beyond GET
and POST, as far as I can tell.

All that said, you should be able to do this from CF in
Application.cfc/cfm, which could be shared across multiple websites if
you choose to set it up that way. Just look at CGI.REQUEST_METHOD. If
you don't get that, or CGI.METHOD, you can use GetHttpRequestData to
view raw request data.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:326651
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WebService Axis Issues

2009-09-25 Thread Rob Brooks-Bilson

Adrian, did you ever solve this issue?  I'm seeing a similar problem.  From 
what I can tell it's an unresolved bug in Apache Axis:

http://issues.apache.org/jira/browse/AXIS-2758

-Rob

I get the same on CF8 and on Railo I get:

org.xml.sax.SAXException: Deserializing parameter 'GetVersionInfoResponse':
could not find deserializer for type {urn:IWS}GetVersionInfoResponseType

Sorry that's not much help.

Adrian 

~|
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:326652
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF 8.01 Server Error IO server on server communication

2009-09-25 Thread brad

http://www.codersrevolution.com/index.cfm/2009/3/19/ColdFusion-Administrator-Why-Cant-I-Browse-The-Server


 Original Message 
Subject: Re: CF 8.01 Server Error IO server on server communication
From: Tracy Loi tracy@lacity.org
Date: Fri, September 25, 2009 4:40 pm
To: cf-talk cf-talk@houseoffusion.com


 This error is related to RDS not being enabled on server, apparently 
 can't browse without RDS. Question answered.
 
 Thanks

I'm encountered this problem when click on the browse buttom, how can I
fix this problem?




~|
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:326653
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


(ot) Detect OS and CPU Architecture

2009-09-25 Thread Don L

Hi,

Preferably do it with javascript.
Did a bit of digging myself, neither navigator.userAgent nor 
navigator.appVersion command would suffice for the CPU part.  Hmm, is 
javascript simply unable to or I simply don't know better?

As always many thanks. 

~|
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:326654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (ot) Detect OS and CPU Architecture

2009-09-25 Thread Barney Boisvert

Well, windows only runs on Intel, and it states 32/64 bit in the user  
agent.  Linux usually has an architecture in the user agent.  OSX is a  
wildcard, but universal binaries make it no big deal if it's PPC or  
Intel.

But to answer your question, JS is unable to determine it, and more to  
the point, unable to do anything architecture-specific anyway.

cheers,
barneyb

--
Barney Boisvert
bboisv...@gmail.com
http://www.barneyb.com/

On Sep 25, 2009, at 6:37 PM, Don L do...@yahoo.com wrote:


 Hi,

 Preferably do it with javascript.
 Did a bit of digging myself, neither navigator.userAgent nor  
 navigator.appVersion command would suffice for the CPU part.  Hmm,  
 is javascript simply unable to or I simply don't know better?

 As always many thanks.

 

~|
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:326655
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Judah McAuley

On Fri, Sep 25, 2009 at 4:34 PM, Dave Watts dwa...@figleaf.com wrote:
 Yes, PUT and DELETE are both WebDAV commands, and they'll both run if
 you've enabled WebDAV (the write access mentioned above) and the
 user's permissions are appropriate.

HTTP verbs like PUT and DELETE are used in RESTful applications as
well. You often set up a URI for a piece of content and then
differentiate actions based on HTTP verbs. GET to read it, POST to
create a new item, PUT to update and DELETE to delete the item.

You can take a look here for an overview:
http://en.wikipedia.org/wiki/Representational_State_Transfer

Cheers,
Judah

~|
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:326656
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4