Re: CF and SQL Server temporary tables

2008-04-18 Thread James Holmes
That's my understanding too - CF gets a connection from the pool on
the first query in a request and keeps that connection for the
duration of the request, using it for all subsequent queries.

On Fri, Apr 18, 2008 at 1:09 PM, Dave Watts [EMAIL PROTECTED] wrote:
  It's entirely possible for a CF page to change connections in
   the middle of processing a request, and therefore lose sight
   of the temp table.

  Actually, I don't think that's possible. My understanding is that a
  connection used by a page is retained by the page for the duration of its
  execution.

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

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303721
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Open Source CMS?

2008-04-18 Thread Hugo Ahlenius
Phill - have you considered going a wiki route, like using Ray Camden's
canvas wiki?


--
Hugo Ahlenius

-
Hugo Ahlenius  E-Mail: [EMAIL PROTECTED]
Programme Officer  Phone:  +46 8 674 7564
UNEP GRID-Arendal  Fax:+46 8 674 7020
Stockholm Office   Mobile: +46 733 467111
   WWW:   http://www.grida.no
   Skype:callto:fraxxinus
- 


 

|-Original Message-
|From: Phill B [mailto:[EMAIL PROTECTED] 
|Sent: Monday, April 14, 2008 18:49
|To: CF-Talk
|Subject: Open Source CMS?
|
|I'm thinking about using an open source CMS for our intranet 
|admin tools.
|Any suggestions?
|
|I need some thing that has roll based security and is easy to 
|use. I have
|the majority of the CFCs written so I just need an empty shell to start
|filling with tools.
|
|Thanks
|
|-- 
|Phil
|
|
|

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303722
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Proxy Authentication with Oracle - Does ColdFusion Support this?

2008-04-18 Thread Joseph Bugeja
Dear CF-Users,

 

In order to have proper auditing and for other benefits like identity
preservation we cannot just make use of a single username/password as is
traditionally required for connection pooling. There is more than one way to
handle this, but a common method that can be used to avoid this type of
problem is to make use of proxy authentication. With proxy authentication,
we can keep the advantages of connection pooling whilst at the same time we
are able to, a certain extent, identify users. In Java proxy authentication
is implemented as shown below (David Knox code):

 

1. Connect to middle tier using the proxy user:

 

  OracleOCIConnectionPool ods = new OracleOCIConnectionPool();

  ods.setURL(jdbc:oracle:oci:@ + tnsAlias);

  ods.setUser(coldFusion);

  ods.setPassword(password);

 

2. Connect using Proxy Authentication:

 

  java.util.Properties userNameProp = new java.util.Properties();

  userNameProp.setProperty(OracleOCIConnectionPool.PROXY_DISTINGUISHED_NAME,
scott);

  Connection conn =
ods.getProxyConnection(OracleOCIConnectionPool.PROXYTYPE_DISTINGUISHED_NAME,


 
userNameProp);

 

Basically, I would like to know, if possible, if ColdFusion natively
supports this kind of authentication.

 

Thanks all for your kind assistance.

 

Kindest Regards,

Joseph.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303723
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


ColdFusion and IIS as an external Web Server - Is JRun required o n both machines?

2008-04-18 Thread Joseph Bugeja
Dear CF-Users,

 

We are using ColdFusion 8 Enterprise Edition and we want to check if it is
possible to separate the ColdFusion application server from the IIS Web
Server. In our scenario, we have two separate machines - one dedicated for
ColdFusion and the other dedicated to the Web Server. The machines are on
the same LAN but only the web server is accessible from the Web (this is in
DMZ). The Web Server Configuration Tool that comes with ColdFusion/JRun
allows us to discover and connect with a remote JRun host, but my question
is whether we need to install JRun on both the web server and the
application server. Apparently, IIS requires jrun.dll locally to
successfully handle the application extensions .cf, .cfm, etc.

 

Thanks all for your help. 

 

Best Regards,

Joseph.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303724
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF and SQL Server temporary tables

2008-04-18 Thread Mark Kruger
I'm with Dave... The connection persists for the length of the request. I
wonder however about scoping and components. For example, what if I did the
following:

1)   createobject(component,com.dbObj).createTempTable() 

2)
createobject(component,com.dbObj).getDataFromTempTable(firstname='Bob');


Could  the second instantiation of the object result in the use of a
different connection? Since the scope is sort of agnostic of the request I
wonder if that would be the case. It might be interesting to find out.



-Mark


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 12:09 AM
To: CF-Talk
Subject: RE: CF and SQL Server temporary tables

 It's entirely possible for a CF page to change connections in the 
 middle of processing a request, and therefore lose sight of the temp 
 table.

Actually, I don't think that's possible. My understanding is that a
connection used by a page is retained by the page for the duration of its
execution.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303725
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
Azadi,

Very odd I'm running cf8.0.1, the bind works passing data between inputs but 
not with a CFC. Any ideas?

I even took a sample out of the Adobe docs.

-Jim

bindapp.cfm: Does Not Work
bindFcns.cfc: Works

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_05.html


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303726
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: how can i check if coldfusion 8 is running in 32bit or 64bit mode?

2008-04-18 Thread Andy Matthews
Adobe only recently released the 64 bit version. And from what I understand
you had to have uninstalled the 32bit version to install the 64bit one. So
unless your IT guys have done an uninstall of CF, you're likly running the
32 bit version still. 

-Original Message-
From: Steve Dworman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 17, 2008 5:11 PM
To: CF-Talk
Subject: how can i check if coldfusion 8 is running in 32bit or 64bit mode?

we're running coldfusion 8 on a 64bit solaris 9 box. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303727
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Adding multiple records through a webservice

2008-04-18 Thread Bobby Hartsfield
It seems that Json strings were mentioned that last time someone asked this.
I can't find the thread, maybe you will have better luck.

and just to be an evaluate nazzi; you may save a couple milliseconds in
the future by not using evaluate so much. Try these instead:

#form['thisclass_'  idx)#
#form['part_name_'  idx)#
#form['part_dob_'  idx)#
#form['part_med_'  idx)#

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 17, 2008 6:55 PM
To: CF-Talk
Subject: Adding multiple records through a webservice

While the below works, what a freaking waste of resources - especially 
considering that the webservice is on the other side of the planet from 
the form that's submitting to it.

What's the best way to handle something like this?


cfloop list=#request.idLIST# index=idx

cfinvoke webservice=#request.cfcLOCATION#
   method=addAAIPART 

   cfinvokeargument name=WSid
 value=#req.maxID# /
   cfinvokeargument name=WSpart_class
 value=#evaluate('form.thisclass_#idx#')# /
   cfinvokeargument name=WSpart_name
 value=#evaluate('form.part_name_#idx#')# /
   cfinvokeargument name=WSpart_dob
 value=#evaluate('form.part_dob_#idx#')# /
   cfinvokeargument name=WSpart_med
 value=#evaluate('form.part_med_#idx#')# /
/cfinvoke

/cfloop



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion and IIS as an external Web Server - Is JRun required o n both machines?

2008-04-18 Thread Matthew Williams
You don't need the full blown install to do this, however it's going to
be a completely manual process.  You can find instructions for that at
this link
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19575.  The
only thing that's not reflected in the kb entry is that IIS6 now uses a
wildcard ISAPI reference.  It may help you to configure a webserver
locally on the ColdFusion box, and then mirror these settings on your
DMZ server (from the IIS standpoint).  Or, even better, create the
website locally and just save the site for import into the DMZ.

Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303729
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Adding multiple records through a webservice

2008-04-18 Thread Les Mizzell
 It seems that Json strings...

I've got some learning to do. Looks promising, but I've got to get my 
head around it first...

Couldn't you use cfwddx somehow to transfer the data as well? Haven't 
researched this yet...

 and just to be an evaluate nazzi; you may save a couple milliseconds in
 the future by not using evaluate so much. Try these instead:
 
 #form['thisclass_'  idx)#
 #form['part_name_'  idx)#
 #form['part_dob_'  idx)#
 #form['part_med_'  idx)#


 a few less characters to type too! Thanks!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303730
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
Ok something is up with my server I think. I just put the same code on my PC 
and it ran fine. Where do I begin to check? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303731
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: getex replace

