I don't know how this *ever* worked. One cannot have both content *and* a
redirect in a response. cflocation sets the HTTP status header to do a
302 redirect, but for that to work, one must've have yet sent any content
down to the browser. Because the first thing that gets sent in a response
If you do a collection/item loop over the struct, can you fetch the
value? Is there any chance the key has got some leading or trailing
space in it, which would not be completely obvious in a cfdump?
Can you post your actual code in which you're seeing this? There
might be a typo you're not
On Nov 24, 11:58 pm, Steve Onnis [EMAIL PROTECTED] wrote:
REReplaceNoCase(string, a([^(href)]*) (href=)([^]*)()([^]*)/a,
\3, ALL);
Hi Steve.
I'm not sure this bit is right:
[^(href)]
That matches any single character that is not (, h, r, e, f
or ). square brackets mean match a single
CF's regexes are greedy by default, so a * will match the longest
string possible. If you want it to match the smallest string
possible, you need to modify it with a ?.
It seems to me like you've perhaps not read the regex stuff in
livedocs? Or at least perhaps you could do with giving it a
Hi Ryan
What browser are you seeing this in?
I've just tested this in IE7, FF2, Opera9, and all work as one would
expected, with redirected (dest.cfm in this case) URL in the address
bar. Test code:
{code}
source.cfm
cfheader statuscode=301 statustext=Moved Permanently
cfheader name=location
Have you done all the usual make CF notice small changes to the
source code hoop-jumping like clear out any cached classes in the
cfclasses dir, restarted the CF service, etc?
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I think that's a bug in CF - super.xxx functions don't accept
argumentCollection.
Which version of CF, Blair?
Seems to work OK for me (7,0,2,142559, Enterprise, Windows XP).
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I doubt argumentScollection ever worked on your dev box. Well not in
the way you'd want it to, anyhow.
(Everyone has done this @ some point).
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
Hi
I'm having some problems accessing the Adobe CF forums (http://
www.adobe.com/cfusion/webforums/forum/index.cfm) @ present:
1) nothing's coming through on the news feed;
2) on the web interface, there are no links to add new posts or
respond to existing posts. I have verified this on two
This technique of yours, Mark, is a bit grim in my view (and it's just
that: my opinion only).
It's only relevant if one doesn't know the key name already, as one
CAN do this, quite happily:
getStruct().key
So this means it's only useful in a situation in which we're using a
runtime value for
If you try and output struct[key] and the key doesn't exists that it will
error
Sure. As with structFind().
Hence my question.
I think maybe you have confused the meaning of your message :)
Maybe. Or maybe... not.
--
Adam
--~--~-~--~~~---~--~~
You
I'm inside a function and I want to cfdump the functions local scope.
cfdump var=#getPageContext().getActiveFunctionLocalScope()#
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post
isDefined() will sometimes return false positives when dealing with
SESSION-scoped variables. I do not recall which version of CF this
was on, but would have been no earlier than 6.1. Ihave not re-
verified this on subsequent versions. At that point in time I
switched to using
But I will say that if this is inside a cffunction and its being validated
as arguments. You can skip the cfqueryparam anyway.
Well that's only half (maybe as much as half) true.
cfqueryparam values are as much about query compilation and improved
DB server erformance and memory management
So back to the question, can cf tags be put in a string to be used in
another tag later?
Short answer: no.
Mid-length answer:
You've got to think about the CF live cycle. What you see as source
code isn't actually what's finally executed. Before it's executed,
CFML is compiled into Java
Cheers all.
Just some notes:
1) Andrew, I think you have misread what I asked. Yes, I pointed you
@ some constructors. What you were supposed to be noting was that
those constructors require arguments of type Field.Index, Field.Store,
Field.TermVector, which are inner classes. Make sense now?
[sorry didn't see your follow-up Grant, was busy writing mine]
Cheers.
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To
Way hey! Sorted it.
Once I RTFM'ed, I saw where I was going wrong:
cfset oDoc.add(oField.init(id, 1, oStoreNo, oIndexNo))
And from the Java docs for field:
blockquote
Throws:
IllegalArgumentException - in any of the following situations:
* the field is neither stored nor indexed
Most database (including SQLServer) presume that the database structure does
not change between re-uses of parameterized queries.
What a strange presumption for them to make! Sure, table-schema
updates are rare compared to table-queries, but it's not like the DB
doesn't *know* when the table
Databases weren't designed to dynamically updated at runtime, and never have
been - so you will end up hitting brick walls there.
Can you explain to me what you mean by runtime, in the context of a
DB engine? In such a way that distinguishes between me using CF as a
DB client or using Query
reFindNoCase() only returns the first match; it does not return an
array of all matches.
When you pass the returnsubexpressions=true argument, it does what it
says on the box: it returns an array of any subexpressions *of the
regex*.
http://livedocs.adobe.com/coldfusion/7/htmldocs/0607.htm
Semantics aside, the reason I stopped using isDefined() is because it
was flaky, and returned false positives sometimes.
One could have code like this:
cfif isDefined(session.foo)
cfoutput#session.foo#/cfoutput
/cfif
And it *could* error, saying session.foo doesn't exist. Note, this was
Presume you mean:
isdefined(session.crap) (note: quotes)?
I tried this code:
cfapplication name=testIsDefined sessionmanagement=true
cfset session.session.session.crap = 1
cfoutput
structKeyExists(session, crap): #structKeyExists(session, crap)#br
/
isDefined(session.crap):
G'day Mat
I hate to be a fly in the ointment, but you're quite wrong with most of
what you say about isDefined() in your preceding post.
isdefined(session.crap) will return true
It will error. If your double-quote key is missing and you actually
mean isdefined(session.crap) (which is a
G'day
My testing recently suggested that terrible the performance hit one
used to get with evaluate() has all but gone now. So that's good.
The only gripe I have with it is that people tend to over-use it: it's
seldom the correct answer to a question about dynamic variables or any
other
A byte is a standard length - almost always eight bits - which can
store 256 possible values. I suspect that's the part you already knew
;-)
A character is often one byte in size (ASCII, for example... well:
strictly speaking that's only seven bits, but you get my drift); but
depending on the
You're just confused, although this is not helped by me typing faster
than I was thinking, in my descriptions of the bit-usage of UTF-8, etc
(sorry, I'm @ work so was only paying 50% attention to what I was
typing). Better not to rely on me in this case, but to read this lot:
There's two sides to this.
1) doing something like this:
cfset iMatch = sValue.indexOf('c')
That's leveraging the fact that a CF string is actually a Java string,
and using a standard Java string method upon it.
2) cfset qRecords1.populate(qRecords2)
That's leveraging the fact that a CF query
You can't use cfflush like that, but you CAN use cfflush
interval=#i# though.
This isn't appropriate for all situations, but is handy to know.
--
Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie
Anyone know the list functions ColdFusion knows in Query of Queries? I
can't find a definitive list anywhere.
Livedocs covers it:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/1266.htm
The section on Using aggregate functions is complete.
--
Adam
Sure. OK, there's no LIST of these are all the functions, but those
docs cover the entire gamut of SQL functionality (such as it is) that
is supported by QoQ.
Suggest you read the entire section.
There isn't much to it: QoQ's SQL support is rubbish.
There's a CFMX6 QoQ BNF here:
31 matches
Mail list logo