Re: why use coldfusion 7? (Result)

2005-05-24 Thread mike hanson
Thanks in part to your responses I have agreement to skip cf6 and go straight 
to 7.

:-)

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207509
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: (OT) Object tag - text/html in IE Cross Domain

2005-05-24 Thread Micha Schopman
Jim,

This is done for security reasons. Imagine someone creating his own
scripting to access Javascript methods which return sensitive
information (bankaccount).

There are some things one can do, like P3P tags, but essentially it
comes down to someone modifying the cross domain scripting settings in
the browser.

For IE, this is down by a checkbox, and for FireFox you need to
uncomment some lines and invoke the PrivilegeManager to enable
UniversalBrowserRead.

if (typeof netscape != 'undefined'  typeof netscape.security !=
'undefined'){

netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead
');
}

Sometimes it can be a pain in the ass, but I am glad the security is
there. 

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 


-

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 mei 2005 3:19
To: CF-Talk
Subject: RE: (OT) Object tag - text/html in IE Cross Domain

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 23, 2005 9:25 PM
 To: CF-Talk
 Subject: RE: (OT) Object tag - text/html in IE Cross Domain
 
 ROFL.
 
 It's similar to an iframe in the way it works (and that's how I ended
up
 doing it) but there is one small difference - an iframe's navigation
is
 self-contained (i.e. links open inside the iframe) whereas the object
 tag's links (by default) target the browser containing the tag like
any
 other. This difference may be more of a security hassle, I guess.
 Luckily in this instance the code I included had no links so the end
 result was anlomst identical using the iframe.

The only reason I'm being such a prick about this is that I've been
through
it.

Our company was bought out and we wanted to combine our websites -
content
from both servers in the same frame.  But we had all sorts of cross-site
scripting issues.

I spent some time and figured out an inelegant, but perfectly usable
system
for passing information across sites using the status bar.  This was
because
it turned out that browsers from different domains could still both read
and
write to the status bar (at the time it worked in everything but IE 5.5
-
although oddly it did work in IE 6).

The code essentially created asynchronous messaging queues between two
sites
- it was actually pretty slick.  (I've still got it if anybody wants to
take
a look.)  It allowed scripts from different domains to share text data.

(As an aside I still think that's something that should be allowed via
some
specialized code.  There should be some standardized location -
something
like a public object which is accessible to all scripts in the
instance -
that way different sites that choose to share data would have the
ability
too, but the default behavior would be safe.)

I made the mistake of posting a question about how to fix the IE 5.5
issue
to a public forum which started a whole tirade about cross-site browser
security.  Several people sent messages to the various vendors - now my
code
doesn't work in any of the new browsers.

Because of that I'm just overly wary of taking advantage of anything
that
even has shades of that.  I just don't want to get used to something
only to
have the capability disabled just when I've gotten used to relying on
it.
;^)

Jim Davis






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207510
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


SMTP problems

2005-05-24 Thread Protoculture
Some of our email seems to get lost and either stuck in the queue or not sent 
at all. I checked the log files of the SMTP server and found this... what do 
you guys make of it?

any idea why our email server would be returning this in the log file?

00:03:44 dns_query: rcode=refused for from 158.152.1.43:53 

00:06:24 dns_query: rcode=refused for from 158.152.1.58:53

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207511
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Verity and Security

2005-05-24 Thread Ian Vaughan
Ray

Thanks for your help the following q of q solved the problem