2008-04-18 Thread Bobby Hartsfield
#replace(str, '#char(13)##chr(10)#memberUserName', '|memberUserName',
'all')#

-Or-

#replace(str, '#char(13)##chr(10)##char(13)##chr(10)#', '|', 'all')#


With 18,000 blocks... you are bound to run into some data discrepancies so
look it over well. And for the love of god... if you are feeding that list
back to CF... use an array of structures or something instead of a list :-)

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 17, 2008 8:22 PM
To: CF-Talk
Subject: getex replace

I have a list I obtained from export ldap members out of a ldap directory in
LDIF format that looks like this:

memberUserName: John Doe
memberAge: 34
memberLocation: US
memberEmail: [EMAIL PROTECTED]

 memberUserName: Mary Doe
memberAge: 44
memberLocation: US
memberEmail: [EMAIL PROTECTED]

 memberUserName: Jack Doe
memberAge: 86
memberLocation: US
memberEmail: [EMAIL PROTECTED]

I need to import this list of almost 18,000 members onto an SQL database. So
what I want to do is to convert this LDIF file into one big list pipe
delimited, then loop through it and add it to the database. So I got:

1) File is read
cffile action=read variable=cffileRead
file=#expandPath(/imports/testList.ldif)# /

2) Replace all new lines for commas
cfset newLine = chr(13)  chr(10) /
cfset commaList = replace(cffileRead, newLine, ',', 'All' /

Question here: How do I replace all EMPTY (BLANK LINES) like the ones
between memberUserName for pipes?



Ravi Gehlot
Web Programmer  IT Specialist

Sunshine Tech Solutions, LLC
http://www.sunshinetechsolutions.com
[EMAIL PROTECTED]
President





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303732
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: ColdFusion and IIS as an external Web Server - Is JRun requir ed o n both machines?

2008-04-18 Thread Joseph Bugeja
Hello Sir,

Thanks for your reply. I agree with you on the mirroring and the website
importing option. I think this is the way to go. I went through that kb
article a couple of days ago however it assumes that the Coldfusion and the
WebServer are located on the same machine, and this is not our case. I
believe that it is not a simple replace all the localhost entries in
wsconfig.properties to our IP address to work? Related to this, if we
install ColdFusion on another application server, like WebSphere, then do we
still need jrun.dll. I guess or I hope no?

Regards,
Joseph.

-Original Message-
From: Matthew Williams [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 3:16 PM
To: CF-Talk
Subject: Re: ColdFusion and IIS as an external Web Server - Is JRun required
o n both machines?

You don't need the full blown install to do this, however it's going to
be a completely manual process.  You can find instructions for that at
this link
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19575.  The
only thing that's not reflected in the kb entry is that IIS6 now uses a
wildcard ISAPI reference.  It may help you to configure a webserver
locally on the ColdFusion box, and then mirror these settings on your
DMZ server (from the IIS standpoint).  Or, even better, create the
website locally and just save the site for import into the DMZ.

Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303734
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: how to count characters? maxlength

2008-04-18 Thread Les Mizzell
Paul Ihrig wrote:
 hey guys i am using cf8 and in my cftextarea richtext=true and 
 maxlength=8000
 is there a js or function that would show the user how many charecters
 the have used and how many are left in a textarea or text field?

I'm curious on this too - I've found a number of counters, but most 
counted keystrokes - so somebody could just cut and paste X number and 
things were immediately screwed up..

Is the maxlength attribute done on validation, or is it counting as you 
type or something? What happens if you try to paste more in than the max 
instead of typing it in?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303735
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
All,

On our CF8 Ent server in the webroot is a copy of the CFIDE directory missing 
the admin folder. I did this so our cfform validation works. The actual CF 
server main installation is running on a differnt webserver different port to 
secure the admin. 

Do I need to change my CFIDE mapping to point to my webroot to get the AJAX 
items to work? Security?

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303736
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: how to count characters? maxlength

2008-04-18 Thread Eric Bowling
Here is a quick snippet of code to show how many characters are used out of
8000 in a textarea and displays it.  It could be modified to fit your needs.

Eric

script

function update(textareaObject) {
 var charsTotal  = 8000;
 var charsUsed = textareaObject.value.length;
 document.getElementById('charsused').innerHTML = charsUsed +  out of   +
charsTotal + characters used;
}
/script

div id=charsused
0 out of 8000 characters used
/div


div
form method= id=test
textarea name=testtext rows=10 cols=80 onkeyup=update(this)

/textarea
/form
/div





On 4/18/08, Paul Ihrig [EMAIL PROTECTED] wrote:

 hey guys i am using cf8 and in my cftextarea richtext=true and
 maxlength=8000
 is there a js or function that would show the user how many charecters
 the have used and how many are left in a textarea or text field?

 thanks much
 -paul

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303737
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
hey guys i am using cf8 and in my cftextarea richtext=true and maxlength=8000
is there a js or function that would show the user how many charecters
the have used and how many are left in a textarea or text field?

thanks much
-paul

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303733
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


ZipMonger - Store locator - ARGH! - zip codes retuned - problem

2008-04-18 Thread coldfusion . developer
All, Any familiar with the ZipMonger CFC?

I've got this great store finder all setup with GoogleMaps integration and I'm 
running into a slight problem.
In certain instances, surrounding town zip code are not showing up.  Tracking 
down one mising zip code down, showed that it's in my zip code database, it's 
in the store database, but the CFC isn't including it within the list of zip 
codes returned.

What's strange is when Imenaully query the store database for the following 
query, I still get stores that have no zip code value and some lats and longs 
that are NULL.  Could my database be corrupted?

SELECT *
FROM dbo.tblStores
WHERE (lat IS NOT NULL) OR
  (long IS NOT NULL) OR
  (Zip  '')

Here are my zipmonger settings and the query to the store database.
 cf_zipmonger
  DataSource=#datasource#
  ZipTable=zipcode
  ZipCodeField=zipcode
  ZIPQueryParam=CF_SQL_VARCHAR
  OriginZipCode=#form.ZIPInput#
  Radius=#form.ZIPRadius#
  LatitudeField=Lat
  LongitudeField=Long
  MaxRadius=9

cfquery name=get_stores datasource=#datasource#
select *
from dbo.tblStores
where active = 1 AND zip IN  (
cfqueryparam value=#Variables.ReturnedZIPS#
  cfsqltype=cf_sql_integer list=yes /)

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303738
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cftextarea: how to count characters? maxlength

2008-04-18 Thread Bobby Hartsfield
Look here: 
http://cf4em.com/cf4em/index.cfm?mainaction=register

Specifically, look at the signature textarea. Feel free to view source and
grab whatever JS you might need. 

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 9:34 AM
To: CF-Talk
Subject: cftextarea: how to count characters? maxlength

hey guys i am using cf8 and in my cftextarea richtext=true and
maxlength=8000
is there a js or function that would show the user how many charecters
the have used and how many are left in a textarea or text field?

thanks much
-paul



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303739
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: how to count characters? maxlength

2008-04-18 Thread Andy Matthews
One thing you'll have to take into account (because you're using richetext)
is the underlying HTML. Most people aren't going to be able to mentally
correlate 100 words of text inside the preview window as actually being 300
characters of code.

You'll also have to make sure you point your target at the underlying code
window (an iframe I think) and not the display window or your count will be
off. 

-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 8:34 AM
To: CF-Talk
Subject: cftextarea: how to count characters? maxlength

hey guys i am using cf8 and in my cftextarea richtext=true and
maxlength=8000
is there a js or function that would show the user how many charecters the
have used and how many are left in a textarea or text field?

thanks much
-paul



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303740
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
Update: My CFIDE mapping was fine which was going to a internal CF secure 
webserver with my admin. I didn’t need to add a virtual directory to CFIDE or 
add scriptsrc. I just added a blank application.cfc and it works now. My issue 
seems to be something in a old application.cfm that the directory folder was 
inheriting from causing the issue.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303741
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Adding multiple records through a webservice

2008-04-18 Thread Bobby Hartsfield
Sure, or xml even. 

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 9:19 AM
To: CF-Talk
Subject: Re: Adding multiple records through a webservice

 It seems that Json strings...

I've got some learning to do. Looks promising, but I've got to get my 
head around it first...

Couldn't you use cfwddx somehow to transfer the data as well? Haven't 
researched this yet...

 and just to be an evaluate nazzi; you may save a couple milliseconds
in
 the future by not using evaluate so much. Try these instead:
 
 #form['thisclass_'  idx)#
 #form['part_name_'  idx)#
 #form['part_dob_'  idx)#
 #form['part_med_'  idx)#


. a few less characters to type too! Thanks!



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303742
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfform flash ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Paul Ihrig
ok, just found press ok to continue loading the content of this page
when using IE 6
its on a page that uses cfform flash and a 3 select realted thingy...

i have googled press ok to continue loading the content of this page
but am not finding what i would expect...

any one have a quick fix?
thanks
-paul

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303743
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread Kris Jones
Not sure if it's fixed in 8.0.1 or not, but up through 8.0 hf3, CFCs
that were accessed through a mapping would not work with the CFForm
input/select bind attributes. Documented bug. Hopefully it is fixed in
8.0.1.

Cheers,
Kris

 Update: My CFIDE mapping was fine which was going to a internal CF secure 
 webserver with my admin. I didn't need to add a virtual directory to CFIDE or 
 add scriptsrc. I just added a blank application.cfc and it works now. My 
 issue seems to be something in a old application.cfm that the directory 
 folder was inheriting from causing the issue.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303744
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfform flash ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Kevin Aebig
I originally wrote a custom tag to fix that, but I thought it had been fixed
directly in CF since.

Custom tag can be found:
http://www.keslabs.com/stuff/eolas/

!k

-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 8:26 AM
To: CF-Talk
Subject: cfform flash ie6 -press ok to continue loading the content of this
page

ok, just found press ok to continue loading the content of this page
when using IE 6
its on a page that uses cfform flash and a 3 select realted thingy...

i have googled press ok to continue loading the content of this page
but am not finding what i would expect...

any one have a quick fix?
thanks
-paul



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303745
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Adding multiple records through a webservice

2008-04-18 Thread Dominic Watson

 I've got some learning to do. Looks promising, but I've got to get my
 head around it first...


If you're on CF8, there are built in functions for converting to and from
JSON format:

http://blogs.sanmathi.org/ashwin/2007/06/30/cf8-evolving-json-support/

The blog pretty well describes why you might want to use JSON over XML too.

If you're not on CF8, there's this (which should make things very easy):

http://cfjson.riaforge.org/


-- 
Blog it up: http://fusion.dominicwatson.co.uk


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303746
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
i can bobby's code to work with a regular cftextarea, but not the one
with richtext
document.form1.descLong.value = 8000 - document.form1.descLong.value.length;
how do i target the iframe? if thats what it is?


On Fri, Apr 18, 2008 at 10:07 AM, Andy Matthews
[EMAIL PROTECTED] wrote:
 One thing you'll have to take into account (because you're using richetext)
  is the underlying HTML. Most people aren't going to be able to mentally
  correlate 100 words of text inside the preview window as actually being 300
  characters of code.

  You'll also have to make sure you point your target at the underlying code
  window (an iframe I think) and not the display window or your count will be
  off.


  -Original Message-
  From: Paul Ihrig [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 18, 2008 8:34 AM
  To: CF-Talk
  Subject: cftextarea: how to count characters? maxlength



 hey guys i am using cf8 and in my cftextarea richtext=true and
  maxlength=8000
  is there a js or function that would show the user how many charecters the
  have used and how many are left in a textarea or text field?

  thanks much
  -paul




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303747
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFPOD - dynamic width?

2008-04-18 Thread Kevin Ross
It was requested of me to use cfpod for a project and I've run into a 
roadblock early on.  I've found out that the width of a cfpod can only be set 
in pixels.  It seems odd to me that this tag does not support widths as 
percentages, but that's how it is.  I've searched and can't find much info on 
plausible workarounds, so I figured I'd ask here if anyone has a solution to 
making a cfpod width=100%?  Thanks! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303748
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform flash ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Paul Ihrig
hey kevin.
am trying it but i still get the pop-up to allow item.
i see form below as normal, but once i click ok it vanishes!

every thig works fine in ie7 and ff

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303749
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
Kris,

Thanks, I just got it working. Now my new issue is when a string like 0123 is 
passed in the leading zero is getting cut off. The CFC is returning the correct 
data.

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303750
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cftextarea: how to count characters? maxlength

2008-04-18 Thread Andy Matthews
If you've got Firebug installed in Firefox, you should be able to use the
DOM portion of FB to pinpoint the reference to the iframe. 

-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 10:00 AM
To: CF-Talk
Subject: Re: cftextarea: how to count characters? maxlength

i can bobby's code to work with a regular cftextarea, but not the one with
richtext document.form1.descLong.value = 8000 -
document.form1.descLong.value.length;
how do i target the iframe? if thats what it is?


On Fri, Apr 18, 2008 at 10:07 AM, Andy Matthews [EMAIL PROTECTED]
wrote:
 One thing you'll have to take into account (because you're using 
 richetext)  is the underlying HTML. Most people aren't going to be 
 able to mentally  correlate 100 words of text inside the preview 
 window as actually being 300  characters of code.

  You'll also have to make sure you point your target at the underlying 
 code  window (an iframe I think) and not the display window or your 
 count will be  off.


  -Original Message-
  From: Paul Ihrig [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 18, 2008 8:34 AM
  To: CF-Talk
  Subject: cftextarea: how to count characters? maxlength



 hey guys i am using cf8 and in my cftextarea richtext=true and  
 maxlength=8000
  is there a js or function that would show the user how many 
 charecters the  have used and how many are left in a textarea or text
field?

  thanks much
  -paul




 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303751
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 - Auto Populate a city text field based on zip code field?

2008-04-18 Thread James Blaha
This thread can be killed.

Issue: A HTML comment was outputting from a application.cfc file causing none 
of the binded cfinput AJAX items to work.

Thank you all! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303752
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT: Adobe Spry Menu and Flash

2008-04-18 Thread Robert Harrison
I know this is a bit OT, but it's still a problem maybe someone on list has
seen.

In CS3 Adobe provides a new function for generating fly out menus called
Spry menus. The work well, but they don't seem to play very nicely with
flash animation files (swfs). The flash animation and Spry menus seem to be
interfering with each other. Here's an example:
http://www.austin-williams.com/clients/Danfords/sprytest/index_testing4.html


Spry does work OK if you convert the flash to an .flv, but you can't always
do that. Here's an example of how they are supposed to work:
http://danfords.com . 

Does anyone have any familiarity with this issue or have more insight they
can provide? 

This is clearly a case of an Adobe product killing an Adobe product.


Thanks,

Robert B. Harrison
Director of Interactive services
Austin  Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be .



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303753
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
Document fckeditor.html

or xEditingArea

On Fri, Apr 18, 2008 at 11:19 AM, Andy Matthews
[EMAIL PROTECTED] wrote:
 If you've got Firebug installed in Firefox, you should be able to use the
  DOM portion of FB to pinpoint the reference to the iframe.


  -Original Message-
  From: Paul Ihrig [mailto:[EMAIL PROTECTED]

 Sent: Friday, April 18, 2008 10:00 AM
  To: CF-Talk


 Subject: Re: cftextarea: how to count characters? maxlength

  i can bobby's code to work with a regular cftextarea, but not the one with
  richtext document.form1.descLong.value = 8000 -
  document.form1.descLong.value.length;
  how do i target the iframe? if thats what it is?


  On Fri, Apr 18, 2008 at 10:07 AM, Andy Matthews [EMAIL PROTECTED]
  wrote:
   One thing you'll have to take into account (because you're using
   richetext)  is the underlying HTML. Most people aren't going to be
   able to mentally  correlate 100 words of text inside the preview
   window as actually being 300  characters of code.
  
You'll also have to make sure you point your target at the underlying
   code  window (an iframe I think) and not the display window or your
   count will be  off.
  
  
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]
Sent: Friday, April 18, 2008 8:34 AM
To: CF-Talk
Subject: cftextarea: how to count characters? maxlength
  
  
  
   hey guys i am using cf8 and in my cftextarea richtext=true and
   maxlength=8000
