I'll tackle one of these - StructGet()
Think of StructGet as a mega cfparam tag. You can do this:
CFSET StructGet("Request.Foo.Lower.RealLow.Blah")
and it will create the structure. If you did this with cfparam, it would
actually create a key called foo.lower.reallow.blah. StructGet actually
I had no problems using the URL. The only difference, and this shouldn't
matter, is that I used a proxy server.
===
Raymond Camden, Principal Spectra Compliance Engineer for Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
Here's a follow up question. Imagine a situation where you pass a list of
IDs to a query. You know that the query will only return, at most, the same
# of rows as IDs. Taking the same kind of query, where the amount of bytes
returned per row divided into the buffers size would tell us to use 100
Don't forget you can treat Forms like structs. This is a bit cleaner (well,
IMHO):
Form[test]
===
Raymond Camden, Principal Spectra Compliance Engineer for Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the
IE is based off of Mozilla? Did I wake up on another planet today? As far as
I know, thats _defintely_ not the case.
(Although I prefer IE over Netscape as you do.)
===
Raymond Camden, Principal Spectra Compliance Engineer for
Ditto the Media3 recommendation. They host Death Clock (3.6 million hits
last month) as well as two other clients of mine. I had issues with them
a -long- time ago, but for a very long time now they have been running
smooth and w/o any problems, at least as far as I can tell.
Let me add to this that I do a lot of my work solo and I still think version
control systems are a must.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team
You can't call any tags (CF_Foo, CFDIRECTORY, CFETC) from CFSCRIPT.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL PROTECTED]
If I had to guess...
StructFindKey is the same as StructKeyExists, but maybe it returns the value
automatically.
StructFindValue() perhaps returns the key that matches a value.
StructFindKey(), StructFindValue()
I'm at a complete loss for these. Anyone got any ideas?
It would be better to use CFEXECUTE to call the Perl script. This is
assuming you have CF 4.5+.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
This is a known issue. I _believe_ Rich Ragan issued a patch for this in the
Developer's Exchange (essentially it 'scrubs' the input).
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified
Check the CGI.USER_AGENT variable. Of course, it's about as clear as mud,
but you can parse the string to determine if the browser is NS or IE.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire
I remember writing a string parser for this a while back, don't some MS
browsers spell out the whole name? I want to say maybe some Mac versions?
Oh, and it's CGI.HTTP_USER_AGENT. I forgot the HTTP.
===
Raymond Camden, Cold
Heh, while this is certainly true, I just thought I'd mention that
DeathClock.com (approx 2-2.5 million hits per month) runs with Access,
mainly because I'm too cheap to upgrade to SQL Server. Of course, I cache
the heck out of my queries.
Have you upsized your policy database? Search the ALLR knowledge base for
advanced security and you will see numerous articles about this issue. By
default, CF uses an Access db to store policy information. This db doesn't
work too well in the real world and ALLR recommends that people upsize
I believe the best solution is to do the random pick in SQL, but, as a side
note, this code:
cfset RandNum = #RandRange(1,getrecords.RecordCount)#
CFLOOP QUERY="getrecords"
CFIF CurrentRow EQ #RandNum#
CFOUTPUT
Random Record No =
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 29, 2000 5:04 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: CFLOCK datasource var?
I'm unfamiliar with the request scope and can't seem to find
it in any of my docs. Where
I wouldn't bother with a beginners guide if you Know VB.
Also , check out ASPtoday.com and 4guysfromrolla.com
Of course ASP+ is a different thing altogether..
CF_CoverMyButtWhile I'll always prefer CF/CF_Cover.., ASP+ is pretty
dang sexy. I've spent some time with it and I'm pretty
Two ways, three ways actually:
CFEXECUTE - Under CF 4.5
CFHTTP (set up the perl script as a CGI)
CF_Perl, a custom tag I wrote, that allows you to embed the code directly in
the file (but it uses CFEXECUTE as well)
===
Raymond
Check this out:
http://www.allaire.com/handlers/index.cfm?ID=281Method=FullPageCall=/suppo
rt/index.cfmTitle=Team%20AllaireCache=False
P.S. I was never a member of MJ12, but I did drive the ambulance back in
Roswell. ;)
===
When I hear a story like this, I have to wonder... have you talked to a
human @ Interland who can explain why such a simple thing hasn't been done
yet? Have you threatened to stop payment? I can't imagine waiting more then
24 hours for something like this to get fixed.
Same here. Media3 hosts DeathClock.com (approx 2.2-2.5 million hits per
month) and has served me well for around 2 years now. They aren't perfect,
and I've had problems in the past, but it seems like they have been near
perfect for many, many months now.
Ah geeze, didn't even remember that option existed. This is what happens to
your memory/coding skills when you have a baby. ;) Alright, I'll pass this
on to my coworker. Thanks.
===
Raymond Camden, Cold Fusion Jedi Master for
I'm trying to help a coworker over the phone so I don't have access to the
files in question, but her problem seems to be this. We have a userdirectory
set up in SQL Server. The ODBC control panel can correctly connect to it
with no problems. We even setup the DSN in ColdFusion Admin and had no
As far as I know CFHTTP will wait for the remote page to finish, unless you
specify TIMEOUT.
Tell me, is this Perl page on the same server? If so, you could simply use
CFEXECUTE and call the Perl script directly. That is if your using CF 4.5.
It's OK, and in fact, it's better to use one CFLOCK wrap. As for a good
timeout, I always use 30, but have not heard of a 'good' figure. It probably
depends on your estimated load.
===
Raymond Camden, Cold Fusion Jedi Master for
Spectra works on CF 4.01, but not CF 4.0. And yes, Enterprise is needed.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL
Correct me if I'm wrong, but isn't TIMEOUT=X required? I believe the docs
forget to mention it, but that could be your problem.
mm... nope, still not working for me. In addition to
your example, I've also tried running it from a cmd.exe
shell - i.e.:
cfexecute
Check to make sure the advanced security services are running. Theres two of
them, SiteMinder Authorization and SiteMinder Authentication.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire
I believe it comes down to this, short and sweet:
If you type session, application, or server, you use CFLOCK.
Period. End of Story. So sayeth Ray, etc etc.
As for your CFIF, yes, you would have:
CFLOCK SCOPE="Session" TYPE="ReadOnly" TIMEOUT=30
CFIF
Incorrect. You should use CFLOCK when reading as well.
Basically, if you TYPE session, server, or application, you should have a
CFLOCK around it.
This includes:
CFPARAM NAME="Session.Foo" DEFAULT=1
And,
CFOUTPUT QUERY="Session.StoredQuery"
..
/CFOUTPUT
CFEXECUTE doesn't get output sent to stdERROR (or however it's referred to).
You have to redirect error output to stdOut (or stdOutput), sorry, my Perl
is a bit rusty, but this applies to everything (involving cfexecute I mean).
I believe they are referring to the fact that if you use CFHTTP to hit a
site, and the site doesn't return the correct headers, CFHTTP.FileContent
will equal: "Something something was not ASCII text and could not be
rendered."
If you have ColdFusion 4.01, you would not see this.
I'm not 100%
I don't pretend to speak for Allaire, but my impression is that any serious
web developer should upgrade from CF Express to 'the real deal' instead of
using my 'hack.' I wrote a simular article for CFDJ concerning using custom
tags for Express. I consider both articles to be more of a "here's an
Oh hey, my company was just bought out by British Telecom - I wonder if that
means that I can knock off earlier. ;)
Ok, I'll stop now before being admonished to move to
cf-soapbox/cf-community. :)
===
Raymond Camden, Cold
You should _never_ use this code. It may work to log you out, but if your
using CF 4.5, the server will throw an error next time you try to set a
session var. Before 4.5, StructClear would not touch the 'special' Session
vars that CF uses to identify you. With CF 4.5 and higher, StructClear will
But you _can_ simply ignore the execution mode. A ex-coworker of mine used
to do that. His custom tags would allow you to pass in Mode="end", and if
attributes.mode was detected, he would use that value instead of
ThisTag.ExecutionMode. Of course, I'm not exactly sure what the original
emailer
I'm seeing a -very- wierd IIS error when using PLPs in Spectra. The error is
random, but it happens often. Also, I've _never_ seen IIS give this error
before. I'm assuming it's the CFLOCATIONs that PLPs use, but I can't imagine
why I'd get this error:
While trying to retrieve the URL:
What bug? Your saying you can't do:
CFMODULE TEMPLATE="buttons.cfm" and that you have to use:
CFMODULE TEMPLATE="buttons." ?? I've never seen that before. Are you sure
or am I misreading you.
===
Raymond Camden, Cold Fusion
The number is above the maxint for CF 4.5. Before CF 4.5, maxint wasn't
enforced. I don't have the # for maxint in front of me right now, but I'm
pretty darn sure it's in the release notes
here we go:
In ColdFusion 4.5 as opposed to CF 4.0.1, more extensive range-checking is
performed to
FYI, per my last email, I plan on actually writing an article about this
method sometime soon. Sorry to just 'show the code' and run.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified
I thought some of you mind find this interesting:
http://www.allaire.com/handlers/index.cfm?ID=15376Method=FullTitle=Allaire
%20Certified%20Professional%20Program%20PreviewCache=False
It's information about the Allaire Certified Professional Program. Enjoy.
Hey Joel, if your talking about my CF_Perl, be aware that the tag is more of
an example of CFEXECUTE. I'm not sure it's the best solution for a 'real'
web site.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra
CFMODULE runs a template just as if it were a custom tag, so if that
template does:
CFSET Caller.Sum = ...
then your calling template will have access to a variable called Sum.
I'm assuming you know about custom tags and such so I won't go into too much
detail here.
A book is coming out in May, "Allaire Spectra E-Business Construction Kit"
http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?isbn=0789723654
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Check out the CFEXECUTE tag, it will handle this for you.
===
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL PROTECTED]
ICQ UIN :
Does anyone know the official name of the CF package Compaq provides? It's a
big cluster preinstalled with CF, basically a buy it, plug it in, and turn
it on type solution. I believe it's the same thing they showed off at the
conference. I need both a name and a URL if possible.
I would assume that any tag that takes content and repurposes for another
web site w/o permission of the original web site would be illegal. Of
course, this reminds of the conversation about discovering someone stealing
your graphics by using IMG SRC="http://www.yourserver.com" and replacing
the
Of course, bare in mind that whoever provides the reports to Yahoo may have
chosen to give them the information for free, but it may not mean they want
to share it with the world.
===
Raymond Camden, Cold Fusion Jedi Master for
n this
case as well?
-Original Message-----
From: Raymond K. Camden [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: structclear
It works, but too well. It also clears out session vars that
ColdFusion uses
to track you. You should either use St
It seems like you were lied to, or a mistake was made. I prefer to think the
presenter made a mistake - it happens. Of course, by definition,
CFA_HTMLEditor does _work_ in Netscape, ie, it doesn't throw an error, but
you don't get the fancy DHTML stuff.
You are correct, of course, that someone
I've never timed it, so I can't say for sure. I'm sure there is SOME delay
since your adding another tag. Something else to consider is copying
application vars to the request scope, but this would entail a copy for each
hit, and would only be useful for app vars that you only read.
52 matches
Mail list logo