cfquery name=GetResults dbtype=query select * from GetResults
where custom2 IN (#PreserveSingleQuotes(session.groupname)#) /cfquery 

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2005 18:02
To: CF-Talk
Subject: Re: Verity and Security

Not handy - but check the docs. Basically - assuming data is your info
from cfsearch, you can do (pseudo-code)

cfquery name=filteredData dbtype=query select * from data where
cf_custom2 = put your session var here /cfquery



On 5/23/05, Ian Vaughan [EMAIL PROTECTED] wrote:
 Seems very strange how it does not work ?
 
 Do you have an example of a query of query I could use to test please,
 
 -Original Message-
 From: Raymond Camden [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2005 14:32
 To: CF-Talk
 Subject: Re: Verity and Security
 
 Sorry then - I'm at a lost. As I mentioned, when I tried a local 
 version, it worked just fine. You could consider using query of query 
 to filter the results.
 
 On 5/23/05, Ian Vaughan [EMAIL PROTECTED] wrote:
  Yes, tried CONTAINS as well, same result - no records found ?
 
  -Original Message-
  From: Raymond Camden [mailto:[EMAIL PROTECTED]
  Sent: 20 May 2005 17:10
  To: CF-Talk
  Subject: Re: Verity and Security
 
  Did you try CONTAINS as well?
 
  On 5/20/05, Ian Vaughan [EMAIL PROTECTED] wrote:
   Nope even with the quotes shown in the results page I sent in the 
   last
 
   post, the search is returning no results ? .
  
   What is strange though is if I remove the
  
   and CF_CUSTOM2 IN #session.groupname#
 
 
 
 
 
 
 
 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207512
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SMTP problems

2005-05-24 Thread Jochem van Dieten
Protoculture wrote:
 
 any idea why our email server would be returning this in the log file?
 
 00:03:44 dns_query: rcode=refused for from 158.152.1.43:53 

I guess it misses a record to query for and it should read:
00:03:44 dns_query: rcode=refused for record from 158.152.1.43:53

That would imply you have email addresses which have no FQDN 
after canonicalization.

Jochem

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207513
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: String to SHA1 to Base 64 Encryption Help!

2005-05-24 Thread Jochem van Dieten
Aldon wrote:
 
 Imports System.Security.Cryptography
 Private Function ComputeHash(ByVal Key As String) As String
 Dim objSHA1 As New SHA1CryptoServiceProvider
 objSHA1.ComputeHash(System.Text.Encoding.UTF8.GetBytes(Key.ToCharArray))
 Dim buffer() As Byte = objSHA1.Hash
 Dim HashValue As String = System.Convert.ToBase64String(buffer)

This is Base64 encoded.


 http://www.cflib.org/udf.cfm?ID=34

It looks like this is Hex.

How do the strings look?

Jochem

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207514
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SMTP problems

2005-05-24 Thread Protoculture
huh? so what does that mean to someone who has no idea about SMTP?

Protoculture wrote:
 
 any idea why our email server would be returning this in the log file?
 
 00:03:44 dns_query: rcode=refused for from 158.152.1.43:53 

I guess it misses a record to query for and it should read:
00:03:44 dns_query: rcode=refused for record from 158.152.1.43:53

That would imply you have email addresses which have no FQDN 
after canonicalization.

Jochem

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207515
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SMTP problems

2005-05-24 Thread Paul Hastings
Protoculture wrote:
 huh? so what does that mean to someone who has no idea about SMTP?

dns-speak for:

FQDN == fully qualified domain name
canonicalization == converting domain names (or any kind of data) into 
some standard representation

validated/scrubbed your email addresses?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207516
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Verity and Security

2005-05-24 Thread James Holmes
cf_smug
All of this guff makes me glad I have Oracle Text at my command. With
one query I can add any number of custom criteria to a full-text query
and get back exactly what I want. Anyone who has Oracle should check it
out.
/cf_smug

-Original Message-
From: Ian Vaughan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 May 2005 4:49 
To: CF-Talk
Subject: RE: Verity and Security

Ray

Thanks for your help the following q of q solved the problem

cfquery name=GetResults dbtype=query select * from GetResults
where custom2 IN (#PreserveSingleQuotes(session.groupname)#) /cfquery 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207517
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Verity Problem running with NT account

2005-05-24 Thread John Beynon
Here's my environment.

Two Windows 2003 servers, IIS6, CF7 using Windows Load Balancing 
ColdFusion Standard in a windows domain

Code is all served up from a clustered fileshare. CFMX is running as a
domain account as well as the Search Service. Both ColdFusions are
configured to talk to the same verity collection located on the
fileshare, (with CFMX and IIS service account have correct access
permissions set). This has been successfully created in both CF
administrators and populated from one of the nodes in the web farm.
Clicking Optimize in both admin works fine.

However a simple search against the collection results in;

 There was a problem executing the CFSearch tag with the following collections.
Collection (status code): intranet_live_54articles (-1705)

extended debugging doesn't reveal any further info either...not very helpful! 

any clues?


john.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207518
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Verity Problem running with NT account

2005-05-24 Thread John Beynon
in a second test, creating a local verity collection and leaving search/cfmx 
running as a cfmxservice account i was able to query the collection (populated 
with the same data)

Am i able to have verity access remote collections? Is it a good idea to have a 
single collection being accessed by two Cfs or would i be best to have two 
seperate local collections?

john

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207519
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: why use coldfusion 7? (Result)

2005-05-24 Thread Calvin Ward
Congratulations!

Looking forward to helping out with your migration questions :P

There's a great manual that comes with 7 (maybe only in pdf) that talks
about the migration process and considerations.

- Calvin


On 5/24/05 2:44 AM, mike hanson [EMAIL PROTECTED] wrote:

 Thanks in part to your responses I have agreement to skip cf6 and go straight
 to 7.
 
 :-)
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207520
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SMTP problems

2005-05-24 Thread Protoculture
Alright, so I did some more digging and found the following problem that seems 
to plague or system...

WSACONNABORTED - Software caused connection abort.
An established connection was aborted by the software in your host machine, 
possibly due to a data transmission timeout or protocol error.

It seems certian email accounts and not getting sent out by our system any 
ideas?


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207521
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Thank you Pascal for your answer. But don't work for us. With CF
I(administrator user) can view all files stored in that protected
dir/server. But final user(without rights for read/write) don't...
Using cflocation, cffile with read and after write, all fails... Do
you have other choice?

Can help us?

Thanks for your time.

2005/5/23, Pascal Peters [EMAIL PROTECTED]:
 Use cfcontent to do that
 
 cfheader name=Content-Disposition value=attachment;
 filename=#attributes.filename#
 cfcontent type=#attributes.mimetype# file=#attributes.file#
 deletefile=No
 
 Pascal
 
  -Original Message-
  From: Michel Deloux [mailto:[EMAIL PROTECTED]
  Sent: 23 May 2005 16:54
  To: CF-Talk
  Subject: Viewing files in another server/directory outside CF server
 
  Hi all
 
  I can upload files to CA_LA_Fresno server using CF user. CF user haves
  administrator properties. But my user don't have permission to access
  that server/directory. It's possible to my users see that file in your
  browser or Word?
 
  How?
 
  Thanks in advance
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207522
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: There's got to be a way around this

2005-05-24 Thread Dave Watts
 There are generally two reasons for something like that:
 
 1) The code is very old - we've still got code from CF 2.0 
 around and it's pretty damn nasty.  ;^) A lot of the stuff 
 we take for granted (structs, scopes as structs, even arrays)
 didn't exist in earlier versions of the language.

In this case, I don't think that's an excuse, since CF has had
FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to
let you get a list of the form fields so you could process them. Now, of
course, we have the Form scope exposed as a structure, which is nicer, but
the required functionality for generalized form handlers has been there all
the time.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207523
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: There's got to be a way around this

2005-05-24 Thread S . Isaac Dealey
 I'm not sure what you're asking and want to be.

 Ben and Isaac (a biblical sounding pair if ever
 I've heard one) have already shown you several
 methods for accessing arbitrary form fields.
 My confusion is your mention of CFPARAM.

 CFPARAM has nothing specifically to do with
 Forms - it's there to provide default values
 for known variables that may, for some reason,
 not be received.  Its most often used for the
 FORM and URL scopes but can be used for any
 scope at all.

I was confused by this at first and thought wat I was reading about
PHP was a description of a pre-generated array containing an array of
any possible combination of characters of any length, starting with
A and ending with an indeterminate number of extended ascii
characters... Then it dawned on me that he probably hadn't discovered
the form scope yet and was doing something like this:

cfparam name=x default=

instead of this:

cfparam name=form.x default=

I'm still not entirely certain how that comes across as the question
he asked, except perhaps that he's trying to scope his variables as
say variables.x instead of form.x without first copying them down
from the form scope into the variables scope, so the server produces
an error when it doesn't see variables.firstname even though the
firstname input element was a text input. I'm trying to remember if
cfparam name=x default= inserts a value into the variables scope
if there's a form field matching that variable name... It's been so
long since I've used cfparam without scoping the name that I can't
remember what the behavior is.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207524
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Pascal Peters
The final user does not need access to that folder, just CF. Let's say I
want to access a file C:\docs\test.doc, but the user doesn't have access
to C:\docs. CF has access to it, and the user has access to a CF
application in the webroot.
Create a file download.cfm under the webroot somewhere and pot the
following code in it:

cfheader name=Content-Disposition value=attachment;
filename=test.doc
cfcontent type=application/msword file= C:\docs\test.doc
deletefile=No

This should enable the users to download the file by calling
download.cfm. You have to make sure that coldfusion has access to the
folder. Sandbox security may also prevent this, but then you have to
talk to the server admin.

 -Original Message-
 From: Michel Deloux [mailto:[EMAIL PROTECTED]
 Sent: 24 May 2005 13:01
 To: CF-Talk
 Subject: Re: Viewing files in another server/directory outside CF
server
 
 Thank you Pascal for your answer. But don't work for us. With CF
 I(administrator user) can view all files stored in that protected
 dir/server. But final user(without rights for read/write) don't...
 Using cflocation, cffile with read and after write, all fails... Do
 you have other choice?
 
 Can help us?
 
 Thanks for your time.
 
 2005/5/23, Pascal Peters [EMAIL PROTECTED]:
  Use cfcontent to do that
 
  cfheader name=Content-Disposition value=attachment;
  filename=#attributes.filename#
  cfcontent type=#attributes.mimetype# file=#attributes.file#
  deletefile=No
 
  Pascal
 
   -Original Message-
   From: Michel Deloux [mailto:[EMAIL PROTECTED]
   Sent: 23 May 2005 16:54
   To: CF-Talk
   Subject: Viewing files in another server/directory outside CF
server
  
   Hi all
  
   I can upload files to CA_LA_Fresno server using CF user. CF user
haves
   administrator properties. But my user don't have permission to
access
   that server/directory. It's possible to my users see that file in
your
   browser or Word?
  
   How?
  
   Thanks in advance
  
  
 
 
 
 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207525
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


popup blocker detector script

2005-05-24 Thread Simon Cornelius P . Umacob
Basically, you just see if your JavaScript can successfully invoke 
window.open().  There is a myriad of ways to do that, so it would be fun to 
self-explore and look for alternate solutions. :)

Cheers,

[ simon.cpu ]

 i was on a site once and i clicked on popup and it said i had a popup 
 blocker enabled, cant remember site, anyone have a script 4 that?
 
 Thanks
 
 ~Dave the disruptor~ 
 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207526
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


SMS Event Gateway?

2005-05-24 Thread Chris Alvarado
Hello all,

 

Im having some trouble finding some concrete info on exactly what is needed to 
get the SMS Event Gateway working.

 

From what I can gather I can go about it 1 of 2 way.

 

Either obtain SMPP accounts with all of the wireless providers, OR work with a 
Connection Aggregator (3rd party company) to handle all of the SMS requests.

 

Can anyone shed any more light on this, or is this pretty much all there is to 
it?

 

Also, can anyone recommend any good Connection Aggregation companies?

 

Thanks everyone.

 

-chris.alvarado

[ application developer ]

4 Guys Interactive, Inc

 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.16 - Release Date: 5/24/2005
 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207527
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Thanx Pascal

I'm using this script to show to the user

a href=### onclick=javascript:
window.open('file://CA_LA_Fresno/Docs/FresnoPower.doc');
title=Please click here to view this documentoFresnoPower.doc/a

All users have READ only access to Docs subdir.

In that situation if user clicks Internet Explorer show this message:


Error message: Cannot find filename. Make sure the path or Internet
Address is correct.

What do you think about?

Thanx in advance.


2005/5/24, Pascal Peters [EMAIL PROTECTED]:
 The final user does not need access to that folder, just CF. Let's say I
 want to access a file C:\docs\test.doc, but the user doesn't have access
 to C:\docs. CF has access to it, and the user has access to a CF
 application in the webroot.
 Create a file download.cfm under the webroot somewhere and pot the
 following code in it:
 
 cfheader name=Content-Disposition value=attachment;
 filename=test.doc
 cfcontent type=application/msword file= C:\docs\test.doc
 deletefile=No
 
 This should enable the users to download the file by calling
 download.cfm. You have to make sure that coldfusion has access to the
 folder. Sandbox security may also prevent this, but then you have to
 talk to the server admin.
 
  -Original Message-
  From: Michel Deloux [mailto:[EMAIL PROTECTED]
  Sent: 24 May 2005 13:01
  To: CF-Talk
  Subject: Re: Viewing files in another server/directory outside CF
 server
 
  Thank you Pascal for your answer. But don't work for us. With CF
  I(administrator user) can view all files stored in that protected
  dir/server. But final user(without rights for read/write) don't...
  Using cflocation, cffile with read and after write, all fails... Do
  you have other choice?
 
  Can help us?
 
  Thanks for your time.
 
  2005/5/23, Pascal Peters [EMAIL PROTECTED]:
   Use cfcontent to do that
  
   cfheader name=Content-Disposition value=attachment;
   filename=#attributes.filename#
   cfcontent type=#attributes.mimetype# file=#attributes.file#
   deletefile=No
  
   Pascal
  
-Original Message-
From: Michel Deloux [mailto:[EMAIL PROTECTED]
Sent: 23 May 2005 16:54
To: CF-Talk
Subject: Viewing files in another server/directory outside CF
 server
   
Hi all
   
I can upload files to CA_LA_Fresno server using CF user. CF user
 haves
administrator properties. But my user don't have permission to
 access
that server/directory. It's possible to my users see that file in
 your
browser or Word?
   
How?
   
Thanks in advance
   
   
  
  
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207528
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Dave Watts
 I'm using this script to show to the user
 
 a href=### onclick=javascript:
 window.open('file://CA_LA_Fresno/Docs/FresnoPower.doc');
 title=Please click here to view this documentoFresnoPower.doc/a
 
 All users have READ only access to Docs subdir.
 
 In that situation if user clicks Internet Explorer show this message:
 
 Error message: Cannot find filename. Make sure the path or Internet
 Address is correct.

This has nothing to do with CF's permissions to access files, or your web
server's permissions either. You are providing links directly to files, and
your users would need to be able to resolve UNC paths directly to those
files from their workstations for those links to work.

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

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


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207529
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: There's got to be a way around this

2005-05-24 Thread Richard Crawford
On Tuesday 24 May 2005 06:54, S. Isaac Dealey wrote:
 cfparam name=x default=

 instead of this:

 cfparam name=form.x default=

 I'm still not entirely certain how that comes across as the question
 he asked, except perhaps that he's trying to scope his variables as
 say variables.x instead of form.x without first copying them down
 from the form scope into the variables scope, so the server produces
 an error when it doesn't see variables.firstname even though the
 firstname input element was a text input. I'm trying to remember if
 cfparam name=x default= inserts a value into the variables scope
 if there's a form field matching that variable name... It's been so
 long since I've used cfparam without scoping the name that I can't
 remember what the behavior is.

Sort of.  I don't want to have to include the cfparam line at all, though, 
since there are so many times when I won't know what parameters are going to 
be used in a page at the tim that I write it -- such as when a form has been 
dynamically generated and can contain different fields each time it is 
generated, based on user input or results from a database query.

-- 
Richard S. Crawford
http://www.mossroot.com

-- 
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207530
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Thanx Dave,

CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno server.
How to show for our users docs stored in CA_LA_Fresno server with IE?
It's possible? For IE I need to store my files in CF server?



2005/5/24, Dave Watts [EMAIL PROTECTED]:
  I'm using this script to show to the user
 
  a href=### onclick=javascript:
  window.open('file://CA_LA_Fresno/Docs/FresnoPower.doc');
  title=Please click here to view this documentoFresnoPower.doc/a
 
  All users have READ only access to Docs subdir.
 
  In that situation if user clicks Internet Explorer show this message:
 
  Error message: Cannot find filename. Make sure the path or Internet
  Address is correct.
 
 This has nothing to do with CF's permissions to access files, or your web
 server's permissions either. You are providing links directly to files, and
 your users would need to be able to resolve UNC paths directly to those
 files from their workstations for those links to work.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207531
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: There's got to be a way around this

2005-05-24 Thread Richard Crawford
On Monday 23 May 2005 22:03, Jim Davis wrote:
 The developer in question used it as an example of how hard it was to do
 simple things in CF compared to Java in meeting.  I wrote #listfirst(var,
 -)# and #listlast(var, -)# on the whiteboard.  ;^)

In general, I prefer to program in PHP since I feel like I have much more 
control over the code in PHP than I do in Cold Fusion.  However, I have come 
to appreciate CF more over the past few months as I've learned that the code 
that I've been working with around here is not typical of the kind of code 
that CF professionals generally produce.

-- 
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207532
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Dave Watts
 CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno 
 server. How to show for our users docs stored in CA_LA_Fresno 
 server with IE? It's possible? For IE I need to store my files 
 in CF server?

You have all sorts of options. You can allow direct access via UNC path to
the server in question, although you will also have to ensure that your
clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS)
and that your clients have network logon rights to that machine and read
access to the share in question.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207533
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: There's got to be a way around this

2005-05-24 Thread S . Isaac Dealey
 On Tuesday 24 May 2005 06:54, S. Isaac Dealey wrote:
 cfparam name=x default=

 instead of this:

 cfparam name=form.x default=

 I'm still not entirely certain how that comes across as
 the question
 he asked, except perhaps that he's trying to scope his
 variables as
 say variables.x instead of form.x without first
 copying them down
 from the form scope into the variables scope, so the
 server produces
 an error when it doesn't see variables.firstname even
 though the
 firstname input element was a text input. I'm trying to
 remember if
 cfparam name=x default= inserts a value into the
 variables scope
 if there's a form field matching that variable name...
 It's been so
 long since I've used cfparam without scoping the name
 that I can't
 remember what the behavior is.

 Sort of.  I don't want to have to include the cfparam line
 at all, though,
 since there are so many times when I won't know what
 parameters are going to
 be used in a page at the tim that I write it -- such as
 when a form has been
 dynamically generated and can contain different fields
 each time it is
 generated, based on user input or results from a database
 query.

Okay... now I'm lost... How does PHP obviate the need to parameterize
variables on a form action page?Does it do something like ASP where
any undefined variable is equal to  instead of producing an error?

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207534
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Thanx Dave. 

and that your clients have network logon rights to that machine and read
 access to the share in question... it's impossible!

What's UNC? How to setup?

Thanx once more again.

2005/5/24, Dave Watts [EMAIL PROTECTED]:
  CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno
  server. How to show for our users docs stored in CA_LA_Fresno
  server with IE? It's possible? For IE I need to store my files
  in CF server?
 
 You have all sorts of options. You can allow direct access via UNC path to
 the server in question, although you will also have to ensure that your
 clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS)
 and that your clients have network logon rights to that machine and read
 access to the share in question.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207535
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Security Issue?

2005-05-24 Thread David Delbridge
Hi all,

Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a 
security exploit?  For example:

http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It

It produces the following error in CF:

Incorrect syntax near 'Â'.

SQL = select * from DbName
where (ID = 89Â Â It)

I've received a few of these in the past 24 hours, all from Inktomi's IP 
block.  A Google search turns up nothing useful.

Any ideas?

Dave

-- 

David M. Delbridge
Circa 3000
ColdFusion Hosting
http://www.circa3k.com
866-CIRCA3K (247-2235)
Outside U.S: +1.775-832-2445


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207536
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Security Issue?

2005-05-24 Thread Damien McKenna
Please tell me you are using cfqueryparam?

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include stdjoke.h


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207537
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread SStewart
UNC: universal network connection, or something like that. Basically it's 
Windows Shared folder/or drive. 

Scott A. Stewart, 
Web Application Developer
 
Engineering Consulting Services, Ltd. (ECS)
14026 Thunderbolt Place, Suite 300
Chantilly, VA 20151
Phone: (703) 995-1737
Fax: (703) 834-5527


-Original Message-
From: Michel Deloux [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 12:45 pm
To: CF-Talk
Subject: Re: Viewing files in another server/directory outside CF server
Importance: Low

Thanx Dave. 

.and that your clients have network logon rights to that machine and read
 access to the share in question... it's impossible!

What's UNC? How to setup?

Thanx once more again.

2005/5/24, Dave Watts [EMAIL PROTECTED]:
  CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno
  server. How to show for our users docs stored in CA_LA_Fresno
  server with IE? It's possible? For IE I need to store my files
  in CF server?
 
 You have all sorts of options. You can allow direct access via UNC path to
 the server in question, although you will also have to ensure that your
 clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD DNS)
 and that your clients have network logon rights to that machine and read
 access to the share in question.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207538
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Security Issue?

2005-05-24 Thread Kevin Aebig
My guess is that you're using CFencrypt on a variable before you pass it
through a query param. Is this the case?

Kevin

-Original Message-
From: David Delbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 10:57 AM
To: CF-Talk
Subject: Security Issue?


Hi all,

Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a
security exploit?  For example:

http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It

It produces the following error in CF:

Incorrect syntax near 'Â'.

SQL = select * from DbName
where (ID = 89Â Â It)

I've received a few of these in the past 24 hours, all from Inktomi's IP
block.  A Google search turns up nothing useful.

Any ideas?

Dave

--

David M. Delbridge
Circa 3000
ColdFusion Hosting
http://www.circa3k.com
866-CIRCA3K (247-2235)
Outside U.S: +1.775-832-2445




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207539
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Security Issue?

2005-05-24 Thread S . Isaac Dealey
 Hi all,

 Does anybody recognize this URL string pattern
 (%C2%A0%C2%A0It) as a
 security exploit?  For example:

 http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It

 It produces the following error in CF:

 Incorrect syntax near 'Â'.

 SQL = select * from DbName
 where (ID = 89Â Â It)

 I've received a few of these in the past 24 hours, all
 from Inktomi's IP
 block.  A Google search turns up nothing useful.

 Any ideas?

cfqueryparam

89A isn't a number and therefore requires quotes, but better the value
should be explicitly cast as whatever data type the ID column is. And
if you have time add a cferror template or sitewide error handler to
the application/server and check the input values on the page to
provide a friendlier this isn't valid message.

I wouldn't expect it to be an exploit, just somebody (maybe a robot)
trying random junk to see what info they can get on your server.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207540
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Dave Watts
 and that your clients have network logon rights to that 
 machine and read access to the share in question... it's 
 impossible!
 
 What's UNC? How to setup?

If that's impossible, you won't be able to offer links using the file:
pseudo-protocol. If the service account used by the CF server has rights to
read those documents, you can use CFCONTENT to fetch those files and serve
them to the user.

!-- example page with link to file ---
a href=getfile.cfm?id=#fileid##filename#/a

!--- getfile.cfm ---
cfquery name=qGetFile ...
SELECT Filename, MIMEType
FROM File
WHEREFileID = cfqueryparam cfsqltype=cf_sql_integer
value=#URL.fileid#
/cfquery

cfheader name=Content-Disposition value=inline;
filename=#qGetFile.FileName#
cfcontent file=#qGetFile.FileName# type=#qGetFile.MIMEType#

In the above example, the presumption is that you're storing information
about those files within your database.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207541
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: There's got to be a way around this

2005-05-24 Thread Jim Davis
 -Original Message-
 From: Richard Crawford [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 24, 2005 12:30 PM
 To: CF-Talk
 Subject: Re: There's got to be a way around this
 
 On Monday 23 May 2005 22:03, Jim Davis wrote:
  The developer in question used it as an example of how hard it was to
 do
  simple things in CF compared to Java in meeting.  I wrote
 #listfirst(var,
  -)# and #listlast(var, -)# on the whiteboard.  ;^)
 
 In general, I prefer to program in PHP since I feel like I have much more
 control over the code in PHP than I do in Cold Fusion.  However, I have
 come
 to appreciate CF more over the past few months as I've learned that the
 code
 that I've been working with around here is not typical of the kind of code
 that CF professionals generally produce.

The one everlasting rule of thumb is that you can produce complete crap
using any language.  ;^)

There's absolutely nothing wrong with having a favorite.  Personally I don't
see any of the languages as being head-and-shoulders above the others.  I'll
never have a problem with anybody saying they prefer one language over
another.

I just know that I can code most things cleaner and quicker in CF.  I
generally won't comment on how easy or hard another language is (especially
one that I barely know).

In my company however this is the norm: we moved away from CF almost purely
on the say-so of the Java programmers like the one I mentioned and their
assertions that Java was easier to work with.

In short they produced complete crap and blamed the language.  Sounds like
you're working with the results of that kind of thinking.  ;^)

Jim Davis




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207542
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX XML/XSLT questions....

2005-05-24 Thread Jon Gunnip
XSLT can be a little bit tricky to get your head around if you are new
to it.  For example, variables can only be set once within their scope
and you often use recursion implicitly (apply-templates) or explicitly
(call a template inside of itself) to get things done that you might
you accomplish quickly in CF with some loops and variables.

That said, XSLT is designed to transform XML documents into other
documents, often HTML or XML.  Thus, if you have XML to begin with,
then I would definitely consider using  XSLT to display it as HTML. 
It can do searching, grouping, and filtering.

I find pulling lots of data with XMLSearch() in CF to be quite ugly
and hard to maintain and probably not as fast as doing it with XSLT.

Also, with CF 7, you can pass parameters to XMLParse(), so if you want
to separate your data from your display logic, you can put your data
in the XML and pass the display options to XMLParse() at runtime.  If
you are reusing the data with new display options (e.g. now sort
ascending), then you can cache the XML and just reparse it with new
display options.

I don't find XSLT slow per se, but it easy to accidentally write slow
performing XSLT code.  The slowness usually comes from the XPath
expressions in the XSLT (e.g. searching from the document root when
you just need to search below the current node being processsed).

Maybe you could do a brief mock up with XSLT to see if you are
comfortable with it and if it is a good fit for you project.  With the
prevelance of XML, I think XSLT if a valuable technology for a web
programmer to know.

Hope that helps.

Jon

On 5/19/05, Joe Eugene [EMAIL PROTECTED] wrote:
 If you dont really have a purpose for XSLT, dont use it. XSLT is slow.
 Just the parse the xml file (xmlParse()) and use xPath expressions to pull
 out whatever you need.
 
 If the xml data doesnt change that often, you could cache the parsed xml
 doc.
 
 Joe Eugene
 
 - Original Message -
 From: Jeff Waris [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Sent: Thursday, May 19, 2005 11:54 AM
 Subject: CFMX XML/XSLT questions
 
 
  What I am doing is not earth shattering by any means but I am looking for
  the most efficient way to do it. The XML is generated on the fly and about
  the only options I have is the date range I give to create the file.
 
  I would like to be able to sort, filter and display it back to the user
  based on the information in the XML file itself. Am I going in the right
  direction by using XSLT for doing this? OR... should I throw the data from
  the XML file in a temporary table in my SQL7 database? If I throw the
  information in the temp table I am then free to query the data and use CF
 to
  parse out the data to the user.. What's the better way, or do I have more
  options for doing this kind of thing???
 
  Thanks.
  Jeff
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207543
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: RESOLVED CFMX GC every 60 sec.?

2005-05-24 Thread Chris Norloff
Thanks, Sean. Yes, I've wondered why JVM's seem to be installed by default with 
the ability for any programmer to call a Garbage Collection. I've never heard 
anyone say it was good to do (though I don't doubt there could be cases where 
it would be good).

And I agree about protecting the servers from well-meaning programmers ...

:-)
Chris Norloff

-- Original Message --
From: Sean Corfield [EMAIL PROTECTED]
Reply-To: cf-talk@houseoffusion.com
Date:  Fri, 20 May 2005 07:48:18 -0700

On 5/20/05, Chris Norloff [EMAIL PROTECTED] wrote:
 It turns out it was probably an explicit garbage collection call from one of 
 the applications.  As soon as I disabled the ability to explicitly call a GC 
 (just let the JVM manage its own memory) the GC dropped to once an hour on 
 an idle server.

I'm sure you're aware that explicitly calling GC is a Bad Thing(tm)
since it interferes with the JVM's ability to plan and manage GC on
its own schedule.

I'd probably go as far as recommending that folks disable explicit GC
in general to prevent misguided programmers from tanking your systems!
(and even some third party Java code might do this so it doesn't even
have to be your own code)
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207544
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
I'm using XMLhttp to do some RIA stuff.  Rather than having a separate
CFM file for each XML file that I need to return, I want to have a
single CFC with a bunch of methods in it that return the proper
content (XML, using cfheader/cfcontent) to the app.

The question is, can I do this (and is it good practice)?  I have a
script that I'm working on but it's not working; a cfm page with
similar code on it works just fine.  Here is the code:

cfcomponent name=XMLconduit author=Pete Ruckelshaus
displayname=XMLconduit hint=This .cfc is used for all XML-returned
data for the application.
cfsetting enablecfoutputonly=Yes
cffunction name=getContactsByOrganization access=public
output=Yes returntype=XML
cfargument name=param default=0 required=Yes type=numeric

cfquery name=getContacts datasource=#request.app.dsname#
SELECT  C.ID, C.fname, C.lname
FROMtblContacts C
WHERE   C.contactTypeID = (SELECT id FROM 
tblContactTypes WHERE
typename = 'individual') AND
C.organizationid = #param#
ORDER BYC.fname, C.lname
/cfquery
cfheader name=content-type value=text/xml
cfcontent type=text/xml
cfoutput?xml version=1.0 standalone=yes?
contactdata
cfloop query=getContactsid#getContacts.id#/id
firstname#getContacts.fname#/firstname

lastname#getContacts.lname#/lastname/cfloop/contactdata/cfoutput
/cffunction
cfsetting enablecfoutputonly=No
/cfcomponent

Are there any glaring errors in this code that would explain why I'm
not getting anything but whitespace back?  Also, I'm calling the CFC
like this 
http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganizationparam=5

Thanks,

Pete

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207545
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: popup blocker detector script

2005-05-24 Thread Connie DeCinko
Just check the code of that page (view source) and see how they did it. 

 i was on a site once and i clicked on popup and it said i had a popup 
 blocker enabled, cant remember site, anyone have a script 4 that?
 
 Thanks
 
 ~Dave the disruptor~ 
 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207546
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: popup blocker detector script

2005-05-24 Thread Daniel Mackey
http://www.visitor-stats.com/articles/detect-popup-blocker.php

Dan.

Connie DeCinko wrote:

Just check the code of that page (view source) and see how they did it. 

  

i was on a site once and i clicked on popup and it said i had a popup 
blocker enabled, cant remember site, anyone have a script 4 that?


 
  

Thanks

~Dave the disruptor~ 









~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207547
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


format XML string?

2005-05-24 Thread Johnny Le
Hi,

Is there a way to format the xml string before writing back to the file?  The 
problem I have is when I use toString(xmlObject) to convert the xml object to 
string to write to a file, it becomes one long ugly string.  Is there an easy 
to format it with indentation and all?

Johnny

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207548
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Barney Boisvert
Not with CF natively.  XML (like HTML) is whitespace agnostic, so the
XML doesnt care if it's one long line, or a nicely formatted
(according to an arbitrary human).  You could probably write a
formatter fairly easily, depending on the complexity of the formatting
rules you wanted to enforce.

At it's simplest, just do replace(xmlString, , #chr(10)#,
all), but that'll only give you linebreaks, you'll have to write an
actual parser that tracks nesting depth if you want to do indentation
and stuff.

cheers,
barneyb

On 5/24/05, Johnny Le [EMAIL PROTECTED] wrote:
 Hi,
 
 Is there a way to format the xml string before writing back to the file?  The 
 problem I have is when I use toString(xmlObject) to convert the xml object to 
 string to write to a file, it becomes one long ugly string.  Is there an easy 
 to format it with indentation and all?
 
 Johnny
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207549
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Kerry
parse it into an xml object, then use:

xmlobj.getDocumentElement().toString()

except that will probably Unicode format it, dunno if theres a
unicode2msdos() function floating around anywhere...


-Original Message-
From: Johnny Le [mailto:[EMAIL PROTECTED]
Sent: 24 May 2005 18:36
To: CF-Talk
Subject: format XML string?


Hi,

Is there a way to format the xml string before writing back to the file?
The problem I have is when I use toString(xmlObject) to convert the xml
object to string to write to a file, it becomes one long ugly string.  Is
there an easy to format it with indentation and all?

Johnny



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207550
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Dave Watts
 Is there a way to format the xml string before writing back 
 to the file?  The problem I have is when I use 
 toString(xmlObject) to convert the xml object to string to 
 write to a file, it becomes one long ugly string.  Is there 
 an easy to format it with indentation and all?

I would strongly recommend that you not attempt to format the XML string.
There's no need to do that.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207551
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Returning XML data via a CFC?

2005-05-24 Thread Dave Watts
 cfsetting enablecfoutputonly=No
 /cfcomponent
 
 Are there any glaring errors in this code that would explain why I'm
 not getting anything but whitespace back?

You are using CFSETTING to require output be within a CFOUTPUT tag. I'm not
sure how that plays with your CFHEADER and CFCONTENT tags.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207552
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:
 I'm using XMLhttp to do some RIA stuff.  Rather than having a separate
 CFM file for each XML file that I need to return, I want to have a
 single CFC with a bunch of methods in it that return the proper
 content (XML, using cfheader/cfcontent) to the app.
 
 The question is, can I do this (and is it good practice)?  I have a
 script that I'm working on but it's not working; a cfm page with
 similar code on it works just fine.  Here is the code:
 

snip

 Are there any glaring errors in this code that would explain why I'm
 not getting anything but whitespace back?  Also, I'm calling the CFC
 like this 
 http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganizationparam=5
 

Yeah, there's lots of things going on in there that shouldn't be. For
starters, you specify a returnType of XML, yet there's no cfreturn in
the function, so nothing comes back. Second, you have a bunch of
scoping (or lack thereof) issues. Third, don't use cfsetting and
cfcontent and those tags within CFCs -- they can cause problems, and
I'm not even sure that cfcontent works, quite honestly. Fourth, I
would argue that it's a bad practice to directly refer to your calling
environment's request scope. I would put in an init function and pass
the datasource in there and place it in an instance variable (See code
below). Last, your param argument says it's required, yet you
provide a default value of 0. Don't do that. Either it's required or
it's not. If it's not, then use a default.

Here's a cleaned up version of your code. Your best bet is to cut and
paste it into your editor because I kept in tabs and line breaks. I
didn't test the code because I don't have your datasource, but it
should be close enough.

cfcomponent name=XMLconduit author=Pete Ruckelshaus
displayname=XMLconduit hint=This .cfc is used for all XML-returned
data for the application.
cffunction name=init access=public returntype=XMLconduit
output=false hint=Constuctor for setting the datasource name.
cfargument name=datasource type=string required=false
hint=The database to connect to. /

cfset variables.instance = structNew() /
cfset variables.instance[datasource] = arguments.datasource 
/

cfreturn this /
/cffunction

cffunction name=getContactsByOrganization access=public
output=Yes returntype=XML
cfargument name=param required=Yes type=numeric
cfset var getContacts =  /
cfset var xml =  /

cfquery name=getContacts 
datasource=#variables.instance['datasource']#
SELECT
C.ID,
C.fname,
C.lname
FROM
tblContacts C
WHERE
C.contactTypeID = (SELECT id FROM tblContactTypes WHERE 
typename =
'individual') AND C.organizationid = cfqueryparam
value=#arguments.param# cfsqltype=cf_sql_integer null=false /
ORDER BY
C.fname,
C.lname
/cfquery

cfxml variable=xml
contactdata
cfloop query=getContacts
id#getContacts.id#/id

firstname#getContacts.fname#/firstname
lastname#getContacts.lname#/lastname
/cfloop
/contactdata
/cfxml

cfreturn xml /
/cffunction
/cfcomponent

Your calling code would then be something like:

cfset variables.objXMLConduit = createObject(component,
XMLconduit).init(datasource:request.app.dsn) /

cfoutput#variables.objXMLConduit.getContactsByOrganization(param:myValue)#/cfoutput

Something very close to the above should get you going.

Hope this helps?

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207553
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX XML/XSLT questions....

2005-05-24 Thread Massimo, Tiziana e Federica
 Also, with CF 7, you can pass parameters to XMLParse(), so if you want
 to separate your data from your display logic, you can put your data
 in the XML and pass the display options to XMLParse() at runtime.

If you would like to perform XSLT transformation with parameters you can
check this UDF:
http://www.cfmentor.com/code/index.cfm?action=scriptid=137


Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207554
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Kerry
UNC:
\\servername\sharename\directory\file

AFAIK, your CF service will need to login as a user with rights to the
remote server

-Original Message-
From: Michel Deloux [mailto:[EMAIL PROTECTED]
Sent: 24 May 2005 17:45
To: CF-Talk
Subject: Re: Viewing files in another server/directory outside CF server


Thanx Dave.

.and that your clients have network logon rights to that machine and read
 access to the share in question... it's impossible!

What's UNC? How to setup?

Thanx once more again.

2005/5/24, Dave Watts [EMAIL PROTECTED]:
  CF lives in CA_LA_WS server and all docs lives in CA_LA_Fresno
  server. How to show for our users docs stored in CA_LA_Fresno
  server with IE? It's possible? For IE I need to store my files
  in CF server?

 You have all sorts of options. You can allow direct access via UNC path to
 the server in question, although you will also have to ensure that your
 clients can resolve the NetBIOS name correctly (via WINS, LMHOSTS or AD
DNS)
 and that your clients have network logon rights to that machine and read
 access to the share in question.

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

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





~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207555
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave,

That's what I'm doing in a similar CFM page (that I want to convert to
CFC), and it works fine:

cfsetting enablecfoutputonly=yes showdebugoutput=no
cfquery name=getEmail datasource=local
select  firstname, email
fromtblArsUsers
where   userid LIKE '#param#%'
/cfquery
cfheader name=content-type value=text/xml
cfcontent type=text/xml
cfoutput?xml version=1.0 standalone=yes?
userdata
cfloop query=getEmailfirstname#getEmail.firstname#/firstname
email#getEmail.email#/email
/cfloop/userdata/cfoutputcfsetting enablecfoutputonly=no
showdebugoutput=nocfabort

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207556
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: There's got to be a way around this

2005-05-24 Thread Richard Crawford
On Tuesday 24 May 2005 10:12, Jim Davis wrote:
 In my company however this is the norm: we moved away from CF almost purely
 on the say-so of the Java programmers like the one I mentioned and their
 assertions that Java was easier to work with.

 In short they produced complete crap and blamed the language.  Sounds like
 you're working with the results of that kind of thinking.  ;^)

I tend to agree with you on the whole, though I think I will be spending 
several days trying to get my head around the idea that Java is easier than 
anything.  I've never been able to figure Java out.

-- 
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207557
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Thanx Dave

using CFCONTENT and CFHEADER I need to get that file right? After that
I can send that file to user browser... Works with users with no
server rights?



2005/5/24, Dave Watts [EMAIL PROTECTED]:
  and that your clients have network logon rights to that
  machine and read access to the share in question... it's
  impossible!
 
  What's UNC? How to setup?
 
 If that's impossible, you won't be able to offer links using the file:
 pseudo-protocol. If the service account used by the CF server has rights to
 read those documents, you can use CFCONTENT to fetch those files and serve
 them to the user.
 
 !-- example page with link to file ---
 a href=getfile.cfm?id=#fileid##filename#/a
 
 !--- getfile.cfm ---
 cfquery name=qGetFile ...
 SELECT Filename, MIMEType
 FROM File
 WHEREFileID = cfqueryparam cfsqltype=cf_sql_integer
 value=#URL.fileid#
 /cfquery
 
 cfheader name=Content-Disposition value=inline;
 filename=#qGetFile.FileName#
 cfcontent file=#qGetFile.FileName# type=#qGetFile.MIMEType#
 
 In the above example, the presumption is that you're storing information
 about those files within your database.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207558
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Joe Rinehart
If it helps, I wrote a little UDF for this...can't guarantee it'll be
100% on all of the time, I scrawled it out quickly for my own quick
use a while back.

cffunction name=prettyXml returnType=string output=false
cfargument name=xmlNode
cfargument name=depth default=0

cfset var result =  /

cfset result = repeatString(chr(9), arguments.depth) 
#arguments.xmlNode.xmlName# /

cfloop collection=#arguments.xmlNode.xmlAttributes# item=i
cfset result = result   
#i#=#arguments.xmlNode.xmlAttributes[i]#
/cfloop

cfif not len(arguments.xmlNode.xmlText) and not
arrayLen(arguments.xmlNode.xmlChildren)
cfset result = result   /
/cfif

cfset result = result   /
cfif len(trim(arguments.xmlNode.xmlText))
cfset result = result  chr(10)  repeatString(chr(9),
arguments.depth + 1)  htmlEditFormat(arguments.xmlNode.xmlText) 
chr(10) /
cfelse
cfset result = result  chr(10) /
/cfif

cfloop from=1 to=#arrayLen(arguments.xmlNode.xmlChildren)# 
index=i
cfset result = result  
prettyXml(arguments.xmlNode.xmlChildren[i],
arguments.depth + 1) /
/cfloop

cfif len(arguments.xmlNode.xmlText) or
arrayLen(arguments.xmlNode.xmlChildren)
cfset result = result  repeatString(chr(9), arguments.depth) 
/#arguments.xmlNode.xmlName#  chr(10) /
/cfif

cfreturn result /
/cffunction


On 5/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 Not with CF natively.  XML (like HTML) is whitespace agnostic, so the
 XML doesnt care if it's one long line, or a nicely formatted
 (according to an arbitrary human).  You could probably write a
 formatter fairly easily, depending on the complexity of the formatting
 rules you wanted to enforce.
 
 At it's simplest, just do replace(xmlString, , #chr(10)#,
 all), but that'll only give you linebreaks, you'll have to write an
 actual parser that tracks nesting depth if you want to do indentation
 and stuff.
 
 cheers,
 barneyb
 
 On 5/24/05, Johnny Le [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a way to format the xml string before writing back to the file?  
  The problem I have is when I use toString(xmlObject) to convert the xml 
  object to string to write to a file, it becomes one long ugly string.  Is 
  there an easy to format it with indentation and all?
 
  Johnny
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/
 
 Got Gmail? I have 50 invites.
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207559
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread S . Isaac Dealey
 Is there a way to format the xml string before writing
 back
 to the file?  The problem I have is when I use
 toString(xmlObject) to convert the xml object to string
 to
 write to a file, it becomes one long ugly string.  Is
 there
 an easy to format it with indentation and all?

 I would strongly recommend that you not attempt to format
 the XML string.
 There's no need to do that.

If you want clean, friendly formatting to peruse the xml document,
just write it to a local file on your machine and open it in Firefox
or IE -- both of them have default xml style sheets that make
examining xml docs easier.

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207560
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: There's got to be a way around this

2005-05-24 Thread S . Isaac Dealey
 On Tuesday 24 May 2005 10:12, Jim Davis wrote:
 In my company however this is the norm: we moved away
 from CF almost purely
 on the say-so of the Java programmers like the one I
 mentioned and their
 assertions that Java was easier to work with.

 In short they produced complete crap and blamed the
 language.  Sounds like
 you're working with the results of that kind of thinking.
  ;^)

 I tend to agree with you on the whole, though I think I
 will be spending
 several days trying to get my head around the idea that
 Java is easier than
 anything.  I've never been able to figure Java out.

These are the same sort of people who think that bitshrn() is easier
to use than for instance find(R,mystring)... A project I worked on a
while back the guy decided to use all bit-math for the security -- and
I've seen several cases of using bit-math for permission-systems since
then and every one of them has been attrocious. I remember the guy
saying here I'll show you, it's real simple and then failing
miserably to explain succinctly how it worked.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207561
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread S . Isaac Dealey
This should work fine (if slowly) asside from the fact that you need
to add xmlformat() around the attribute and text node values.

 If it helps, I wrote a little UDF for this...can't
 guarantee it'll be
 100% on all of the time, I scrawled it out quickly for my
 own quick
 use a while back.

 cffunction name=prettyXml returnType=string
 output=false
   cfargument name=xmlNode
   cfargument name=depth default=0

   cfset var result =  /

   cfset result = repeatString(chr(9), arguments.depth) 
 #arguments.xmlNode.xmlName# /

   cfloop collection=#arguments.xmlNode.xmlAttributes#
   item=i
   cfset result = result  
   #i#=#arguments.xmlNode.xmlAttributes[i]#
   /cfloop

   cfif not len(arguments.xmlNode.xmlText) and not
 arrayLen(arguments.xmlNode.xmlChildren)
   cfset result = result   /
   /cfif

   cfset result = result   /
   cfif len(trim(arguments.xmlNode.xmlText))
   cfset result = result  chr(10)  repeatString(chr(9),
 arguments.depth + 1) 
 htmlEditFormat(arguments.xmlNode.xmlText) 
 chr(10) /
   cfelse
   cfset result = result  chr(10) /
   /cfif

   cfloop from=1
   to=#arrayLen(arguments.xmlNode.xmlChildren)# index=i
   cfset result = result 
   prettyXml(arguments.xmlNode.xmlChildren[i],
 arguments.depth + 1) /
   /cfloop

   cfif len(arguments.xmlNode.xmlText) or
 arrayLen(arguments.xmlNode.xmlChildren)
   cfset result = result  repeatString(chr(9),
   arguments.depth) 
 /#arguments.xmlNode.xmlName#  chr(10) /
   /cfif

   cfreturn result /
 /cffunction



s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207562
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Johnny Le
Yes, I do have the need for that.  That is why I asked.  I auto-generate the 
circuit.xml files, but I want other developers to be able to manually edit them 
if needed without any difficulty.

Kerry, your suggestion seems to do the trick.  Thank you.

Johnny

 Is there a way to format the xml string before writing back 
 to the file?  The problem I have is when I use 
 toString(xmlObject) to convert the xml object to string to 
 write to a file, it becomes one long ugly string.  Is there 
 an easy to format it with indentation and all?

I would strongly recommend that you not attempt to format the XML string.
There's no need to do that.

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

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

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207563
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread S . Isaac Dealey
 Not with CF natively.  XML (like HTML) is whitespace
 agnostic, so the
 XML doesnt care if it's one long line, or a nicely
 formatted
 (according to an arbitrary human).  You could probably
 write a
 formatter fairly easily, depending on the complexity of
 the formatting
 rules you wanted to enforce.

 At it's simplest, just do replace(xmlString, ,
 #chr(10)#,
 all), but that'll only give you linebreaks, you'll have
 to write an
 actual parser that tracks nesting depth if you want to do
 indentation
 and stuff.

Come to think of it there might be a way to get the formatting
straight with a reasonably simple XSLT template also... XML to Text
 I'd have to look into it.

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207564
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:
 Dave,
 
 That's what I'm doing in a similar CFM page (that I want to convert to
 CFC), and it works fine:
 
 cfsetting enablecfoutputonly=yes showdebugoutput=no
 cfquery name=getEmail datasource=local
 select  firstname, email
 fromtblArsUsers
 where   userid LIKE '#param#%'
 /cfquery
 cfheader name=content-type value=text/xml
 cfcontent type=text/xml
 cfoutput?xml version=1.0 standalone=yes?
 userdata
 cfloop query=getEmailfirstname#getEmail.firstname#/firstname
 email#getEmail.email#/email
 /cfloop/userdata/cfoutputcfsetting enablecfoutputonly=no
 showdebugoutput=nocfabort
 

Pete,

CFMs NEQ CFCs.

That's my rule. You can't always use the same coding rules across the
two file types. Your CFM template might work just fine, but the CFCs
aren't guaranteed to follow every CFM construct the same way. Tags
like cfcontent might be perfectly fine in CFM templates, but might not
work the same way in CFCs. There have been a couple threads over the
last few weeks where other people have run into this problem, and
moving the cfcontent tag out of the CFCs has taken care of it.
Further, if you make sure to religiously put output=false in your
cfcomponent and cffunction tags, then you will not get any whitespace,
which removes the need for the cfsetting tag anyway.

Regards,
Dave.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207565
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Kevin Aebig
If you're just looking to quickly see your output, You could just write it
out and set the content type of the page.

Kevin

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 12:23 PM
To: CF-Talk
Subject: RE: format XML string?


 Is there a way to format the xml string before writing
 back
 to the file?  The problem I have is when I use
 toString(xmlObject) to convert the xml object to string
 to
 write to a file, it becomes one long ugly string.  Is
 there
 an easy to format it with indentation and all?

 I would strongly recommend that you not attempt to format
 the XML string.
 There's no need to do that.

If you want clean, friendly formatting to peruse the xml document,
just write it to a local file on your machine and open it in Firefox
or IE -- both of them have default xml style sheets that make
examining xml docs easier.

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207568
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: popup blocker detector script

2005-05-24 Thread dave
that works, thanks!

~Dave the disruptor~ 


From: Daniel Mackey [EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 1:36 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: Re: popup blocker detector script 

http://www.visitor-stats.com/articles/detect-popup-blocker.php

Dan.

Connie DeCinko wrote:

Just check the code of that page (view source) and see how they did it. 

 

i was on a site once and i clicked on popup and it said i had a popup 
blocker enabled, cant remember site, anyone have a script 4 that?
 

 
 

Thanks

~Dave the disruptor~ 

 









~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207567
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: popup blocker detector script

2005-05-24 Thread dave
hence the cant remember site in my ? ;)~

~Dave the disruptor~ 


From: Connie DeCinko [EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 1:32 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: popup blocker detector script 

Just check the code of that page (view source) and see how they did it. 

 i was on a site once and i clicked on popup and it said i had a popup 
 blocker enabled, cant remember site, anyone have a script 4 that?

 Thanks
 
 ~Dave the disruptor~ 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207566
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Massimo, Tiziana e Federica
Johnny Le [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Yes, I do have the need for that.

You can try a pretty printer XSLT. This should be a starting point:

xsl:stylesheet
  version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

  !--Normalize whitespace by stripping space and indenting --
  xsl:output method=xml version=1.0 indent=yes/
  xsl:strip-space elements=*/

  xsl:template match=/
xsl:copy-of select=./
  /xsl:template

/xsl:stylesheet

Hope it will help


Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207569
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Returning XML data via a CFC?

2005-05-24 Thread Kevin Aebig
From what I see happening, you'd probably be better off returning a string
with the content and handling the output elsewhere. The method you're using
isn't very flexible and the cfcontent within a CFC isn't a real good idea.
Also, I've had issues where only whitespace is returned if there is *any*
whitespace before the cfcontent tag...

Cheers,

Kevin

-Original Message-
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 11:30 AM
To: CF-Talk
Subject: Returning XML data via a CFC?


I'm using XMLhttp to do some RIA stuff.  Rather than having a separate
CFM file for each XML file that I need to return, I want to have a
single CFC with a bunch of methods in it that return the proper
content (XML, using cfheader/cfcontent) to the app.

The question is, can I do this (and is it good practice)?  I have a
script that I'm working on but it's not working; a cfm page with
similar code on it works just fine.  Here is the code:

cfcomponent name=XMLconduit author=Pete Ruckelshaus
displayname=XMLconduit hint=This .cfc is used for all XML-returned
data for the application.
cfsetting enablecfoutputonly=Yes
cffunction name=getContactsByOrganization access=public
output=Yes returntype=XML
cfargument name=param default=0 required=Yes type=numeric

cfquery name=getContacts datasource=#request.app.dsname#
SELECT  C.ID, C.fname, C.lname
FROMtblContacts C
WHERE   C.contactTypeID = (SELECT id FROM 
tblContactTypes WHERE
typename = 'individual') AND
C.organizationid = #param#
ORDER BYC.fname, C.lname
/cfquery
cfheader name=content-type value=text/xml
cfcontent type=text/xml
cfoutput?xml version=1.0 standalone=yes?
contactdata
cfloop query=getContactsid#getContacts.id#/id
firstname#getContacts.fname#/firstname

lastname#getContacts.lname#/lastname/cfloop/contactdata/cfoutput
/cffunction
cfsetting enablecfoutputonly=No
/cfcomponent

Are there any glaring errors in this code that would explain why I'm
not getting anything but whitespace back?  Also, I'm calling the CFC
like this
http://localhost/cfc/xmlconduit.cfc?method=getcontactsbyorganizationparam=5

Thanks,

Pete



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207570
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave C,

Thanks, but I was unable to get that to work when calling it via URL. 
At this point I'm more focused on getting it to work than I am on
CFC best practices, and getting it to work isn't, well, working. 
Macromedia's docs are incomplete and nearly devoid of useful examples.
 I hate to say it, but at this point, I've burned a half a day on this
problem, I'm the only person working on this project, and I'm behind
schedule.  Quick and dirty will have to get me by, unfortunately.  If
I'm lucky, I can circle back and do it the right way once this phase
of the project is done.

Thanks anyway,

Pete

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207571
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Johnny Le
I spoke too soon, Kerry.  It didn't work.  The toString() function seems to 
work properly when you create the file for the first time, but when you access 
an existing xml file and modify it with the xmlElemNew() and other xml 
functions, then the output is just one long string.

Also some of you missed my point, I am trying to format it so it would look 
readable when I modify it in Dreamweaver or CFEclipse.  I don't have problem 
viewing it in IE or on a web page.  So I don't see how XSLT can play a role 
here.

Johnny

 Yes, I do have the need for that.  That is why I asked.  I 
 auto-generate the circuit.xml files, but I want other developers to be 
 able to manually edit them if needed without any difficulty.
 
 Kerry, your suggestion seems to do the trick.  Thank you.
 
 Johnny
 
  Is there a way to format the xml string before writing back 
  to the file?  The problem I have is when I use 
  toString(xmlObject) to convert the xml object to string to 
  write to a file, it becomes one long ugly string.  Is there 
  an easy to format it with indentation and all?
 
 I would strongly recommend that you not attempt to format the XML 
 string.
 There's no need to do that.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized 
 instruction at our training centers in Washington DC, Atlanta, 
 Chicago, Baltimore, Northern Virginia, or on-site at your location. 
 Visit http://training.figleaf.com/ for more 
information!

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207572
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


ACH file format

2005-05-24 Thread Chris Terrebonne
Any chance one of you have experience with using CF to format a standardized 
ACH file?  Any CFC's or custom tags that will do this?
I was going to write one, but no need to reinvent if it already exists.

Thanks!
Chris


This email and its attachments may contain confidential information 
which is intended only for the use of the person(s) named above.  
If you are not the intended recipient, you are hereby advised that
any disclosure, copying, distribution or the taking of any action
based on the contents of this information is prohibited.  If you 
have received this transmission in error, please notify the sender
and delete this email from your computer.  Thank you.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207573
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Joe Rinehart
 This should work fine (if slowly) asside from the fact that you need
 to add xmlformat() around the attribute and text node values.

Thanks, I'll add them in if I ever need to use it again.  It was put
together in about 10 minutes for debug purposes a while back when I
couldn't use a browser (dump of something inside a CFC to a text
file), so it's definitely a don't-use-this-for-anything-real snippet.

-Joe

-- 
Get Glued!
The Model-Glue ColdFusion Framework
http://www.model-glue.com

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207574
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:
 Dave C,
 
 Thanks, but I was unable to get that to work when calling it via URL.
 At this point I'm more focused on getting it to work than I am on
 CFC best practices, and getting it to work isn't, well, working.
 Macromedia's docs are incomplete and nearly devoid of useful examples.
  I hate to say it, but at this point, I've burned a half a day on this
 problem, I'm the only person working on this project, and I'm behind
 schedule.  Quick and dirty will have to get me by, unfortunately.  If
 I'm lucky, I can circle back and do it the right way once this phase
 of the project is done.
 

Fair enough. However, what do you mean when you said you couldn't get
it to work? Did you get an error message? A blank screen?

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207575
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Dave Watts
 Also some of you missed my point, I am trying to format it so 
 it would look readable when I modify it in Dreamweaver or 
 CFEclipse.  I don't have problem viewing it in IE or on a web 
 page.  So I don't see how XSLT can play a role here.

If you export the string to a file, and let your XML-aware text editor (or
other XML reader software like a browser) know it's an XML file (typically
by the file extension), the text editor will automatically display it as a
tree. Unfortunately, the current version of Dreamweaver doesn't seem to do
this.

 I spoke too soon, Kerry.  It didn't work.  The toString() 
 function seems to work properly when you create the file for 
 the first time, but when you access an existing xml file and 
 modify it with the xmlElemNew() and other xml functions, then 
 the output is just one long string.

This is common - XML parsers will often remove extraneous space when writing
the XML string. You will have to rewrite the string using regular string
formatting functionality after you've modified it using XML parsing
functionality.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207576
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Viewing files in another server/directory outside CF server

2005-05-24 Thread Dave Watts
 using CFCONTENT and CFHEADER I need to get that file right? After
 that I can send that file to user browser... Works with users with 
 no server rights?

Yes, you would be fetching the file with CF, then returning it to the
browser.

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

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


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207577
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Massimo, Tiziana e Federica
 So I don't see how XSLT can play a role here.

It can play a role, because you can post-process your XML string using XSLT
as pretty printer.
Try the code below (hope carriage returns will not break it):

cfsavecontent variable=xslStr
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  !--Normalize whitespace by stripping space and indenting --
  xsl:output method=xml version=1.0 indent=yes/
  xsl:strip-space elements=*/
  xsl:template match=/
xsl:copy-of select=./
  /xsl:template
/xsl:stylesheet
/cfsavecontent

cfsavecontent variable=xmlStr
channelitemtitlefirst item/title/itemitemtitlesecond
item/title/item/channel
/cfsavecontent

cfoutput#XmlTransform(xmlStr, xslStr)#/cfoutput


Massimo Foti
http://www.massimocorner.com/

It should be this hole in the ozone layer
But I am not the coder I use to be...





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207578
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: ACH file format

2005-05-24 Thread Jeff Waris
I have one but unfortunately the code is not public to use. It our
proprietary ACH file writer. I can however answer any questions you might
have writing one. A lot of 7 records are different depending on which
financial institution you are sending it to, but all the formatting and line
positioning is pretty fixed...

Jeff 
 

 -Original Message-
 From: Chris Terrebonne [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 24, 2005 3:04 PM
 To: CF-Talk
 Subject: ACH file format
 
 
 Any chance one of you have experience with using CF to format 
 a standardized ACH file?  Any CFC's or custom tags that will 
 do this? I was going to write one, but no need to reinvent if 
 it already exists.
 
 Thanks!
 Chris
 
 
 This email and its attachments may contain confidential information 
 which is intended only for the use of the person(s) named above.  
 If you are not the intended recipient, you are hereby advised 
 that any disclosure, copying, distribution or the taking of 
 any action based on the contents of this information is 
 prohibited.  If you 
 have received this transmission in error, please notify the 
 sender and delete this email from your computer.  Thank you.
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207579
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


3.4 Drivers - Any Early Adopters Care To Comment?

2005-05-24 Thread Nathan Strutz
The new CF database drivers based on DataDirect 3.4 came out a couple 
weeks ago. Are there any early adopters who have tried these on busy 
systems with success? Are they better than the last, about the same, 
anything? I'll even accept me too type posts (or even aol/ as we 
learned yesterday).

thanks!
-nathan strutz

ps, my experience is I've had them running on a couple dev servers with 
no difference in anything, but those really don't get any traffic.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207580
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Johnny Le
If you export the string to a file, and let your XML-aware text editor (or
other XML reader software like a browser) know it's an XML file (typically
by the file extension), the text editor will automatically display it as a
tree. Unfortunately, the current version of Dreamweaver doesn't seem to do
this.