is there a js or function that would show the user how many
   charecters the  have used and how many are left in a textarea or text
  field?
  
thanks much
-paul
  
  
  
  
  



  

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303754
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


ColdFusio 8.0.1 cfinput binded variable truncating off leading zero in a text string?

2008-04-18 Thread James Blaha
I have a CFC that returns a string variable zip code. When it gets passed back 
to a binded variable in a cfinput tag the leading zero gets cut off. Any ideas?

-Jim


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303755
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: ColdFusion and IIS as an external Web Server - Is JRun requir ed o n both machines?

2008-04-18 Thread Dave Watts
 if we install ColdFusion on another application server, 
 like WebSphere, then do we still need jrun.dll.

No, your J2EE application server is responsible for connecting to your web
server.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303756
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE:_CFPOD_-_dynamic_width?

2008-04-18 Thread Chad Gray
That is an interesting problem.  Any way to bind the width attribute to 
javascript that can do the math to figure out the percentage?

Just tossing out the idea.  I am pretty new to the binding stuff and have no 
idea if this is possible.



-Original Message-
From: Kevin Ross [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 11:02 AM
To: CF-Talk
Subject: CFPOD - dynamic width?

It was requested of me to use cfpod for a project and I've run into a 
roadblock early on.  I've found out that the width of a cfpod can only be set 
in pixels.  It seems odd to me that this tag does not support widths as 
percentages, but that's how it is.  I've searched and can't find much info on 
plausible workarounds, so I figured I'd ask here if anyone has a solution to 
making a cfpod width=100%?  Thanks! 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303757
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Proxy Authentication with Oracle - Does ColdFusion Support th is?

2008-04-18 Thread Dave Watts
 In order to have proper auditing and for other benefits like 
 identity preservation we cannot just make use of a single 
 username/password as is traditionally required for connection 
 pooling. There is more than one way to handle this, but a 
 common method that can be used to avoid this type of problem 
 is to make use of proxy authentication.

 ...

 Basically, I would like to know, if possible, if ColdFusion 
 natively supports this kind of authentication.

No, I don't think so.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303759
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ColdFusio 8.0.1 cfinput binded variable truncating off leading zero in a text string?

2008-04-18 Thread Paul Ihrig
pass it as text.
not as numeric

On Fri, Apr 18, 2008 at 11:36 AM, James Blaha [EMAIL PROTECTED] wrote:
 I have a CFC that returns a string variable zip code. When it gets passed 
 back to a binded variable in a cfinput tag the leading zero gets cut off. Any 
 ideas?

  -Jim


  

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303760
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform flash ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Paul Ihrig
could it be a multiple ie's issue?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303761
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 and SQL Server temporary tables

2008-04-18 Thread Brad Wood
This topic came up back in December.  Read this post here:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:265101

Jochem clarified that Adobe ColdFusion does maintain the same connection
for the duration of a page, but one should not rely on that behavior
since it is un-documented.  Furthermore, alternative CFML engines like
BlueDragon don't follow the same behavior.  If you want to be sure your
code will be 1) portable and 2) forward compatible, use a cftransaction
to force it to reuse the same connection.

