cc:
000.com Subject: Re: Functions in Cold Fusion
Currently.. as a language that is one of ColdFusions weaknesses.
There are pretty much two ways to get functions out of ColdFusion..
The first is to encapsulate all the code in a Template and then
just CFINCLUDE the template.. the disadvantage is the page
does not have its own scope and can
Cold Fusion doesn't have functions as you'd know them in Java. It has the
built-in functions, of course. Cold Fusion achieves "function functionality"
through custom tags.
Sharon
At 10:39 AM 8/1/2000 -0700, you wrote:
This is a multi-part message in MIME format.
I'm currently writing an article for the next Fusion Authority (out in the
next day) on how to write and use custom functions in CF. This is not using
modules or any CF tags but is actually using function calls. It's a bit of a
hack and can look ugly in places, but it works. The result is that I
AM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
I'm currently writing an article for the next Fusion Authority (out in the
next day) on how to write and use custom functions in CF. This is not using
modules or any CF tags but is actually using function calls. It's a bit of a
hack
AM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
I'm currently writing an article for the next Fusion Authority (out in the
next day) on how to write and use custom functions in CF. This is not
using
modules or any CF tags but is actually using function calls. It's a bit
using
functions in CF. No tags. For example, IsPhone uses this code:
REFindNoCase('([0-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
- Original Message -
From: "Michael Dinowitz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 12:42 PM
Subject: Re:
How about isSocial, isZip
Brandon Behrens
The Internet Design Firm
512.451.5225
[EMAIL PROTECTED]
http://www.theidf.com
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 10:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold
functions in CF. No tags. For example, IsPhone uses this code:
REFindNoCase('([0-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
Should that be named "IsUSAPhone" so as not to offend our illustrious
international friends?
Ken
t: Tuesday, August 01, 2000 12:42 PM
Subject: Re: Functions in Cold Fusion
I'm currently writing an article for the next Fusion Authority (out in the
next day) on how to write and use custom functions in CF. This is not
using
modules or any CF tags but is actually using function calls.
Very true. I've got a version that covers all phone numbers, but I was
giving a simple example. The point is, if you've got some snippets or code
that you would like in a custom function, send it to me off list.
functions in CF. No tags. For example, IsPhone uses this code:
Another one, IsCreditCard
Nick
- Original Message -
From: "Brandon Behrens" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 1:00 PM
Subject: RE: Functions in Cold Fusion
How about isSocial, isZip
Brandon Behrens
The Internet Design Firm
512.451.52
PROTECTED]]
Sent: Tuesday, August 01, 2000 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
How about IsURL?
At 01:10 PM 8/1/00 -0400, you wrote:
OK, I need some community input here. For my article on custom functions,
I've written one for IsEmail and IsPhone. Can people send me
tc.
And we have to be able to use it in OnValidate routines for CFINPUT tags
It's really simple.
I'd be willing to Beta Test it too.
-Gel
- Original Message -
From: Michael Dinowitz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 2:10 PM
Subject: Re: Functions in C
this and it worked like a champ. Go CF! :)
-Rick
-Original Message-
From: Rick Osborne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Functions in Cold Fusion
(A bit tongue-in-cheek for a second, here.)
Have you seen a good regex
: Jennifer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
How about IsURL?
At 01:10 PM 8/1/00 -0400, you wrote:
OK, I need some community input here. For my article on custom functions,
I've written one for IsEmail
Many others have addressed creating CF functions, so I'll just bite off the
part of calling java classes.
In CF 4.5, allaire introduced the ability to call java classes directly
with the CFOBJECT tag. The biggest trick, is getting the correct jvm path
into the CFAdministrator, which involves
, 2000 12:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
Many others have addressed creating CF functions, so I'll just bite off the
part of calling java classes.
In CF 4.5, allaire introduced the ability to call java classes directly
with the CFOBJECT tag. The biggest trick
PROTECTED]]
Sent: Tuesday, August 01, 2000 3:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Functions in Cold Fusion
(Because I know that if I didn't take the challenge then someone else
would...)
The perl regex for *HTTP URLs only* is:
(?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d
]
Subject: Re: Functions in Cold Fusion
Many others have addressed creating CF functions, so I'll just bite off the
part of calling java classes.
In CF 4.5, allaire introduced the ability to call java classes directly
with the CFOBJECT tag. The biggest trick, is getting the correct jvm path
mimic" the functionality of the aforementioned functions.
Benjamin S. Rogers
Web Developer, c4.net
voice: (508) 240-0051
fax: (508) 240-0057
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 1:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Functio
[Steve Bernard]
It would also help to add position matching characters such as
^ and $. This would prevent additional information from being
passed along the URL.
A good idea for an IsURL()-type function, but not for a URLify() or
FindURL() -type function, where the URL could be in the middle of
[Benjamin S. Rogers]
[How about the following:]
Aiight. Devil's Advocate here, but if you're trying to hack search
functions for your arrays, you're probably not doing it right. But, that's
just my opinion. However, just as an exercise for the old noggin ...
Solutions when you do it
-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
- Original Message -
From: "Michael Dinowitz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 12:42 PM
Subject: Re: Functions in Cold Fusion
I'm currently writing an article for the next Fusion
umber)
- Original Message -
From: "Michael Dinowitz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 12:42 PM
Subject: Re: Functions in Cold Fusion
I'm currently writing an article for the next Fusion Authority (out in the
next day) on how to write
Wow! Only 2 numbers for a whole Country/Continent ;-)
(Running Ducking)
At 09:40 AM 8/2/00 +1000, you wrote:
Here in Australia we
use (99) or 999 999.
--
Archives:
ROFL.
Thanks!
best, paul
At 01:53 PM 8/2/00 +1000, you wrote:
Yes, its a huge party line. My allotted time on the phone is 4:02am -
4:07am Wednesdays, unless it's a police or fire emergency in which case I
have 5:15am-5:17am Saturdays as well.
And since the numbers are all 9s, it cuts the
At 09:40 AM 8/2/00 +1000, you wrote:
Here in Australia we
use (99) or 999 999.
Where in Oz are you?
Ron...
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
Windsor, NSW. Near Sydney
The second type of number, 999 999 refers to the growing practice of
using a mobile as the main number.
Cheers,
Mike Kear
AFP Web Development
Windsor, NSW, Australia
http://www.afp.zip.com.au
On Wed, 2 Aug 2000, Access Communication Concepts wrote:
At 09:40
: Functions in Cold Fusion
Windsor, NSW. Near Sydney
The second type of number, 999 999 refers to the growing practice of
using a mobile as the main number.
Cheers,
Mike Kear
AFP Web Development
Windsor, NSW, Australia
http://www.afp.zip.com.au
On Wed, 2 Aug 2000, Access
30 matches
Mail list logo