This would not work for me either as I name all my xml files with .xml.cfm 
extension.


This is common - XML parsers will often remove extraneous space when writing
the XML string. You will have to rewrite the string using regular string
formatting functionality after you've modified it using XML parsing
functionality.

You mean like using replaceNoCase() function and search for  ?  I am doing 
that right now, but I am looking for a better way to handle it.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207581
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Security Issue?

2005-05-24 Thread David Delbridge
Good point.  I do, but then there's a small matter of a few hundred 
hosting customers

Dave

Damien McKenna wrote:
 Please tell me you are using cfqueryparam?
 

-- 

David M. Delbridge
Circa 3000
ColdFusion Hosting
http://www.circa3k.com
866-CIRCA3K (247-2235)
Outside U.S: +1.775-832-2445


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207582
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Michel Deloux
Using CFCONTENT and CFHEADER with MS Word files show me a
Save/Download screen in IE. Please look my simple code:

view_files.cfm?fileX=file://CA_LA_Fresno/systems/Fresno2004_12.doc

in view_files I remove file: and change / bar to \ bar and after:: 

cfheader name=Content-Disposition value=attachment;
filename=#URL.fileX#

cfcontent type=application/msword file=#URL.fileX# deletefile=No

Whta's happened? 

Thanx




2005/5/24, Dave Watts [EMAIL PROTECTED]:
  using CFCONTENT and CFHEADER I need to get that file right? After
  that I can send that file to user browser... Works with users with
  no server rights?
 
 Yes, you would be fetching the file with CF, then returning it to the
 browser.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207583
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Security Issue?