~Brad

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 2:02 AM
To: CF-Talk
Subject: Re: CF and SQL Server temporary tables

That's my understanding too - CF gets a connection from the pool on
the first query in a request and keeps that connection for the
duration of the request, using it for all subsequent queries.

On Fri, Apr 18, 2008 at 1:09 PM, Dave Watts [EMAIL PROTECTED] wrote:
  It's entirely possible for a CF page to change connections in
   the middle of processing a request, and therefore lose sight
   of the temp table.

  Actually, I don't think that's possible. My understanding is that a
  connection used by a page is retained by the page for the duration of
its
  execution.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303758
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CFHTTP with a login page

2008-04-18 Thread Thane Sherrington
I'm trying to use CFHTTP to grab some information from this page:

http://goallineblitz.com/game/team.pl?team_id=703

using:
cfhttp url=http://goallineblitz.com/game/home.pl; method=GET 
resolveurl=yes useragent=Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.0) redirect=yes
/cfhttp


But when I do so, it redirects me to this page:
http://goallineblitz.com/game/login.pl

So I changed the code to:
cfhttp url=http://goallineblitz.com/game/login.pl; method=POST 
resolveurl=yes useragent=Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.0) redirect=yes
cfhttpparam type=FORMFIELD name=user_name value=xxx
cfhttpparam type=FORMFIELD name=password value=xxx
/cfhttp
cfhttp url=http://goallineblitz.com/game/home.pl; method=GET 
resolveurl=yes useragent=Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.0) redirect=yes
/cfhttp

To pass the username and password to this page, but I had no 
luck.  Is there a way to do this with CFHTTP?  This is for an online 
football game I'm playing, and I'm a paying customer, I just want to 
automate some of the daily tasks with ColdFusion, so I'm not stealing 
information or anything.

Thanks for any help.

T 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303762
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFHTTP with a login page

2008-04-18 Thread Claude Schneegans
 To pass the username and password to this page, but I had no luck.

