You should look into the CACHEDAFTER and CACHEDWITHIN attributes of the
CFQUERY tag. This will allow you to keep queries in memory for a period of
time that you indicate using the CreateTimeSpan(days, hours, minutes,
seconds) function. Every time the query is run with exactly the same
parameters
Is anyone playing with user defined functions? I can not find any doc's on
the subject in cfdocs or in studio. I wander if there is a way to do what I
am trying below
CFSCRIPT
function mydate(){
if (arguments is )
d = now();
else
d = arguments[1];
return DateFormat(d);
}
/CFSCRIPT
What's the tag that prevents page caching?
thanks,
Heidi
=
Heidi Belal
ICQ# 32127109
A bus stops at a bus station.
A train stops at a train station. On my desk
I have a work station...
~~
Structure your ColdFusion code with Fusebox. Get the
I seem to have a bit of a problem setting up some CF files for display on a windows2000
server.
The files themselves exist on another server so I have set the web server to
'content exists on another server' and entered the correct unc path ie
//myOtherServer/myDirectory
Sure enough, those
I am definetly not an IIS guru, but could you setup a shared drive and link
to it as a virtual directory?
Duane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 02, 2001 8:43 AM
To: CF-Talk
Subject: Calling all IIS Gurus..
I seem to have a
You need to run the ColdFusion service under an account with rights on the other
server. By default, CF runs under the system
account which does not have rights on other servers.
HTH,
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
Bryan,
In UDF's, you can use the ArrayLen() function to check for the existence of
passed values:
CFSCRIPT
function mydate()
{
var d = ;
if(ArrayLen(Arguments))
d = Arguments[1];
else
d = Now();
return DateFormat(d);
}
/CFSCRIPT
Dimitar,
You could try something like the following, which requires two steps. The
first page uses a .cfm file as the source of an image, passing it the user's
'uid' value. The second page (the one that queries the LDAP server) uses
CFCONTENT and the query result to form the proper MIME type of
Thanks, I was walking past the kitchen table and picked up a copy this
months cfdj and read Ben Forta's article. That got me to thinking how could
I put all of my function in one place and load them up only once per visit
to the web site and not cfinclude them on ever page. I wrote this cool
Now I am thinking about building a wizard like my custom tag wizard that
will let you go in an package all of your functions into a library by way
of
a custom tag. What d-ya think.
Hey, have at it :-)
Have you seen the Common Function Library Project yet?
http://www.cflib.org/
Dain
Yes, the custom tag I built was for the _strlib function library, I'll send
you a copy off line if you like and you can check it out.
- Original Message -
From: Dain Anderson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, June 02, 2001 9:51 AM
Subject: Re: CF5 and UDF's
Do you need to lock each session variable individually or can you lock them
all as a group using a cfscript?
Rich
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives:
Here it is Dave. One thing I have found useful is to use Google to search
for the tag. It is amazing how many of these kinds of tags you can find!!
http://www.forumspot.org/downloads/download.cfm
-Original Message-
From: David Hannum [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01,
I have tried creating a sample graph in CF 5 using the cfgraph tag but the
browser just keeps on churning and never gives me data or error. What am I
doing wrong or do I neeed to set up something on the server? Code I used is
from documentation and is:
cfgraph type=pie title=Income by
Thank you very much. 'Never thought of using search for it . . . 8-)
Dave
- Original Message -
From: James McCullough [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, June 02, 2001 2:33 PM
Subject: RE: CFX_REPLACE_CHARS
Here it is Dave. One thing I have found useful
Also u have the // the wrong way round it should be
\\myotherserver\myotherdicrectory .
From Rif Kiamil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 02 June 2001 13:43
To: CF-Talk
Subject:Calling all IIS Gurus..
I seem to have a bit
You can lock them all as a group.
Cheers,
Jeff Garza
Webmaster,
Spectrum Astro, Inc.
[EMAIL PROTECTED]
-Original Message-
From: Alii Design
To: CF-Talk
Sent: 6/2/01 8:18 AM
Subject: locking question
Do you need to lock each session variable individually or can you lock
them
all as a
Hi,
I need to search for any URLs that exist in #tbody# and if so, dump the
whole URL into a new variable called #user_URL#
I've done a basic REfindnocase to check if there is a URL in the string, but
that only finds the position(s). Hw can I then grab the whole of the URL?
Cfset z =
Wow, now this is too much of a coincidence. I just opened up my email
program to post a message saying I had just successfully written a program
that parses url's out of a document, and was just wondering if anyone had a
better way to do it. Well here is how I did it.
If anyone knows of a faster
Jon,
How might I change this to searching inside a variable that contains the
text, and not a file as you have done?
Will
--
Will
Free Advertising-=- www.localbounty.com
e: [EMAIL PROTECTED] icq: 31099745
- Original Message -
From: Jon Hall [EMAIL PROTECTED]
Newsgroups: cf-talk
the thing is the cookie is set up fine!
I can see it and read from while moving from page to page but it is deleted
and terminated when the user
closes the browser (although I specificed Expires=Never or Expires=14..)
help! please
-=michael
- Original Message -
From: Justin E. Greene
Simple, just delete the the first line and change the name of your variable
to 'h'.
This program only parses out the whole a href ... tag though. In order to
get just the actual url, I'd probably just stick all of the parsed href tags
in another array then parse for href=.
I am actually going
For anyone else that is interested here is the final code.
This program will parse out url's out of any file.
Still think there is a better way to do this though...
jon
cffile action=READ file=c:\www\test\html.htm variable=h
cfset arrString = ArrayNew(1)
cfset rs =
At 7:07 PM -0400 6/2/01, Jon Hall wrote:
For anyone else that is interested here is the final code.
This program will parse out url's out of any file.
Still think there is a better way to do this though...
Yeah, there is... you can do it with 2 ReReplaceNoCase commands:
cfset x =
this is
Jon et all,
you could also use javaScript and then send the set of links with
their labels via wddx and form to a .cfm page.
JS wddx serializer/deserializer are available at www.wddx.org
/ www.openwddx.org
Might this be an alternative? I used it to gather all the links
(765) from my static
25 matches
Mail list logo