Re: cfx_pwcardcrypt (was: encrypt credit card field?)

2001-06-22 Thread Kay Smoljak

On Fri, 22 Jun 2001 14:13:33 +1000, Peter Tilbrook
[EMAIL PROTECTED] wrote:
4) It is relatively inexpensive considering its power and usefulness
(AUD$50.00 - about US$20.00 or there abouts).

While all your other very flattering comments are in fact true (thank you -
I can see the tag blushing right now), the prices listed on the web site are
already in US dollars. The single license (one server) costs US$49 and the
unlimited license is US $299. Considering the cost of a commercial PGP
license, I think it's very good value.

Regards,
Kay.
__
Kay Smoljak - ColdFusion Developer - PerthWeb Pty Ltd
Internet Solutions for your business!

Level 9/105 St George's Tc - Perth - Western Australia
Ph: (08) 9226 1366 Fax: (08) 9226 1375 Mobile : 0419 949 007
Visit Perth online! : www.perthweb.com.au

Tools for developers: http://developer.perthweb.com.au
-- cfx_pwimageproc: image processing tool
-- cfx_pwcardcrypt: credit card validation and encryption



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Opening PDF files

2001-06-22 Thread Dave Borgeest

Funny one that we've been scratching our heads over all afternoon.

Our client needs a document tracking system, which allows authorized
users to view PDF files. For legal reasons they want to track the date,
time and IP Address of who views these documents.

This is the code I'm using

cfquery datasource=theDB name=logDocView
  INSERT into docLog
  (documents_ID, dateViewed, ipAddress)
  VALUES
  (#DocID#, #CreateODBCDateTime(now())#, '#CGI.remote_addr#')
 /cfquery

cflocation url=documents/#docFilename#

When we run this query, we end up with three records in the database. If
I do a CFLocation to a CFM file instead of a PDF file I only get one
record inserted. Plus if I remove the CFLocation and replace it with a
a href it also inserts just one record. G!

Anyone seen this one?

Cheers


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFCOOKIE Session variable problems with IE 5.0 on Mac

2001-06-22 Thread David Laing

Hi All.

I've been battling with a problem on with IE5.0 on the Mac for the past few
hours and wonder if anyone has
a) Had a similar experience
b) Knows of a solution.

My script does the following.
1.  It turns session management on:

cfapplication name=RugbyScene sessionmanagement=Yes
setclientcookies=Yes sessiontimeout=#attributes.sessiontimeout#

2.  It checks for the existance of a cookie, called visitorID:

cfif isDefined(cookie.visitorID)

3.  If this isn't defined, then it generates a new visitor ID, and stores
this in a cookie

cfcookie name=visitorID value=#qry_GetVisitorID.VisitorID#
expires=NEVER

4.  It then uses the cookie variable in the page.