First I would check the CFHTTP content to see if the login was succesful.
Then the site must have some scheme to keep track of the session.
Look if it stores a cookie in your browser, and try to support it in 
your CFHTTP call.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303763
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Kris Jones
There is some info in the fckeditor forums on getting the correct
count. I think the CF8 cftextarea is repackaging fckeditor, and if so,
this should work (although I haven't tried it in CF8 myself).
You need to reference the object.GetXHTML() function. The example
below is just for checking for any length, but you could use the
referenced function for your situation as well.

var oEditor = FCKeditorAPI.GetInstance('theBody');
var theBodyTest = oEditor.GetXHTML(true);
if (theBodyTest.length==0) {
  alert('You need to enter something for the body of your story.');
  return false;
}

HTH,
Kris

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303764
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusio 8.0.1 cfinput binded variable truncating off leading zero in a text string?

2008-04-18 Thread James Blaha
Where do I make a setting to pass as text? The CFC returns the data as a string.

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303765
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfmail... and fonts.

2008-04-18 Thread Ian Skinner
Is is possible to designate a specific font, such as Courier or a 
generic mono-space font, for plain messages sent with cfmail..., or 
any mailer for that matter?  Or does this concept only apply for HTML 
formated messages?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303766
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfmail... and fonts.

2008-04-18 Thread Sonny Savage
Your last question is the answer.  Plain text cannot specify fonts.  It's
completely up to the mail client.

On Fri, Apr 18, 2008 at 1:46 PM, Ian Skinner [EMAIL PROTECTED] wrote:

 Is is possible to designate a specific font, such as Courier or a
 generic mono-space font, for plain messages sent with cfmail..., or
 any mailer for that matter?  Or does this concept only apply for HTML
 formated messages?



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303767
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfmail... and fonts.

2008-04-18 Thread Ian Skinner
Sonny Savage wrote:
 Your last question is the answer.  Plain text cannot specify fonts.  It's
 completely up to the mail client.

That's what I thought, but then the documentation for my mail client 
threw me for a loop with this passage:

This font change is only in effect while you read the item. If you 
close the item and re-open it, the font returns to the Windows system 
default font or the *font that the sender composed* the item in.

As you may note, I can not change my client to show messages in a 
mono-space font without overriding my entire Windows system default.  I 
am not impressed with this organizations choice of a mail client.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303768
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfmail... and fonts.

2008-04-18 Thread Dave Watts
 That's what I thought, but then the documentation for my mail 
 client threw me for a loop ...

Well, there are two things to consider. When you send plain text, you can't
specify fonts, as Sonny pointed out. But even if you send formatted mail,
the mail client may be configured to discard some or all of that formatting.
For example, in Outlook 2003, all mail I receive is displayed as unformatted
text.

My guess is that your documentation refers to this latter case.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303769
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: how to count characters? maxlength

2008-04-18 Thread Paul Ihrig
hey Kris..
sry to be a dumb ass

but is 'theBody' the form name?
is 'theBodyTest' the cftextarea name?


its such a cool js
just want to be able to use it...

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303770
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusio 8.0.1 cfinput binded variable truncating off leading zero in a text string?

2008-04-18 Thread Paul Ihrig
can you do a cfqueryparam value=#yourVar#
cfsqltype=cf_sql_varchar maxlength=50

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303771
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Prevent Cross Site scripting

2008-04-18 Thread Ian Rutherford
So what do you recommend instead? The built in xxs protection doesn't catch 
everything. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303772
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Prevent Cross Site scripting

2008-04-18 Thread Brad Wood
I'm not sure if you're directing that question at Dave or me, so I will
clarify my recommendation just in case.

==
Any time you embed text which a user/third party enters or has control
over into another media, ensure that the potentially-unsafe text has any
necessary meta-characters escaped.
==

That means if you want to output a name from the database into a
JavaScript variable, you should run it through jsstringformat to remove
any single ticks etc.

var users_name = '#jsstringformat(my_query.users_name)#';

If you are building an XML document out of user-entered form fields, use
xmlformat.

rootemployee#xmlformat(form.name)#/employee/root

If you are outputting a message in an HTML page, use htmleditformat.

table
tr
td
#htmleditformat(qry_message.message_text)#
/td
/tr
/table

Any time you are evaluating a string as code like as in a JSON string
returned from an external web service, use a JSON parser instead of just
throwing it into an eval() function.

I know those are all generic examples, but I don't think there is
necessarily a silver bullet snippet of code you can paste at the top
of your page that will catch everything.  In theory, if ALL data were
properly escaped/sanitized according to the environment it was being
embedded in, XSS attacks would not exist.  In my opinion, _most_ XSS
attacks happen because programmers get lazy-- a sin I've certainly been
guilty of myself.

~Brad

-Original Message-
From: Ian Rutherford [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 2:06 PM
To: CF-Talk
Subject: Re: Prevent Cross Site scripting

So what do you recommend instead? The built in xxs protection doesn't
catch everything. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303773
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


output column average using coldfusion

2008-04-18 Thread erik tom
IN my code I output the query into the table. The is a column that contains 
time . SAo what i need to do is to get an average to this coumn .

tr
cfset count=0
td 
valign=top#RTrim(Lname)#, #Trim(FName)#cfif Trim(MName) is not  
#Trim(MName)#/cfif cfif DateCompare(ExpDate, now() , d) lt 
1br[iExpired/i]cfelseif Active is not 'Y'br[iNot 
Active/i]/cfif/td
td 
valign=top#TRIM(employeeID)#/td
td 
valign=top#TRIM(location)#/td
td 
valign=top#OpUnit#/td   
td 
valign=top#TRIM(email_address)#/td 
td 
valign=top#DeptID#-#DeptName#/td

!--- write our 
completion dates ---
cfloop 
from=1 to=#arraylen(arrTopics)# index=j

td valign=top#arrComplete[j]#/td
/cfloop
td 
valign=top#FirstLoginDate#/td
td valign=top#LastLoginDate#/td

  cfset ttl= 0
!---this is the column---
td valign=topcfif 
qryTimesOnline.recordcount eq 0nbsp;cfelse 
#qryTimesOnline.Hours#h:#qryTimesOnline.Minutes#m
cfset 
ttl=#qryTimesOnline.Hours#+ttl/cfif/td
   
td valign=topcfif 
qryTimesOnline2.recordcount eq 0nbsp;cfelse 
#qryTimesOnline2.Hours#h:#qryTimesOnline2.Minutes#m/cfif/td
td valign=top#qryTime.cardName#/td
  cfset count=count+1
/tr


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303774
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: output column average using coldfusion

2008-04-18 Thread Barney Boisvert
If they're simple numbers and you're feeling lazy,
#arrayAverage(listToArray(valueList(myQuery.myColumn)))# will do the
deed, though I don't know about the efficiency.  You can just roll up
a total as you loop through the rows and then divide by row count at
the end.

cheers,
barneyb

On Fri, Apr 18, 2008 at 12:36 PM, erik tom [EMAIL PROTECTED] wrote:
 IN my code I output the query into the table. The is a column that contains 
 time . SAo what i need to do is to get an average to this coumn .

  tr
 cfset count=0
 td 
 valign=top#RTrim(Lname)#, #Trim(FName)#cfif Trim(MName) is not  
 #Trim(MName)#/cfif cfif DateCompare(ExpDate, now() , d) lt 
 1br[iExpired/i]cfelseif Active is not 'Y'br[iNot 
 Active/i]/cfif/td
 td 
 valign=top#TRIM(employeeID)#/td
 td 
 valign=top#TRIM(location)#/td
 td 
 valign=top#OpUnit#/td
 td 
 valign=top#TRIM(email_address)#/td
 td 
 valign=top#DeptID#-#DeptName#/td

 !--- write 
 our completion dates ---
 cfloop 
 from=1 to=#arraylen(arrTopics)# index=j
   
   td valign=top#arrComplete[j]#/td
 /cfloop
 td 
 valign=top#FirstLoginDate#/td
 td valign=top#LastLoginDate#/td

   cfset ttl= 0
  !---this is the column---
 td valign=topcfif 
 qryTimesOnline.recordcount eq 0nbsp;cfelse 
 #qryTimesOnline.Hours#h:#qryTimesOnline.Minutes#m
 cfset 
 ttl=#qryTimesOnline.Hours#+ttl/cfif/td

 td valign=topcfif 
 qryTimesOnline2.recordcount eq 0nbsp;cfelse 
 #qryTimesOnline2.Hours#h:#qryTimesOnline2.Minutes#m/cfif/td
 td valign=top#qryTime.cardName#/td
   cfset count=count+1
 /tr


  

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303775
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: output column average using coldfusion

2008-04-18 Thread Brad Wood
Actually, you don't even need to convert it to a list and back to an
array,  Just do this:

#arrayavg(myQuery['myColumn'])#

~Brad

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 2:46 PM
To: CF-Talk
Subject: Re: output column average using coldfusion

If they're simple numbers and you're feeling lazy,
#arrayAverage(listToArray(valueList(myQuery.myColumn)))# will do the
deed, though I don't know about the efficiency.  You can just roll up
a total as you loop through the rows and then divide by row count at
the end.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303776
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: output column average using coldfusion

2008-04-18 Thread erik tom
If they're simple numbers and you're feeling lazy,
#arrayAverage(listToArray(valueList(myQuery.myColumn)))# will do the
deed, though I don't know about the efficiency.  You can just roll up
a total as you loop through the rows and then divide by row count at
the end.

cheers,
barneyb

On Fri, Apr 18, 2008 at 12:36 PM, erik tom [EMAIL PROTECTED] wrote:


I need to get totalwhen i am already outside the loop
!--- Loop over learners ---
cfloop query=getLearners 
cfif lastlearner is not LID
cfset pCardCnt = pCardCnt + 1 

!--- get all complete 
dates ---
cfquery 
name=getCompletionDate datasource=cfellearner dbtype=ODBC
select 
CompletionDate, CurriculumID
from 
learnerResults
where 
CurriculumID in (257,258,259,260)
and 
LessonNumber = 0
and 
learnerID = #LID#
order by 
CurriculumID
/cfquery

 cfquery name=qryTime datasource=cfelsunrise 
dbtype=ODBC
select * from kioskcard where 
empId=#getLearners.employeeID#

/cfquery

cfquery name=qryTimesOnline datasource=cfelsunrise 
dbtype=ODBC
select * from TimesOnline where 
empId=#getLearners.employeeID# and coursename like 'Activity Programming%'

/cfquery

cfquery name=qryTimesOnline2 datasource=cfelsunrise 
dbtype=ODBC
select * from TimesOnline where 
empId=#getLearners.employeeID# and coursename like 'Dining Services%'

/cfquery
!--- setup complete 
array ---
cfset arrComplete = 
arrayNew(1)

!--- Setup default 
values to spaces ---
cfloop from=1 
to=#arraylen(arrTopics)# index=i
cfset 
arrComplete[i] = nbsp;
/cfloop

!--- setup array with 
complete dates if they exist ---   
 
cfloop 
query=getCompletionDate
cfif 
CompletionDate gt 0
cfif 
arrCurrID[1] eq CurriculumID

cfset arrComplete[1] = #dateFormat(CompletionDate,mm/dd/)#

cfelseif arrCurrID[2] eq CurriculumID

cfset arrComplete[2] = #dateFormat(CompletionDate,mm/dd/)#

cfelseif arrCurrID[3] eq CurriculumID

cfset arrComplete[3] = #dateFormat(CompletionDate,mm/dd/)#

cfelseif arrCurrID[4] eq CurriculumID

cfset arrComplete[4] = #dateFormat(CompletionDate,mm/dd/)#
/cfif
/cfif
/cfloop

!--- default complete counter 
--- 
cfset cntComplete = 0

!--- count the spaces in the 
array ---
  

args arg collections

2008-04-18 Thread Leitch, Oblio
Can someone explain why I can't pass an unnamed argument set from one
function to another?

cffunction name=testMe2 output=1
  cfargument name=one type=string
  cfdump var=#arguments#
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments#
  cfinvoke method=testMe2 argumentcollection=#arguments# /
/cffunction

cfoutput
  #testMe(sample string)#
/ cfoutput 






v--- ignore this ---v

This email message may contain privileged and/or confidential information. If 
you are not the intended recipient(s), you are hereby notified that any 
dissemination, distribution, or copying of this email message is strictly 
prohibited. If you have received this message in error, please immediately 
notify the sender and delete this email message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality or 
security of email transmissions.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303778
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: args arg collections

2008-04-18 Thread Gaulin, Mark
Try this (below) and you'll see why... The arguments collection is key
 value and testMe assigns a key of 1 to the first argument, which
doesn't match any of the arguments to testMe2.

cffunction name=testMe2 output=1
  cfargument name=one type=string
  cfdump var=#arguments#
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments#
!---  cfinvoke method=testMe2 argumentcollection=#arguments# /
---
/cffunction

cfoutput
  #testMe2(sample string)#
  #testMe(sample string)#
/cfoutput 

-Original Message-
From: Leitch, Oblio [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 4:55 PM
To: CF-Talk
Subject: args  arg collections

Can someone explain why I can't pass an unnamed argument set from one
function to another?

cffunction name=testMe2 output=1
  cfargument name=one type=string
  cfdump var=#arguments#
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments#
  cfinvoke method=testMe2 argumentcollection=#arguments# /
/cffunction

cfoutput
  #testMe(sample string)#
/ cfoutput 






v--- ignore this ---v

This email message may contain privileged and/or confidential
information. If you are not the intended recipient(s), you are hereby
notified that any dissemination, distribution, or copying of this email
message is strictly prohibited. If you have received this message in
error, please immediately notify the sender and delete this email
message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality
or security of email transmissions.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303779
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: args arg collections

2008-04-18 Thread Leitch, Oblio
Yes, I could *always* use the names, but I'm trying to run the function
with unnamed arguments.  Additionally, I explicitly want to pass
arguments from one to the next.

-Original Message-
From: Gaulin, Mark [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 5:06 PM
To: CF-Talk
Subject: RE: args  arg collections

Try this (below) and you'll see why... The arguments collection is key
 value and testMe assigns a key of 1 to the first argument, which
doesn't match any of the arguments to testMe2.

cffunction name=testMe2 output=1
  cfargument name=one type=string
  cfdump var=#arguments#
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments#
!---  cfinvoke method=testMe2 argumentcollection=#arguments# /
---
/cffunction

cfoutput
  #testMe2(sample string)#
  #testMe(sample string)#
/cfoutput 

-Original Message-
From: Leitch, Oblio [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 4:55 PM
To: CF-Talk
Subject: args  arg collections

Can someone explain why I can't pass an unnamed argument set from one
function to another?

cffunction name=testMe2 output=1
  cfargument name=one type=string
  cfdump var=#arguments#
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments#
  cfinvoke method=testMe2 argumentcollection=#arguments# /
/cffunction

cfoutput
  #testMe(sample string)#
/ cfoutput 






v--- ignore this ---v

This email message may contain privileged and/or confidential
information. If you are not the intended recipient(s), you are hereby
notified that any dissemination, distribution, or copying of this email
message is strictly prohibited. If you have received this message in
error, please immediately notify the sender and delete this email
message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality
or security of email transmissions.





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303780
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ColdFusio 8.0.1 cfinput binded variable truncating off leading zero in a text string?

2008-04-18 Thread James Blaha
The zero is not missing going into the query its missing going back to the 
cfinput text box. If I dump the CFC results the leading zero is there. 
Something is happening with the bind output results. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303781
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftextarea: how to count characters? maxlength

2008-04-18 Thread Kris Jones
theBody is the field name.
theBodyTest is a javascript variable that's holding the XHTML content returned.

Make sense?

(And no, you're not being a dumb ass...)

Cheers,
Kris

 hey Kris..
  sry to be a dumb ass

  but is 'theBody' the form name?
  is 'theBodyTest' the cftextarea name?


  its such a cool js
  just want to be able to use it...

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303782
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Prevent Cross Site scripting

2008-04-18 Thread Dave Watts
 So what do you recommend instead? The built in xxs protection 
 doesn't catch everything.

I recommend that you consider accepting and storing unsafe strings, and
escape them appropriately when displaying them.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303783
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Ajax: Who's into Ajax and Business Cases

2008-04-18 Thread Don L
First of all, the Ajax list activitity is not high, hence, I'm posting it to 
this one for more readership (it's also cf-related).

The main purpose of this post to find out who in this community are Much Into 
Ajax (I wish I could make them bold, to stand out), and equally important, you 
know how to make business cases with ajax features and functions.

Secondly, about Ajax resource (even cf-specific ajax resources) sharing.  Let 
me start with one, I find www.ajaxian.com useful.

Thanks.

P.S. 1) It would be nice if people post Ajax related topic with prefix of 
Ajax:  for future reference.
P.S. 2) I propose to the list owner, to consider to expand the ColdFusion 
Talk to Web App Development Talk centered on ColdFusion, I know a bit long 
...


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303784
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


URL re-write SEO friendly

2008-04-18 Thread Bryan Stevenson
Hey Allpassing this along for a co-worker.



Hello All --   I am working on a database driven website that can access
individual records with a URL like this:
http://www.domainname.com/index.cfm?pg=listing_detailsid=83hit=1popup=0preview=1
 

In order to make the URL more SEO friendly, we are using a URL handler
that lets us structure the URL this way:
http://www.domainname.com/index.cfm/pg/listing_details/id/83/hit/1/popup/0/preview/1
  

By removing the ? and  symbols, we make the URL easier for search
engines to navigate.   Now, the SEO company is suggesting that we
shorten the URL right down to the following:
http://www.domainname.com/83/

I've seen many sites use more human readable URLs like the above or like
so:
http://www.domainname.com/gardentools

Which would take you to the garden tool category of a data driven web
catalogue (instead of explicitly passing the category ID via the URL).

TIA

Cheers
-- 


Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303785
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: URL re-write SEO friendly

2008-04-18 Thread Adrian Lynch
You haven't really asked a question but...

 if it's a choice between /83/ or /gardentools/ and your page isn't about
the number 83, go with the later.

Adrian

-Original Message-
From: Bryan Stevenson
Sent: 18 April 2008 23:44
To: CF-Talk
Subject: URL re-write SEO friendly


Hey Allpassing this along for a co-worker.



Hello All --   I am working on a database driven website that can access
individual records with a URL like this:
http://www.domainname.com/index.cfm?pg=listing_detailsid=83hit=1popup=0p
review=1

In order to make the URL more SEO friendly, we are using a URL handler
that lets us structure the URL this way:
http://www.domainname.com/index.cfm/pg/listing_details/id/83/hit/1/popup/0/p
review/1

By removing the ? and  symbols, we make the URL easier for search
engines to navigate.   Now, the SEO company is suggesting that we
shorten the URL right down to the following:
http://www.domainname.com/83/

I've seen many sites use more human readable URLs like the above or like
so:
http://www.domainname.com/gardentools

Which would take you to the garden tool category of a data driven web
catalogue (instead of explicitly passing the category ID via the URL).

TIA

Cheers
--


Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303786
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: URL re-write SEO friendly

2008-04-18 Thread Bobby Hartsfield
Is there a question?

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 6:44 PM
To: CF-Talk
Subject: URL re-write SEO friendly

Hey Allpassing this along for a co-worker.



Hello All --   I am working on a database driven website that can access
individual records with a URL like this:
http://www.domainname.com/index.cfm?pg=listing_detailsid=83hit=1popup=0p
review=1 

In order to make the URL more SEO friendly, we are using a URL handler
that lets us structure the URL this way:
http://www.domainname.com/index.cfm/pg/listing_details/id/83/hit/1/popup/0/p
review/1  

By removing the ? and  symbols, we make the URL easier for search
engines to navigate.   Now, the SEO company is suggesting that we
shorten the URL right down to the following:
http://www.domainname.com/83/

I've seen many sites use more human readable URLs like the above or like
so:
http://www.domainname.com/gardentools

Which would take you to the garden tool category of a data driven web
catalogue (instead of explicitly passing the category ID via the URL).

TIA

Cheers
-- 


Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.






~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303787
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: output column average using coldfusion

2008-04-18 Thread Brian Kotek
I have to point out that this approach is terribly inefficient. Calculations
like this should be in at the database level using SQL, that's exactly what
it's supposed to do. Any time you're looping over queries to run more
queries, or to total things up, it should be a big red flag, because in
almost every situation the same thing can be done in SQL more easily and far
more quickly.

On Fri, Apr 18, 2008 at 3:36 PM, erik tom [EMAIL PROTECTED] wrote:

 IN my code I output the query into the table. The is a column that
 contains time . SAo what i need to do is to get an average to this coumn .

 tr
cfset count=0
td
 valign=top#RTrim(Lname)#, #Trim(FName)#cfif Trim(MName) is not 
 #Trim(MName)#/cfif cfif DateCompare(ExpDate, now() , d) lt
 1br[iExpired/i]cfelseif Active is not 'Y'br[iNot
 Active/i]/cfif/td
td
 valign=top#TRIM(employeeID)#/td
td
 valign=top#TRIM(location)#/td
td
 valign=top#OpUnit#/td
td
 valign=top#TRIM(email_address)#/td
td
 valign=top#DeptID#-#DeptName#/td

!--- write
 our completion dates ---
cfloop
 from=1 to=#arraylen(arrTopics)# index=j

  td valign=top#arrComplete[j]#/td
/cfloop
td
 valign=top#FirstLoginDate#/td
td valign=top#LastLoginDate#/td

  cfset ttl= 0
 !---this is the column---
td valign=topcfif
 qryTimesOnline.recordcount eq 0nbsp;cfelse
 #qryTimesOnline.Hours#h:#qryTimesOnline.Minutes#m
cfset
 ttl=#qryTimesOnline.Hours#+ttl/cfif/td

td valign=topcfif
 qryTimesOnline2.recordcount eq 0nbsp;cfelse
 #qryTimesOnline2.Hours#h:#qryTimesOnline2.Minutes#m/cfif/td
td valign=top#qryTime.cardName#/td
  cfset count=count+1
/tr


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303788
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax: Who's into Ajax and Business Cases

2008-04-18 Thread James Holmes
It would also be nice if people posted ajax topics in the ajax list
and OT threads in CF-OT but history shows that's not likely either.

On Sat, Apr 19, 2008 at 6:34 AM, Don L [EMAIL PROTECTED] wrote:

  P.S. 1) It would be nice if people post Ajax related topic with prefix of 
 Ajax:  for future reference.
  P.S. 2) I propose to the list owner, to consider to expand the ColdFusion 
 Talk to Web App Development Talk centered on ColdFusion, I know a bit long 
 ...


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

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303789
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: URL re-write SEO friendly

2008-04-18 Thread Russ
I think he would probably want it to be something like 

http://www.domain.com/garden_tools/83

Then all you have to do is ignore the first directory and pass the second
directory to CF.  You can have a generic rewrite done in Apache 

Something like 

RewriteRule ^/([^/]+)/([0-9]+)/*
http://www.domainname.com/index.cfm?pg=listing_detailsid=$2hit=1popup=0p
review=1

Russ

 -Original Message-
 From: Adrian Lynch [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 18, 2008 7:06 PM
 To: CF-Talk
 Subject: RE: URL re-write SEO friendly
 
 You haven't really asked a question but...
 
  if it's a choice between /83/ or /gardentools/ and your page isn't
 about
 the number 83, go with the later.
 
 Adrian
 
 -Original Message-
 From: Bryan Stevenson
 Sent: 18 April 2008 23:44
 To: CF-Talk
 Subject: URL re-write SEO friendly
 
 
 Hey Allpassing this along for a co-worker.
 
 
 
 Hello All --   I am working on a database driven website that can access
 individual records with a URL like this:
 http://www.domainname.com/index.cfm?pg=listing_detailsid=83hit=1popup=0
 p
 review=1
 
 In order to make the URL more SEO friendly, we are using a URL handler
 that lets us structure the URL this way:
 http://www.domainname.com/index.cfm/pg/listing_details/id/83/hit/1/popup/0
 /p
 review/1
 
 By removing the ? and  symbols, we make the URL easier for search
 engines to navigate.   Now, the SEO company is suggesting that we
 shorten the URL right down to the following:
 http://www.domainname.com/83/
 
 I've seen many sites use more human readable URLs like the above or like
 so:
 http://www.domainname.com/gardentools
 
 Which would take you to the garden tool category of a data driven web
 catalogue (instead of explicitly passing the category ID via the URL).
 
 TIA
 
 Cheers
 --
 
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303790
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Ajax: Who's into Ajax and Business Cases

2008-04-18 Thread Bobby Hartsfield
If everyone wanted to talk about Ajax enough to expand the list, they'd be
on the Ajax list. 'the list owner' has worked hard to make this list what it
is and continues to work hard keeping off-topic traffic off of it for a
reason. Why willingly open up the flood gates now just because you have some
off topic questions that don't get answered somewhere else?

  P.S. 2) I propose to the list owner, to consider to expand the
ColdFusion Talk to Web App Development Talk centered on ColdFusion, I
know a bit long ...


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



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303791
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Prevent Cross Site scripting

2008-04-18 Thread Andrew Grosset
Why store junk? if you're going to store data shouldn't it be escaped/purified 
before you store it? then you're escaping it once as opposed to escaping it 
1000's of times every time you display/output it?

 So what do you recommend instead? The built in xxs protection 
 doesn't catch everything.

I recommend that you consider accepting and storing unsafe strings, and
escape them appropriately when displaying them.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/ 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303792
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Prevent Cross Site scripting

2008-04-18 Thread Brad Wood
How do you know it's junk?  Let's say you have a last name of O'reilly
entered into a form field.  That string will break the following of
code:

script language=javascript
alert('#last_name#');
/script

You would not want to remove the tick from the name in the database, as
now you have lost part of your data.  Instead you sanitize it at the
time you output it with jsstringformat.

Now, some of you are probably thinking, Why don't you just escape it
when you put it into the database?  My answer to that is, How do you
know in what context that data might need to be displayed?  If you
escape the data for a JavaScript string at the time you store it, then
it won't look right when you want to output it in HTML.  OK, so you
might think you should escape it for HTML at the time you store it-- now
you write a flex front-end for your app and wish to display it in Flash.


There are reasons other than malicious attacks to clean your data, and
it is my option that the interface responsible for displaying the data
should also be responsible for cleaning it appropriately.  If that is
done, O'Reilly won't be an issue and neither will XSS.

If you are concerned about the performance implications of formatting
the data over and over again you could cache static pages and serve them
up.  If your data is ever-changing, I consider this overhead a small
price to pay that comes with the business of storing and regurgitating
data.

~Brad

-Original Message-
From: Andrew Grosset [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 7:38 PM
To: CF-Talk
Subject: Re: Prevent Cross Site scripting

Why store junk? if you're going to store data shouldn't it be
escaped/purified before you store it? then you're escaping it once as
opposed to escaping it 1000's of times every time you display/output it?

 So what do you recommend instead? The built in xxs protection 
 doesn't catch everything.

I recommend that you consider accepting and storing unsafe strings,
and
escape them appropriately when displaying them.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/ 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303793
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: args arg collections

2008-04-18 Thread Azadi Saryev
i ran your code on cf8.1 and got 2 dumps back:

dump 1: struct 1 sample string
dump 2: struct ONE sample string

this code ran fine as well, outputting 2 dumps:

cffunction name=testMe2 output=1
  cfdump var=#arguments# label=testMe2 args
/cffunction

cffunction name=testMe output=1
  cfdump var=#arguments# label=testMe1args
  cfinvoke method=testMe2 argumentcollection=#arguments# /
/cffunction

cfoutput
  #testMe(sample string)#
/cfoutput

i have also put the above 2 funcs in a cfc and called it with cfset t =
createobject('component', 'test').testMe('hello there!') and still got
2 dumps back...

which version of cf are you running? how is this not working in your
case (errors? no output?)? am i missing something here?

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



Leitch, Oblio wrote:
 Yes, I could *always* use the names, but I'm trying to run the function
 with unnamed arguments.  Additionally, I explicitly want to pass
 arguments from one to the next.



 -Original Message-
 From: Leitch, Oblio [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 18, 2008 4:55 PM
 To: CF-Talk
 Subject: args  arg collections

 Can someone explain why I can't pass an unnamed argument set from one
 function to another?

 cffunction name=testMe2 output=1
   cfargument name=one type=string
   cfdump var=#arguments#
 /cffunction

 cffunction name=testMe output=1
   cfdump var=#arguments#
   cfinvoke method=testMe2 argumentcollection=#arguments# /
 /cffunction

 cfoutput
   #testMe(sample string)#
 / cfoutput 

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303794
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFPOD - dynamic width?

2008-04-18 Thread Azadi Saryev
cfpod is just a regular styled div with class=ypod and a unique id
asigned by cf.
so unless you have several of those on a page, which will make it harder
to get their div's, you can easily use js to change the pod's width to 100%.
i prefer jQuery for such things (DOM manipulation)...

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



Kevin Ross wrote:
 It was requested of me to use cfpod for a project and I've run into a 
 roadblock early on.  I've found out that the width of a cfpod can only be set 
 in pixels.  It seems odd to me that this tag does not support widths as 
 percentages, but that's how it is.  I've searched and can't find much info on 
 plausible workarounds, so I figured I'd ask here if anyone has a solution to 
 making a cfpod width=100%?  Thanks! 

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303795
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Prevent Cross Site scripting

2008-04-18 Thread Andrew Grosset
Sorry, you haven't convinced me, I appreciate what you're saying but having to 
cache the static pages after you've cleansed them doesn't seem right either

Of course if you're relying on javascript to display as in ajax then you have a 
point.

Andrew.

How do you know it's junk?  Let's say you have a last name of O'reilly
entered into a form field.  That string will break the following of
code:

script language=javascript
   alert('#last_name#');
/script

You would not want to remove the tick from the name in the database, as
now you have lost part of your data.  Instead you sanitize it at the
time you output it with jsstringformat.

Now, some of you are probably thinking, Why don't you just escape it
when you put it into the database?  My answer to that is, How do you
know in what context that data might need to be displayed?  If you
escape the data for a JavaScript string at the time you store it, then
it won't look right when you want to output it in HTML.  OK, so you
might think you should escape it for HTML at the time you store it-- now
you write a flex front-end for your app and wish to display it in Flash.


There are reasons other than malicious attacks to clean your data, and
it is my option that the interface responsible for displaying the data
should also be responsible for cleaning it appropriately.  If that is
done, O'Reilly won't be an issue and neither will XSS.

If you are concerned about the performance implications of formatting
the data over and over again you could cache static pages and serve them
up.  If your data is ever-changing, I consider this overhead a small
price to pay that comes with the business of storing and regurgitating
data.

~Brad

Why store junk? if you're going to store data shouldn't it be
escaped/purified before you store it? then you're escaping it once as
opposed to escaping it 1000's of times every time you display/output it?

 So what do you recommend instead? The built in xxs protection 
 doesn't catch everything.

I recommend that you consider accepting and storing unsafe strings,
and 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303796
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Prevent Cross Site scripting

2008-04-18 Thread Dave Watts
 Why store junk? if you're going to store data shouldn't it be 
 escaped/purified before you store it? then you're escaping it 
 once as opposed to escaping it 1000's of times every time you 
 display/output it?

As Brad pointed out, who's to say what's junk? It is impossible, practically
speaking, to identify every possible bad character that may exist in your
data, and you may want to use that data in different ways and different
places. You may, in fact, want to use data in new ways in the future, only
to find that you have new vulnerabilities for which your current data is
unsanitized.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303797
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Prevent Cross Site scripting

2008-04-18 Thread Bobby Hartsfield
Displaying or using data now in one way doesn't necessarily mean that's how
you or someone else may need or want to display or use it later. It has been
my experience that storing data just as it was entered is the better
solution all around. Once you strip information out that you deem unsafe for
your current needs, you can't get it back later if/when you or someone else
decides otherwise.

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Andrew Grosset [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 11:12 PM
To: CF-Talk
Subject: Re: Prevent Cross Site scripting

Sorry, you haven't convinced me, I appreciate what you're saying but having
to cache the static pages after you've cleansed them doesn't seem right
either

Of course if you're relying on javascript to display as in ajax then you
have a point.

Andrew.

How do you know it's junk?  Let's say you have a last name of O'reilly
entered into a form field.  That string will break the following of
code:

script language=javascript
   alert('#last_name#');
/script

You would not want to remove the tick from the name in the database, as
now you have lost part of your data.  Instead you sanitize it at the
time you output it with jsstringformat.

Now, some of you are probably thinking, Why don't you just escape it
when you put it into the database?  My answer to that is, How do you
know in what context that data might need to be displayed?  If you
escape the data for a JavaScript string at the time you store it, then
it won't look right when you want to output it in HTML.  OK, so you
might think you should escape it for HTML at the time you store it-- now
you write a flex front-end for your app and wish to display it in Flash.


There are reasons other than malicious attacks to clean your data, and
it is my option that the interface responsible for displaying the data
should also be responsible for cleaning it appropriately.  If that is
done, O'Reilly won't be an issue and neither will XSS.

If you are concerned about the performance implications of formatting
the data over and over again you could cache static pages and serve them
up.  If your data is ever-changing, I consider this overhead a small
price to pay that comes with the business of storing and regurgitating
data.

~Brad

Why store junk? if you're going to store data shouldn't it be
escaped/purified before you store it? then you're escaping it once as
opposed to escaping it 1000's of times every time you display/output it?

 So what do you recommend instead? The built in xxs protection 
 doesn't catch everything.

I recommend that you consider accepting and storing unsafe strings,
and 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303798
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4