2005-05-24 Thread David Delbridge
I'm afraid not.  The offending characters arrived unpromted in the URL.

Dave

Kevin Aebig wrote:

 My guess is that you're using CFencrypt on a variable before you pass it
 through a query param. Is this the case?
 
 Kevin
 
 -Original Message-
 From: David Delbridge [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 24, 2005 10:57 AM
 To: CF-Talk
 Subject: Security Issue?
 
 
 Hi all,
 
 Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a
 security exploit?  For example:
 
 http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It
 
 It produces the following error in CF:
 
 Incorrect syntax near 'Â'.
 
 SQL = select * from DbName
 where (ID = 89Â Â It)
 
 I've received a few of these in the past 24 hours, all from Inktomi's IP
 block.  A Google search turns up nothing useful.
 
 Any ideas?
 
 Dave
 
 --
 
 David M. Delbridge
 Circa 3000
 ColdFusion Hosting
 http://www.circa3k.com
 866-CIRCA3K (247-2235)
 Outside U.S: +1.775-832-2445
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207584
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Donnie Bachan
Pete,

What are you doing with the XML once it is returned via the CFC? Are
you returning for the javascript to manipulate it or is the javascript
going to write it directly to the page?

-- 
Donnie Bachan 
Website: http://www.islandwizards.com
Blog: http://angrytrini.blogspot.com
Nitendo Vinces - By Striving You Shall Conquer 
== 
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received 
this in error, please contact the sender and delete the material from any 
computer.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207585
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Johnny Le
Your method works, but it doesn't do indentation. I'll look more into it.  
Thanks.

Johnny


 So I don't see how XSLT can play a role here.

It can play a role, because you can post-process your XML string using XSLT
as pretty printer.
Try the code below (hope carriage returns will not break it):

cfsavecontent variable=xslStr
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  !--Normalize whitespace by stripping space and indenting --
  xsl:output method=xml version=1.0 indent=yes/
  xsl:strip-space elements=*/
  xsl:template match=/
xsl:copy-of select=./
  /xsl:template
/xsl:stylesheet
/cfsavecontent
 
cfsavecontent variable=xmlStr
channelitemtitlefirst item/title/itemitemtitlesecond
item/title/item/channel
/cfsavecontent

cfoutput#XmlTransform(xmlStr, xslStr)#/cfoutput


Massimo Foti
http://www.massimocorner.com/

It should be this hole in the ozone layer
But I am not the coder I use to be...

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207586
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: format XML string?

2005-05-24 Thread Massimo, Tiziana e Federica
 Your method works, but it doesn't do indentation. I'll look more into it.
Thanks.


Yes, the XSLT code I posted is too generic for doing indentation too. You
have to customize it, that's why I said it was a starting point.


Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207587
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: format XML string?

2005-05-24 Thread Dawson, Michael
If you really need to view it, open the xml in IE or an xml editor like
XML Spy.  They will format it nicely for display regardless of the
file's formatting.

M!ke

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207588
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: ACH file format

2005-05-24 Thread Dawson, Michael
From what I have seen, ACH files are just fixed-width files.  Sometimes,
the format can be flexible.  The parser, on the other end, can be setup
to read your format and do what it needs to do.

We had the need for this on our mainframe.  It only created fixed-width
text files.  There was nothing special about it that CF, or any text
editor, could not do.

M!ke 

-Original Message-
From: Chris Terrebonne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 2:04 PM
To: CF-Talk
Subject: ACH file format

Any chance one of you have experience with using CF to format a
standardized ACH file?  Any CFC's or custom tags that will do this?
I was going to write one, but no need to reinvent if it already exists.

Thanks!
Chris

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207589
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Viewing files in another server/directory outside CF server

2005-05-24 Thread Deanna Schneider
That's the proper behavior. If you want them to display in the browser, 
you'll ned to change your value=attachment;  to value=inline;

- Original Message - 
From: Michel Deloux [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, May 24, 2005 2:49 PM
Subject: Re: Viewing files in another server/directory outside CF server


 Using CFCONTENT and CFHEADER with MS Word files show me a
 Save/Download screen in IE. Please look my simple code:

 view_files.cfm?fileX=file://CA_LA_Fresno/systems/Fresno2004_12.doc

 in view_files I remove file: and change / bar to \ bar and after::

 cfheader name=Content-Disposition value=attachment;
 filename=#URL.fileX#

 cfcontent type=application/msword file=#URL.fileX# deletefile=No

 Whta's happened?

 Thanx

 


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207590
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFFORM + FLASH

2005-05-24 Thread Stuart Kidd
Hi guys,

I¹m using the CFFORM tag and wanted to add some extra validation.

My tag is like so:

cfform 
   action = /?kissMyDate=yes
   format = Flash
   skin   = haloBlue
   width  = 400 height=420
   name=Part1
   onsubmit=if( password.text != '#GetUser.password#' ) {
alert('Password is incorrect'); return false;}²

I added the password validation and that worked no problem, but now I¹d like
to make sure that a user always makes a selection from a combo box and NOT
choose the value which is ³² (option
value=---/option).

 cfselect name=numberOfReplies label=Max emails to
receive: size=1
option
value=cfoutput#GetAdvert.numberOfReplies#/cfoutput selectedCurrently:
cfoutput#GetAdvert.numberOfReplies#/cfoutput/option
option value=---/option
option value=55/option
option value=1010/option
option value=2525/option
option value=1Unlimited/option
option value=0No more, I've had enough!/option
/cfselect

As it stands if the user chooses option
value=---/option the form doesn¹t have an error pop up.

I thought of either doing some javascript in the cfselect or possibly adding
something to the cfform tag similar to the onsubmit.

cfform 
   action = /?kissMyDate=yes
   format = Flash
   skin   = haloBlue
   width  = 400 height=420
   name=Part1
   onsubmit=if( password.text != '#GetUser.password#' ) {
alert('Password is incorrect'); return false;}
   onsubmit=if( numberOfReplies.text != '' ) { alert('Please choose
max emails to receive'); return false;}²

Unfortunately the above comes up with an error.

If anyone could help it would be greatly appreciated.

Thanks,

Saturday




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207591
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Java and JVM page in CF Administrator

2005-05-24 Thread B G
This question is in regards to CFMX 6.1 Enterprise.

I am working on a box I inherited and in the admin there is no link to the 
Java and JVM settings.  I have never seen this before and I have no idea 
where to even look to correct this.  Could the installation be corrupt?  All 
CF pages seem to behave correctly but I cannot edit the Class Path for a new 
app I am trying to install.

Any ideas?  Thanks in advance!

BG



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207592
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Structures vs. Real Structures

2005-05-24 Thread Rebecca Wells
This reminds me of something that my boss and I argued about... I said that 
query recordsets and forms are structures, and he said that it's not the same 
kind of structure as a struct(), that the structure function is better because 
it's indexed and that the query and forms are not real structures. Which is 
true?
 

 There are generally two reasons for something like that:
 
 1) The code is very old - we've still got code from CF 2.0 
 around and it's pretty damn nasty.  ;^) A lot of the stuff 
 we take for granted (structs, scopes as structs, even arrays)
 didn't exist in earlier versions of the language.

In this case, I don't think that's an excuse, since CF has had
FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to
let you get a list of the form fields so you could process them. Now, of
course, we have the Form scope exposed as a structure, which is nicer, but
the required functionality for generalized form handlers has been there all
the time.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207593
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Nest query inside structure in CFMX web service?

2005-05-24 Thread Ben Mueller
I would like to nest a query object inside of a structure that is returned by a 
web service I'm building.  The web service is to be consumed by CFMX.  I 
thought I had it working at one point, but now I get an ugly error that says 
the QueryBean cannot be deserialized.  

So, now I'm wondering if I imagined my initial success.  Is what I want to do 
legal?

Thanks in advance,
Ben Mueller

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207594
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave,

I get back a blank page.  There is some whitespace (CR/LF's, tabs). 
No error messages.

Donnie,

I'm trying to access the CFC directly and return XML data so that I
can use it in an xmlhttp.request transaction to populate some form
fields, sort of like Google suggest.

Thanks

Pete

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207595
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Java and JVM page in CF Administrator

2005-05-24 Thread Douglas Knudsen
sounds like you have the J2EE version with full Jrun. In this case the 
CFAdmin tool doesn't have this. You can use the JMC, I think its fixed now, 
used to have a bug that messedup your JVM settings. Personally, I mod these 
directly. See JRun/bin for your jvm.config. Note by default, this file 
applies to all JRun instances.

DK

On 5/24/05, B G [EMAIL PROTECTED] wrote: 
 
 This question is in regards to CFMX 6.1 Enterprise.
 
 I am working on a box I inherited and in the admin there is no link to the
 Java and JVM settings. I have never seen this before and I have no idea
 where to even look to correct this. Could the installation be corrupt? All
 CF pages seem to behave correctly but I cannot edit the Class Path for a 
 new
 app I am trying to install.
 
 Any ideas? Thanks in advance!
 
 BG
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Structures vs. Real Structures

2005-05-24 Thread Kevin Aebig
I'm not sure you could actually make an argument one way or another. Like
most tools, they're better than the other depending on the situation. To say
that one is real is to assume the other is fake... and everyone knows
thats not the case.

Kevin

-Original Message-
From: Rebecca Wells [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 3:30 PM
To: CF-Talk
Subject: Structures vs. Real Structures


This reminds me of something that my boss and I argued about... I said that
query recordsets and forms are structures, and he said that it's not the
same kind of structure as a struct(), that the structure function is better
because it's indexed and that the query and forms are not real structures.
Which is true?


 There are generally two reasons for something like that:

 1) The code is very old - we've still got code from CF 2.0
 around and it's pretty damn nasty.  ;^) A lot of the stuff
 we take for granted (structs, scopes as structs, even arrays)
 didn't exist in earlier versions of the language.

In this case, I don't think that's an excuse, since CF has had
FORM.FIELDNAMES since CF 2.0, at least. That's what it was there for - to
let you get a list of the form fields so you could process them. Now, of
course, we have the Form scope exposed as a structure, which is nicer, but
the required functionality for generalized form handlers has been there all
the time.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207597
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Security Issue?

2005-05-24 Thread Kevin Aebig
It could be a homemade spider from overseas. In what context is the page
called? Is it an include, a website page, webapp page? Is it under SSL? Is
it protected in any way?

Kevin

-Original Message-
From: David Delbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 1:52 PM
To: CF-Talk
Subject: Re: Security Issue?


I'm afraid not.  The offending characters arrived unpromted in the URL.

Dave

Kevin Aebig wrote:

 My guess is that you're using CFencrypt on a variable before you pass it
 through a query param. Is this the case?

 Kevin

 -Original Message-
 From: David Delbridge [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 24, 2005 10:57 AM
 To: CF-Talk
 Subject: Security Issue?


 Hi all,

 Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a
 security exploit?  For example:

 http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It

 It produces the following error in CF:

 Incorrect syntax near 'Â'.

 SQL = select * from DbName
 where (ID = 89Â Â It)

 I've received a few of these in the past 24 hours, all from Inktomi's IP
 block.  A Google search turns up nothing useful.

 Any ideas?

 Dave

 --

 David M. Delbridge
 Circa 3000
 ColdFusion Hosting
 http://www.circa3k.com
 866-CIRCA3K (247-2235)
 Outside U.S: +1.775-832-2445








~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207598
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Structures vs. Real Structures

2005-05-24 Thread Jim Davis
 -Original Message-
 From: Rebecca Wells [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 24, 2005 5:30 PM
 To: CF-Talk
 Subject: Structures vs. Real Structures
 
 This reminds me of something that my boss and I argued about... I said
 that query recordsets and forms are structures, and he said that it's not
 the same kind of structure as a struct(), that the structure function is
 better because it's indexed and that the query and forms are not real
 structures. Which is true?

The FORM scope (and all other scopes) are plain-jane structs - there's no
real difference between them and a struct()-generated structure.  You can
use all the struct functions on scopes.

A query is more complex: it's actually a structure of arrays (each column is
an array).  You can't use many of the struct functions on queries however,
but you can use most of the array functions on query columns.

I'm not sure if this makes it better or worse, but there it is.

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207599
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: next and previous records

2005-05-24 Thread J Elder
You're not passing your variables.
cfif IsDefined(DUE)
cfset qryvar = DUE /
cfelseif isdefined(PASTDUE)
cfset qryvar = PASTDUE /

A HREF=loaddataSummaryResults.cfm?StartRow=#Next#qryvar=#qryvar#


On 5/20/05, WebStop Internet Services  wrote:
 Help! This keeps failing after the first 25 records are displayed and it
 shows all records in the database 25 at a time not just the ones queried
 originally by say company_name. Anyone know why?
 
 cfset todayDate = Now()
 !--- query the EmployeeDirectory table. Cache the result set for 15
  minutes. ---
 CFPARAM NAME=StartRow DEFAULT=1
 CFPARAM NAME=DisplayRows DEFAULT=25
 
 cfquery name=getCompanyData
  datasource=LOADDATA
 SELECT
   company_name,
   container_no,
   billdate,LOADDATA.ID,
   SUM((IN - out) * rate) AS total_rate,
   SUM(IN - out)  AS OnHand
   FROM
   rate_calc
 cfif IsDefined(DUE)WHERE BILLDATE   '#DateFormat(todayDate,
 mm/dd/yy)#'
 cfelseif isdefined(PASTDUE)WHERE BILLDATE   '#DateFormat(todayDate,
 mm/dd/yy)#'
 cfelseif isdefined(TODAY)WHERE BILLDATE  = '#DateFormat(todayDate,
 mm/dd/yy)#'
 cfelseif isdefined(FORM.COMPANY_NAME)WHERE COMPANY_NAME  =
 '#company_name#'
 cfelseif isdefined(FORM.CONTAINER_NO)WHERE CONTAINER_NO  =
 '#container_no#'
 /cfif
 GROUP BY
   company_name,
   container_no,
   billdate, LOADDATA.ID
 ORDER BY company_name, CONTAINER_NO, BILLDATE
 
 /cfquery

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207600
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Structures vs. Real Structures

2005-05-24 Thread Rebecca Wells
So, if you can't just use the structname[structKey] kind of reference for a 
query then how can you reference reference a query value using this model, if 
at all?

 -Original Message-

The FORM scope (and all other scopes) are plain-jane structs - there's no
real difference between them and a struct()-generated structure.  You can
use all the struct functions on scopes.

A query is more complex: it's actually a structure of arrays (each column is
an array).  You can't use many of the struct functions on queries however,
but you can use most of the array functions on query columns.

I'm not sure if this makes it better or worse, but there it is.

Jim Davis

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Security Issue?

2005-05-24 Thread David Delbridge
It's a public webpage.  No SSL.  The ID variable simply specifies which 
news story to view.

Dave

Kevin Aebig wrote:

 It could be a homemade spider from overseas. In what context is the page
 called? Is it an include, a website page, webapp page? Is it under SSL? Is
 it protected in any way?
 
 Kevin
 
 -Original Message-
 From: David Delbridge [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 24, 2005 1:52 PM
 To: CF-Talk
 Subject: Re: Security Issue?
 
 
 I'm afraid not.  The offending characters arrived unpromted in the URL.
 
 Dave
 
 Kevin Aebig wrote:
 
 
My guess is that you're using CFencrypt on a variable before you pass it
through a query param. Is this the case?

Kevin

-Original Message-
From: David Delbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 10:57 AM
To: CF-Talk
Subject: Security Issue?


Hi all,

Does anybody recognize this URL string pattern (%C2%A0%C2%A0It) as a
security exploit?  For example:

http://www.mywebsite.com/form.cfm?ID=89%C2%A0%C2%A0It

It produces the following error in CF:

Incorrect syntax near 'Â'.

SQL = select * from DbName
where (ID = 89Â Â It)

I've received a few of these in the past 24 hours, all from Inktomi's IP
block.  A Google search turns up nothing useful.

Any ideas?

Dave

--

David M. Delbridge
Circa 3000
ColdFusion Hosting
http://www.circa3k.com
866-CIRCA3K (247-2235)
Outside U.S: +1.775-832-2445





 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207602
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Structures vs. Real Structures

2005-05-24 Thread Charlie Griefer
actually you can...

queryname.columnName[rowNumber]

(which is a way to loop over query data in cfscript)

On 5/24/05, Rebecca Wells [EMAIL PROTECTED] wrote:
 So, if you can't just use the structname[structKey] kind of reference for a 
 query then how can you reference reference a query value using this model, if 
 at all?
 
  -Original Message-
 
 The FORM scope (and all other scopes) are plain-jane structs - there's no
 real difference between them and a struct()-generated structure.  You can
 use all the struct functions on scopes.
 
 A query is more complex: it's actually a structure of arrays (each column is
 an array).  You can't use many of the struct functions on queries however,
 but you can use most of the array functions on query columns.
 
 I'm not sure if this makes it better or worse, but there it is.
 
 Jim Davis
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207603
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Returning XML data via a CFC?

2005-05-24 Thread Sean Corfield
On 5/24/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:
 I get back a blank page.  There is some whitespace (CR/LF's, tabs).

If you return a value from a CFC, it's only useful if you call it from
other CF code. If you attempt to call it via the browser as you are
doing, then the Servlet API encodes the result to WDDX so that it can
guarantee it's a string. Do View Source in your browser to see what's
happening.

 I'm trying to access the CFC directly and return XML data so that I
 can use it in an xmlhttp.request transaction to populate some form
 fields, sort of like Google suggest.

If you are trying to write to the HTTP response buffer (i.e., do
output) then specify returntype=void otherwise you will have
problems.
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207604
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


js popup resizing ?

2005-05-24 Thread dave
ina ll the good browsers this script auto resizes to the pics size but in ie it 
doesn't, it just goes to the 200 x 200 is there a hack for it?

 script language=JavaScript type=text/javascript
    function PopupPic(sPicURL) {
  window.open( popup.cfm?+sPicURL, ,
  resizable=1,HEIGHT=200,WIDTH=200);
    }
 /script

 thanks

~Dave the disruptor~ 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207605
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: js popup resizing ?

2005-05-24 Thread Bryan Stevenson
How the heck does that change the window size in any browser? looks to me 
that it hardcodes the window size to 200x200...which is what IE is 
doing...what's that about the good browsers Dave?? ;-)

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.comcfm/54 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207606
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: js popup resizing ?

2005-05-24 Thread Richard Crawford
On Tuesday 24 May 2005 16:57, Bryan Stevenson wrote:
 How the heck does that change the window size in any browser? looks to me
 that it hardcodes the window size to 200x200...which is what IE is
 doing...what's that about the good browsers Dave?? ;-);-)

Uh oh...  *donning asbestos pajamas*

-- 
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207607
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: js popup resizing ?

2005-05-24 Thread Dawson, Michael
p align=\left\bfont face=\Arial\ size=\2\GFI MailSecurity's HTML 
threat engine found HTML scripts in this email and has disabled 
them./font/b/pThat is a user-configurable setting in the browser.  For 
example, I may have FF set to auto-scale the images (no scroll bars), but in 
IE, I want to see them full-size (potential scroll bars).

You can't expect this behavior for each of your users.

You would be better off resizing the images before you send them to the 
browser.  Or, at least, scale them using IMG HEIGHT and WIDTH attributes.

M!ke 

-Original Message-
From: dave [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 6:37 PM
To: CF-Talk
Subject: js popup resizing ?

ina ll the good browsers this script auto resizes to the pics size but in ie it 
doesn't, it just goes to the 200 x 200 is there a hack for it?

 Xcript language=JavaScript type=text/javascript!--
    function PopupPic(sPicURL) {
  window.open( popup.cfm?+sPicURL, ,
  resizable=1,HEIGHT=200,WIDTH=200);
    }
 --/Xcript

 thanks

~Dave the disruptor~ 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207608
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


  1   2   >