5.  Next time you visit the page, it sees that cookie.visitorID is set, so
it doesn't generate a new one.  This works perfectly on IE5/Win, NN/Win,
NN/Mac but not on IE5/Mac.  Every time I visit the page on the IE5/Mac, it
generates a new visitorID for the cookie (ie, the previous one wasn't set).
Cookies are definately allowed in IE5.  They just don't seem to be stored
between page refreshes!  You will also see that I use cookies for session
management (CFID  CFTOKEN) - these are also getting lost, so my sessions
aren't working either.

I am at a bit of a loss as to what to do - some pointers would be much
appreciated (Allaires Forums and Dev Exchange are pretty quiet on this one)

Update*
I have just discovered the following.  If I make the cookie a session
cookie, (ie, I leave out the expires=... bit : cfcookie name=visitorID
value=#qry_GetVisitorID.VisitorID#) then the cookie is stored, but only
whilst the browser is open.  If I put anything (NEVER, 7, 01/01/2002 etc.)
then the cookie isn't stored at all.  Does that shed any light?
**

Regards

David Laing (david [at] vardus.com)
Substitute Window Washer, Vardus Internet Solutions

(A)bort, (R)etry, (F)*ckup completely?


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



aggregate functions and the rest

2001-06-22 Thread John McCosker

Hey does anyone have a clear answer to this,

I can't include aggregate functions within a combined query, this is what I
am doing,

cfif form.glimpseFormat eq 1
cfif form.criteria eq 1
SELECT max(averFlow) as maxaverFlow, 
(SELECT  datePart(dd, dt)) AS day 
FROMdbo.milford
WHERE   datediff(day, dt, getdate()) = 0
cfelseif .
cfelse

is it possible to combined aggregate functions?

this is my error

Column 'dbo.milford.dt' is invalid in the select list because it is not
contained in an aggregate function and there is no GROUP BY clause

Thanx in advance...  

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



JavaScript not working in cfm

2001-06-22 Thread Stephen Galligan

Any of you guys seen this before - I have a perfect working html page which
has some Javascript in it for rollovers.  As soon as I change the page to
..cfm the javascript doesn't work!!I get object not found.



-- 
Stephen Galligan 
Web Developer 
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 488 9131 
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF and Excel

2001-06-22 Thread Dave Hannum

I do it a couple of ways.  First, you can create a comma delimited file
(.csv) and then using cfcontent, deliver it right to the browser to be
downloaded, or you can write it to the server to be downloaded later.  Or, I
often use the CFX_EXCEL custom tag from the exchange.  You need Excel on the
server and be sure to LOCK properly, but this produces an actual .xls file.
Again, you can either download directly or write to the hard drive.  Either
way works.

Dave

- Original Message -
From: David Baskin [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 7:50 PM
Subject: CF and Excel


 Hello, i've been tasked with taking data out of a SQL database and
inserting
 it into an excel spread sheet. I went to CFComet and read through their
 instructions and ran their sample code, but i cannot get it to work. I get
 the following error:

 Error Diagnostic Information
 Error trying to create object specified in the tag.

 COM error 0x80040154. Class not registered

 Does anyone know how best to connect and write to excel and if there is a
 good tutorial that i can learn from. Creating and connecting to objects is
 new to me, so i'm a little lost. Thanks for any help.

 david



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: personal web server that will work with win 98 and coldfusion

2001-06-22 Thread Dave Hannum

I believe Windows 98 has PWS on the install disk.

Dave


- Original Message -
From: Parra, Fernando [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 12:22 AM
Subject: personal web server that will work with win 98 and coldfusion




 I am using cold fusion single server 4 with cold fusion but every time I
 load single server it asks
 me for the personal web server on my computer. I have tried several free
web
 servers that work well
 for FTP, HTTTP, and ISAPI but lack things such as SSL. single server does
 not automatically detect these servers.
 do you know where I can get a personal web server that will work with win
98
 and cold fusion.


 Thanks,


 Fernando



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Duplicate name conflict error message

2001-06-22 Thread Don Vawter

 for a cf error viewing source wouldnt help because cf is talking about
template not rendered version. If you have a js error the view source copy
and paste works well.

- Original Message -
From: Kay Smoljak [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 11:26 PM
Subject: Re: Duplicate name conflict error message


 On Thu, 21 Jun 2001 13:30:42 -0400, [EMAIL PROTECTED] wrote:
 I'm getting a 'Duplicate name conflict' error message.  I'm unable to
solve
 it, because the code in which it is appearing is over 1,000 lines long.
 Also, the error message states:
 The error occurred while processing an element with a general identifier
 of (CFINPUT), occupying document position (380:1) to (381:39).
 
 This doesn't help me, because line 280 contains only the code /TR and
 line 381 is completely blank, with nothing on it at all.  I don't
 understand, therefore, how the message could refer to line 381, position
39.

 Hi Hubert,

 Are you counting the line numbers in your code or in the browser's output?
 You'll probably find that they are different, due to CF adding whitespace
 when it processes the page. I usually paste the view source output in to
 CF Studio so I can see the line numbers.

 HTH,
 K.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Pause de 30 secondes durant un process : idée!

2001-06-22 Thread Daive

J'ai eu cette idée mais j'aimerais avoir l'avis de certains d'entre vous à
ce sujet.

Imaginons une variable contenant l'heure, et une loop avec pour condition
que la variable + 30 secondes stop la loop. (autremendit, ma loop va looper
jusqu'à temps que 30 secondes ce soit écoulés)

Est-ce que ça va influencer les ressources du serveur? J'ai peur du
résultat.. :\

Daive!



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: how to do a loop? ...or something.

2001-06-22 Thread kraybill

Aimee

You're right. Actually,  now that I think of it, the way I've handled 
this situation is to append the ID number to the name of the field, 
e.g.:

INPUT TYPE=text NAME=Name_#ID# VALUE=#Name#
and do the same for the address, then just loop through all the 
fieldnames that start with Name_, use the Eval function to get the 
name value in each case, parse out the ID number (using List 
functions with the underscore as the delimiter) and then use that 
same ID number with Address_#ID# to determine with the 
corresponding Address value.

The logic would go something like this:

CFLOOP through the fieldnames
If the field begins with Name_, determine its value and parse 
out the ID number.
Use the same ID number and plug it into Address_#ID# to 
determine the address value.
Update that record.
/CFLOOP

Others may have a better way...

Gene Kraybill   

On 21 Jun 2001, at 23:20, Aimee Abbott wrote:

 Gene, Thanks!
 
 Unfortunately not that simple.  It doesn't pass a null value.  If I have 
 three of them and only two addresses I get a list with only two elements in 
 it, not two and a null.  My *current* idea is to put the default
 input type=text value=--None-- etc...
 for any field that does not have a value.  Then use basically your script 
 to parse it out.  This will break though if someone enters something  and 
 then decides it was a mistake, deletes it, and types it on the next 
 line.  I thought maybe I could count the list elements to make sure they 
 were correct but then what?
 
 Does CFinput work the same way I wonder?
 
 At 11:39 PM 6/21/2001 -0700, you wrote:
 Aimee,
 
 Here's one possible way:
 
 The form fields for the addresses, all named address, will produce
 a comma-delimited list with as many elements as people. That is,
 even if some of the address fields are blank, the form will still pass
 those to the action template.
 
 I assume you're also using a unique ID number for each contact,
 so you could populate the initial form with hidden input fields, like
 this, to pass the ID numbers retrieved via your second query:
 
 INPUT TYPE=hidden NAME=ContactID
 VALUE=#ContactID#
 
 Then you should be able to loop through the ContactIDs using LIST
 functions, something like this to save the info:
 
 CFSET Counter=0
 CFLOOP INDEX=ThisContactID  LIST=#Form.ContactID#
  CFSET Counter=Counter+1
  CFQUERY NAME=SaveContact DATASOURCE=yourdb
  UPDATE Contacts
  SET Name=#ListGetAt(Form.Name, Counter)#,
  Address=#ListGetAt(Form.Address, Counter)#
  WHERE ContactID=#ThisContactID#
  /CFQUERY
 /CFLOOP
 
 ListGetAt combined with the Counter number will keep the
 information in sync...
 
 Gene Kraybill
 LPW  Associates
 Mansfield, PA
 
 On 21 Jun 2001, at 20:27, Aimee Abbott wrote:
 
  
   Hello everyone!
  
   I have a database of companys, names, contacts and addresses.  Not all
   companys have contact addresses.  I am setting up a form that will allow
   people to come and change their address.  They will get to the form by
   entering a url with a primary key at the end of it.  This will query up 
  the
   company and then a second query will get the people.  The second gets the
   contact names and addresses -- there can be as many as a dozen
   contacts.  That is the one I am having trouble with.  What I have done is
   set it up so (in simple form)
  
   form action...whatever
   cfoutput query=first
   !--- company info up here.  Only one company per web page. ---
   /cfoutput
  
   cfoutput query=second
   name: input type=text name=person value=#name#
   address: input type=text name=address value=#address#
   /cfoutput
  
   /form
   Now, like I said there can be a lot of contact names.
  
   So, then on the next page where I save it in the database, what do I 
  do?  I
   get the information in the form of a list. Where
   #name#=bob, mary, alice, harry, john
   but not everyone has an address so I might get
   #address#=chicago, minneapolis, rome
  
   I need to some how match these up somehow and update the record.  Any idea
   how I can go about doing this?
  
   I have thought about the first page having some sort of number appended on
   to the end of the variable name so the form would somehow have name1,
   name2, name3, name4 but I don't actually know how to do that.
  
   Or from the second page, can I access individual list elements?  And even
   if I could, how could I know that bob is from chicago, mary is blank and
   alice is from minneapolis?
  
   If I haven't explained this well enough please let me know!
  
   Thanks much!
  
  
  

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JavaScript not working in cfm

2001-06-22 Thread Dylan Bromby

post the code.

-Original Message-
From: Stephen Galligan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:34 AM
To: CF-Talk
Subject: JavaScript not working in cfm


Any of you guys seen this before - I have a perfect working html page which
has some Javascript in it for rollovers.  As soon as I change the page to
...cfm the javascript doesn't work!!I get object not found.



--
Stephen Galligan
Web Developer
Thoughtbubble Ltd
http://www.thoughtbubble.net
--
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
--
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
--
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Is it possible to break out the code in a table from a file that is read in

2001-06-22 Thread Larry Juncker

THANK YOU for the responses that I did receive on this issue.

I have worked out my problem and got it to work just fine.

It ends up a long process, but it was worth it.

Again Thanks to all who responded.

-Original Message-
From: Bill Davidson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 4:31 PM
To: CF-Talk
Subject: Re: Is it possible to break out the code in a table from a file
that is read in


I think the easiest way to do it is to modify the file slightly so that the
td for that piece of that table is different, so you can find it, like do
td , which is perfectly legal, but it is different from the other td's
(or use a title=key attribute or something).

cfset begin_pos = find(TD , variable_that_contains_the_table_code) + 5
cfset end_pos = find(/TD, variable_that_contains_the_table_code,
begin_pos) -1
cfset string_chunk = mid(variable_that_contains_the_table_code, begin_pos,
end_pos)

Something like that should work.  I think.  If you use a different qualifier
instead of td , just replace that bit.

-Bill
brainbox

- Original Message -
From: Larry Juncker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 11:52 AM
Subject: Is it possible to break out the code in a table from a file that is
read in


 I sent this post yesterday and did not receive any kind of response, so I
 wanted to try once more.  Excuse me if it is too simple, but I am puzzled
on
 it.

 I have a file that has the code in it for a table.
 Is there a way that I can break out this table code into say q query or
 something that can be used?  I only want parts of the table code.

 For instance:
 TABLE
   TR
 TDHeader/TD
 TDCode1/TD
 TDCode2/TD
   /TR
 /TABLE
 I wan to be able to extract only the Code 2 cells of each row in the
table.

 Hope this makes sense.

 TIA


 Larry Juncker
 Senior Cold Fusion Developer
 Heartland Communications Group, Inc.
 [EMAIL PROTECTED]



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Basket problem

2001-06-22 Thread W Luke

Why not prevent the user from adding the item twice?

Will

- Original Message -
From: Michel Gagnon [EMAIL PROTECTED]
Newsgroups: cf-talk
Sent: Thursday, June 21, 2001 8:23 PM
Subject: Basket problem


 Hi!

 I have a small problem.
 I have a delete button set up that deletes
 items in the basket.  Only that if the person
 accidentally added the same item twice and want to remove one,
 it deletes both.

 cfset newBasket = queryNew(ID, Quantity)

 cfloop query=session.basket
 !--- Add anything that isn't in the delete list ---
 cfif Not(ListFind(Form.ID, ID))
 cfset tmp = queryAddRow(newBasket)
 cfset tmp = querySetCell(newBasket, ID, ID)
 cfset tmp = querySetCell(newBasket, Quantity, quantity)
 /cfif
 /cfloop
 !--- set the basket to the new values ---
 cfset session.basket = newBasket


 Is there another way of doing this?

 TIA,

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JavaScript not working in cfm

2001-06-22 Thread Stephen Galligan

We worked out the problem.  We had coldfusion comments surrounding the
JavaScript so it wasn't read!  It works now

Regards

-Original Message-
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: 22 June 2001 14:25
To: CF-Talk
Subject: RE: JavaScript not working in cfm


post the code.

-Original Message-
From: Stephen Galligan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:34 AM
To: CF-Talk
Subject: JavaScript not working in cfm


Any of you guys seen this before - I have a perfect working html page which
has some Javascript in it for rollovers.  As soon as I change the page to
cfm the javascript doesn't work!!I get object not found.



--
Stephen Galligan
Web Developer
Thoughtbubble Ltd
http://www.thoughtbubble.net
--
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
--
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
--
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: personal web server that will work with win 98 and coldfusion

2001-06-22 Thread Larry Juncker

I concur, I use Microsoft's PWS with my Cold Fusion Server and it works
super.
Only  thing, is, that because your Single Version is indeed SINGLE, You can
not access
your pages from anywhere except the computer you have CF Single installed
on.

If you go into Control Panel/Windows setup and look under your Internet
Tools entry, you will find Personal Web Server.  Just load it and your set.

-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 6:49 AM
To: CF-Talk
Subject: Re: personal web server that will work with win 98 and
coldfusion


I believe Windows 98 has PWS on the install disk.

Dave


- Original Message -
From: Parra, Fernando [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 12:22 AM
Subject: personal web server that will work with win 98 and coldfusion




 I am using cold fusion single server 4 with cold fusion but every time I
 load single server it asks
 me for the personal web server on my computer. I have tried several free
web
 servers that work well
 for FTP, HTTTP, and ISAPI but lack things such as SSL. single server does
 not automatically detect these servers.
 do you know where I can get a personal web server that will work with win
98
 and cold fusion.


 Thanks,


 Fernando



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Navigation

2001-06-22 Thread Semrau, Steven L Mr SRA

Try taking a look at the Joust Menu at http://www.ivanpeters.com/

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 5:53 PM
To: CF-Talk
Subject: Re: CF Navigation



I'm looking for a menu navigation for a site that is similar to the windows 
environment.

Does anyone know of some nice ones?
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Coldfusion tag to send files across servers?

2001-06-22 Thread Chad McCue

Hello,
 I am currently looking for some good ideas for sending information from one 
server to another securely from cfscheduler. Someone mentioned cfhttp but I didn't 
think I was able to send things across servers via this method. I am open to any 
suggestions.
 
Thanks.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF-Talk-list V1 #38

2001-06-22 Thread TDesimone


I've recieved only a few emails, but I am checking the archive (see link at
bottom of email, be careful not to click on the 'Unsubscribe' link.) via a
'Date Index' for new emails.






Cameron [EMAIL PROTECTED] on 06/21/2001 04:55:34 PM

Please respond to [EMAIL PROTECTED]

To:   CF-Talk [EMAIL PROTECTED]
cc:

Subject:  Re: CF-Talk-list V1 #38


Hmmm, is something up with the list?

Cause usually I get atleast one large (40K) digest a day, usually a few
small ones too.

But yesterday I had no emails,  today I get digest #38 with only one
message.  last Tuesday (list time) I got three small digests (biggest was
6K)...

Seems the list is a lot slower at the moment for some strange reason...

Cameron

- Original Message -
From: CF-Talk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 3:10 AM
Subject: CF-Talk-list V1 #38


 CF-Talk-list   Thu, 21 Jun 2001   Volume 1 :
Number 38

 In this issue:

 Re: encrypt credit card field?


 --

 Date: Thu, 21 Jun 2001 22:31:01 +0800
 From: Kay Smoljak [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Subject: Re: encrypt credit card field?
 Message-ID: [EMAIL PROTECTED]

 Tom,

 Have a look at our cfx_pwcardcrypt tag, http://developer.perthweb.com.au.
We
 designed it for a client storing cc numbers for monthly subscriptions, it
 uses RSA public key crypto.

 HTH,
 K.

 On Thu, 21 Jun 2001 08:43:19 -0500, Tom Davison
[EMAIL PROTECTED]
 wrote:
 How would you go about securing credit card info in an access database?
Is
 it possible?

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: personal web server that will work with win 98 and coldfusion

2001-06-22 Thread Dylan Bromby

It does.

-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 4:49 AM
To: CF-Talk
Subject: Re: personal web server that will work with win 98 and
coldfusion


I believe Windows 98 has PWS on the install disk.

Dave


- Original Message -
From: Parra, Fernando [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 12:22 AM
Subject: personal web server that will work with win 98 and coldfusion




 I am using cold fusion single server 4 with cold fusion but every time I
 load single server it asks
 me for the personal web server on my computer. I have tried several free
web
 servers that work well
 for FTP, HTTTP, and ISAPI but lack things such as SSL. single server does
 not automatically detect these servers.
 do you know where I can get a personal web server that will work with win
98
 and cold fusion.


 Thanks,


 Fernando



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Pause de 30 secondes durant un process : idée!

2001-06-22 Thread Shawnea Carter

Essayez ceci:

cfset loopstop = DateAdd(s, 30, now())
cfset testtime=DateCompare(Now(), loopstop ,s)

cfloop condition=testtime EQ -1
 cfset testtime=DateCompare(Now(), loopstop ,s)
/cfloop


Sincèrement,
Shawnea Carter
Certified Allaire Developer
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



1 server, same security database

2001-06-22 Thread Thomas Chiverton

Has anyone made ColdFusion (5 in this case, but I suspect with 4 too) work
in this sort of enviroment ?
I have a development box, and a live server, and I'd like both to use the
same ODBC source for the SiteMinder database.
However, and can only ever seem to get one goign at a time, because the
datasource setup stuff resets the shared secrets and stuff, and so the
advanced admin. bit wont open on the other one to set them - argh !

Any hints or thoughts ?

Regards,

Thomas Chiverton
01565 757 909
Another fine development by Boring Sigs Inc.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: personal web server that will work with win 98 and coldfusion

2001-06-22 Thread Dave Hannum

Single user CFServer will work for the first IP to access it after it's
started each time.  So, say, if you wanted to demo a page for someone, and
your machine has an IP that can be reached from outside, if you stop and
restart your CFServer, the person you want to demo to can access the page if
they're the first to hit it after you restart the server.  I believe it's
still this way . . .

Dave


- Original Message -
From: Larry Juncker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 9:31 AM
Subject: RE: personal web server that will work with win 98 and coldfusion


 I concur, I use Microsoft's PWS with my Cold Fusion Server and it works
 super.
 Only  thing, is, that because your Single Version is indeed SINGLE, You
can
 not access
 your pages from anywhere except the computer you have CF Single installed
 on.

 If you go into Control Panel/Windows setup and look under your Internet
 Tools entry, you will find Personal Web Server.  Just load it and your
set.

 -Original Message-
 From: Dave Hannum [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 22, 2001 6:49 AM
 To: CF-Talk
 Subject: Re: personal web server that will work with win 98 and
 coldfusion


 I believe Windows 98 has PWS on the install disk.

 Dave


 - Original Message -
 From: Parra, Fernando [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, June 22, 2001 12:22 AM
 Subject: personal web server that will work with win 98 and coldfusion


 
 
  I am using cold fusion single server 4 with cold fusion but every time
I
  load single server it asks
  me for the personal web server on my computer. I have tried several free
 web
  servers that work well
  for FTP, HTTTP, and ISAPI but lack things such as SSL. single server
does
  not automatically detect these servers.
  do you know where I can get a personal web server that will work with
win
 98
  and cold fusion.
 
 
  Thanks,
 
 
  Fernando
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Coldfusion tag to send files across servers?

2001-06-22 Thread Dylan Bromby

functionally, CFFTP can do what you want, although it may not address your
security needs.

-Original Message-
From: Chad McCue [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 6:46 AM
To: CF-Talk
Subject: Coldfusion tag to send files across servers?


Hello,
 I am currently looking for some good ideas for sending information from
one server to another securely from cfscheduler. Someone mentioned cfhttp
but I didn't think I was able to send things across servers via this method.
I am open to any suggestions.

Thanks.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cgi.http_referer in NN

2001-06-22 Thread Tim Bahlke

I can't read cgi.http_referer in NN - in a frameset.  Is this only available in IE?

Thanks,
Tim Bahlke

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Coldfusion tag to send files across servers?

2001-06-22 Thread Critter

Hello Chad,

you could use cfftpor read the files into variables and post them across, no?



-- 
Critter
Certified ColdFusion Developer

T e r r a V e r g e
Geotechnologies
http://terraverge.com
---
Friday, June 22, 2001, 09:46:00 AM, you wrote:

CM Hello,
CM  I am currently looking for some good ideas for sending information from one 
server to another securely from cfscheduler. Someone mentioned cfhttp but I didn't 
think I was able to send things
CM across servers via this method. I am open to any suggestions.
 
CM Thanks.


CM
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Acceptable Response Times - Scalability

2001-06-22 Thread Chris Stoner

Can anyone point me to any documentation that details acceptable response
times on web applications?  What are the industry standards on how long a
database applications page should take?

-- Chris


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Test- ignore

2001-06-22 Thread Kevan . Windle




**

The opinions expressed in this E-mail are those  of  the individual  and
not  necessarily  the  company.  This E-mail and  any files transmitted 
with it are confidential and solely for the use of the intended recipients

**

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



For those of you always looking for hosting partners..

2001-06-22 Thread Jeffry Houser


  For all those looking for hosting partner recommendations (I know it 
comes up on occasion):

  The folks at CFXhosting saved my butt big-time yesterday after I 
(accidently) discontinued all the products in an e-commerce site.

  Now you are all thinking who would be stupid enough to
  The database structure sucks, there is no administration interface, and 
they won't give me approval to fix the DB structure.  I had recommended not 
to spend money building an admin interface without first fixing the DB 
structure.  Of course, w/o an admin interface for maintaining data, they 
are having me do all/most of the db changes manually, so I've been writing 
SQL Queries on the fly as we go to change the data.  I think it's a miracle 
that I've gotten this far without making a mistake.

  I've been saying ever since I was brought onto the project that the 
sloppy database structure and poor CF code is eventually going to bring the 
site beyond a fixable point.  I think it almost got there yesterday.

   Did I give my two thumbs up plug for CFXHosting yet?  They helped a lot 
in helping to restore the database, bypassing their 48 hour policy on such 
requests and being supportive every step of the way.



--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: cfx_pwcardcrypt (was: encrypt credit card field?)

2001-06-22 Thread Tom Davison

well lets say I wanted to order it... I notice the site is not secure for
credit card info...  why is this?

Tom
- Original Message -
From: Kay Smoljak [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 1:48 AM
Subject: Re: cfx_pwcardcrypt (was: encrypt credit card field?)


 On Fri, 22 Jun 2001 14:13:33 +1000, Peter Tilbrook
 [EMAIL PROTECTED] wrote:
 4) It is relatively inexpensive considering its power and usefulness
 (AUD$50.00 - about US$20.00 or there abouts).

 While all your other very flattering comments are in fact true (thank
you -
 I can see the tag blushing right now), the prices listed on the web site
are
 already in US dollars. The single license (one server) costs US$49 and the
 unlimited license is US $299. Considering the cost of a commercial PGP
 license, I think it's very good value.

 Regards,
 Kay.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cffile upload with macs and pc's

2001-06-22 Thread Tom Davison

Hello, I have an app that I am having users upload images and stuff via cffile upload 
and I want to be sure that there are no issues with the Mac.  I have read that there 
are lots of issues with the Macs uploading.  Is there anything that can be done for 
this?

Thanks,

Tom


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Duplicate name conflict error message

2001-06-22 Thread hearl

Thanks for the response. You're right.  The problem actually is that I have
more than one
field in the form with the same name.  The reason for this is that the form
allows users to apply for insurance to cover their property or properties.
As an applicant may have more than one property to be insured,  I've
repeated the code in that part of the form dealing with property details
three times, hence the repeat occurrance of fieldnames.

At first, I only used the input and form tags.  However, because I
needed to flag the first occurrance of the various property fields as
required, I changed these to cfinput and cfform tags, but thereby ran
into the problem that CF doesn't allow for repeated fieldnames (and I
couldn't flag any of these fields as 'required' or 'no null allowed' in
Access, since that would cause an error if an applicant had only one or two
properties to be insured, and so left any of the repeated part of the form
blank).

Here is what I need to do:
1.  I need to be able to allow users of my form to enter in details of
anywhere from one to three properties, either by repeating the form code or
by some other device of which I'm presently unaware, at the same time.
2.  I need to be able to make the fields, in the first instance of the part
of the form dealing with property details, required fields, but not any of
the other instances.

I'd appreciate any advice.

Hubert

---
Hubert Earl

ICQ#: 16199853

My Jamaican Art, Craft  More Online Store:
http://www.angelfire.com/ny/hearl/link_page_for_go_jamaica.html
Check out the art print bargains available! Beautiful prints as low as
US$7.50 each, less if you purchase 2 or more. Also being sold:  the
Genealogy of Jamaica CD-ROM


- Original Message -
From: James Taavon [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 3:16 PM
Subject: Re: Duplicate name conflict error message



 It is probably because you have two form elements with the same name.
 Hope that helps.




 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm getting a 'Duplicate name conflict' error message.  I'm unable to
solve it, because the code in which it is appearing is over 1,000 lines
long.  Also, the error message states:
  The error occurred while processing an element with a general
identifier of (CFINPUT), occupying document position (380:1) to (381:39).
 
  This doesn't help me, because line 280 contains only the code /TR and
line 381 is completely blank, with nothing on it at all.  I don't
understand, therefore, how the message could refer to line 381, position 39.
 
  I'd appreciate any advice as to how to solve the error.
 
  Hubert
 
  ---
  Hubert Earl
 
  ICQ#: 16199853
 
  My Jamaican Art, Craft  More Online Store:
http://www.angelfire.com/ny/hearl/link_page_for_go_jamaica.html
  Check out the art print bargains available! Beautiful prints as low as
US$7.50 each, less if you purchase 2 or more. Also being sold:  the
Genealogy of Jamaica CD-ROM
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: JS, http_referer and browser hell...

2001-06-22 Thread James Medlin


Hi Martin -

I saw your post on the CF-Talk list.  We're having this exact same problem.
Unfortunately, I didn't see any replies to your question on the list.  Did
you find a solution?

Thanks!

James


- Original Message -
From: Martin Cadirola [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 11:42 PM
Subject: JS, http_referer and browser hell...


 Hello there!

 I'm using a window.open() javascript function to pop up a window. These
 new window needs to be bookmark safe, so that I'm doing a
 cgi.http_referer check to allow viewing for only those users who logged
 in to the site first.

 Using Netscape, this thing works just fine. Of course, if I use IE, it
 goes kaboom: the http_referer variable gets lost when the page is called
 with this javascript command.

 I'd prefer avoiding session variables. So I thought of checking with you
 guys for feedback.

 I'd appreciate any suggestions. Thanks soo much!

 Cheers,


 Martin


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Passing a Query Result Set

2001-06-22 Thread Christian Abad

Folks :

Is it possible to pass the entire results of a query from one template to
another?  How is this accomplished?

Thanks,

Christian N. Abad

ColdFusion Developer
Bank of America - eCommerce Technology


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Passing a Query Result Set

2001-06-22 Thread Dave Hannum

WDDX will do the trick.  Check www.openwddx.org

Dave




- Original Message -
From: Christian Abad [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 2:22 PM
Subject: Passing a Query Result Set


 Folks :

 Is it possible to pass the entire results of a query from one template to
 another?  How is this accomplished?

 Thanks,

 Christian N. Abad

 ColdFusion Developer
 Bank of America - eCommerce Technology



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Passing a Query Result Set

2001-06-22 Thread Garza, Jeff

Non-Clustered Response...
Assign it to the server, application or session scopes.  These are held in
memory for the duration of the application or session or, in the case of
server, until the CFAS is restarted.  Remember to ALWAYS lock your reads and
writes to prevent corrupted memory, strange PCode errors or worse

Clustered Response...
If you are dealing with a clustered server environment (or planning on
moving to one...) I'd take a look at XML.  Search the archives for WDDX or
SOXML.

HTH,

Jeff Garza
Lead Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com



-Original Message-
From: Christian Abad [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 22, 2001 11:23 AM
To: CF-Talk
Subject: Passing a Query Result Set


Folks :

Is it possible to pass the entire results of a query from one template to
another?  How is this accomplished?

Thanks,

Christian N. Abad

ColdFusion Developer
Bank of America - eCommerce Technology
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CSS and CF instead of tr?

2001-06-22 Thread Marc Garrett

Is there a way to generate a layout using only CSS and CF? Instead of building a table 
with the number of rows matching the number of results in a query, can this be done in 
CSS?

Thanks,

Marc Garrett



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Test

2001-06-22 Thread cf-talk


This is a test.

Uwe



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFOBJECT Java

2001-06-22 Thread Jordan Saardchit

Does anyone know how to call a static method as opposed to calling the
constructor to instantiate an object using CFOBJECT?  I've got a
Singleton object that I am trying to implement, but when you use
CFOBJECT with the CREATE action, it attempts to instantiate the object,
and throws an exception due to a private constructor.  Any help would be
great.  Thanks.

Jordon

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: cffile upload with macs and pc's

2001-06-22 Thread Massimo Foti

For similar needs I use a generic snippet:

!--- Left and Right trim form values ---
cfloop collection=#form# item=i
 cfset tmt_format_form=StructUpdate(form,i,Trim(form[i]))
/cfloop

Massimo


Larry C. Lyons [EMAIL PROTECTED] wrote in message
 Try encapsulating all your form variables with a trim, as in
 TRIM(form.formName) - when processing the forms. From what I understand
 IE for the mac tends to add spaces to the form values.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Code Check...

2001-06-22 Thread Steve Reich

Here's my code.


cfscript
 if (HTTP_USER_AGENT CONTAINS Mozilla AND HTTP_USER_AGENT DOES NOT CONTAIN
Gecko AND HTTP_USER_AGENT DOES NOT CONTAIN MSIE)
  BROWSERTYPE=NS;
 else
  BROWSERTYPE=MSIE;
/cfscript


I am using this to detect the browser type. I am only worried about NS or
MSIE. This basically says that if it's  NS6 treat as NS, otherwise if
it's MSIE, NS6, or anything else, treat as MSIE. I'm only using it to
determine style elements. I've been using CF_Browser in the tag gallery but
it is too bloated for my needs. Are there any holes here or obvious blunders
that I haven't considered?

Thanks,
Steve





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFSCHEDULE User Agent

2001-06-22 Thread Steve Reich

I just figured out something interesting and useful...

If you have a template that is fired using CFSCHEDULE, it will have the
cgi.http_user_agent string CFSCHEDULE. With that, you can prevent the
template from running if you only want it executed by the scheduler...

I have some database maintenance templates, but I didn't want anyone to be
able to run them in a browser. This seems like a good way to protect
them

Thought it was worth sharing...
Steve


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists