to check their status via a webservice or the like and, as it
does, kicks open a browser window pointing to the client site.
Of course, I have no idea what kind of content you plan on including
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message
Does it actually have to be random per se? If you have a site with moderate
traffic, I might just iterate a counter in the application scope so that it
/appears/ random to a user, but keeps the overhead minimal.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original
Looks like somehow you've accidentally set variables.start to 51Please
instead of 51 -- you know that CF will assign values even if you don't ask
nicely, right? :-P
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: paul smith [mailto:[EMAIL
.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, December 18, 2002 10:41 PM
: To: CF-Talk
: Subject: How can I modify this query so mySQL will be happy?
:
:
: This worked with MS Access
Not in CF5.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Owens, Howard [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 16, 2002 7:22 PM
: To: CF-Talk
: Subject: query inside cfscript
:
:
: Is it possible to run a database query
. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http
We're still working in CF5.
Thanks for the UDF -- I'd not figured out how to write them in taggish
yet, although I had the vague idea it could be done.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Raymond Camden [mailto:[EMAIL PROTECTED
Except that doesn't help when I'm writing a UDF. Maybe I should have
mentioned that. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Robertson-Ravo, Neil (RX)
: [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, December 17, 2002 11:27 AM
What DB?
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Les Mizzell [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 16, 2002 2:18 PM
: To: CF-Talk
: Subject: Slightly OT: SQL VIEW gets out of sync??
:
:
: Anybody ever seen this before
workaround.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Les Mizzell [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 16, 2002 2:52 PM
: To: CF-Talk
: Subject: RE: Slightly OT: SQL VIEW gets out of sync??
:
:
: : What DB?
:
: MS SQL Server 7
, if
you're feeling industrious, you might try something more like listsort()'ing
the lists, converting them to arrays, and matching each item from the first
array against the second using a binary search.
HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message
Unless I'm mistaken, you should either use cfcontent or set the doctype --
not both.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Paolo Cesana [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 16, 2002 4:41 PM
: To: CF-Talk
: Subject
('select1');
or something like that.
If the form comes back with the hidden element set to select1, you can
create the second select based on the first.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Les Mizzell [mailto:[EMAIL PROTECTED]]
: Sent
all the values in the DB (the ones that the user doesn't
change should be the same) or running another query (or storing the results
of the first one) to check the values to see if they've changed.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message
I'd just be sure not to confuse users where two selections in a given selet
box are the same -- the one from the DB and then the matching static choice.
Glad to be of service, though.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Les
.
HTH (a little, anyway)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Owens, Howard [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, December 12, 2002 8:59 PM
: To: CF-Talk
: Subject: (SQL) Query returning too many rows
:
:
: I'm stuck
to request the cookie -- given
common current transmission speeds, avoiding additional roundtrips is a good
thing.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Stacy Young [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 13, 2002 10:49
Did you remember to set your form to multipart? I always forget that
bit
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Angel Stewart [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 13, 2002 11:31 AM
: To: CF-Talk
: Subject
IIRC, yes. Just pound them in the subject string.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 09, 2002 10:59 AM
: To: CF-Talk
: Subject: Using cfoutput in Emails
:
:
: I
, Post to, or Join the list here for all your RegEx needs. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Joshua Miller [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 06, 2002 12:43 PM
: To: CF-Talk
: Subject: RE: Regular Expression
and learned from the discussion...
I've worked on something similar recently. I like the Keith's idea of
multiple application names. I'm sure I've gained something out of this, if
only by forcing myself to think about scopes in a more expressable way. :-)
--Ben Doom
Programmer General
= RentalCompanies BusinessID
cfapplication name=#variables.appname#
cfoutput#variables.appname#/cfoutput
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, December 03, 2002 1:50 PM
Try using htmleditformat(). I'm assuming here that what you want to do is
display it.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 02, 2002 12:23 PM
: To: CF-Talk
the same machine.
Finally, I'd look at how you're caching in your browser, as that might be
why the wrong graphics etc. are showing up.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
: Sent: Monday
a previous session. I say this because if the application is
actually called (that is, any .cfm file is accessed) then the
application.cfm file is run. There might be some problems with latency, but
I kinda doubt that. So, make sure that your browser isn't caching the page.
--Ben Doom
this one. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method
(ignored)
between b and c.
In short, if you want to use a double char as a list delimiter, you're going
to have to do it manually (or write your own UDFs to do it). CF doesn't
handle it natively.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message
from your DB where mycolname=1 and set
myvar=1 if the count is positive.
Of course, you may have simply used that as an example. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Steven Durette [mailto:[EMAIL PROTECTED]]
: Sent: Thursday
IIRC, you have to #evaluate(newstext)# *note there are no quotes* to get CF
to process the contents -- otherwise, CF assumes it's just text.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Josen Ruiseco [mailto:[EMAIL PROTECTED]]
: Sent
$.02
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Janine Jakim [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, November 21, 2002 3:59 PM
: To: CF-Talk
: Subject: OT: Database design question
:
:
: hmmm- I am very into keepting my database
, while there is often a one-to-many relationship from
input to output for encryption. I always thought that was neat for some
reason.
Anyway, now that I've finished my lecture on one of my pet subjects, we can
all return to our regularly scheduled CF.
--Ben Doom
Programmer General
refind((['(])Andy\1, string)
will find the tree examples you gave.
If you want an explanation or more help, I suggest you turn to:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21
Read, Post to, or Join the list here for all your RegEx needs. :-)
--Ben Doom
um. They don't. I goofed. This would work for anything where the opening
or closing are the same.
Hmm. Offhand, I think you might have to use a separate check for anything
like (), {}, , and anything else where the opener and closer must be
paired but are different.
--Ben Doom
Use javascript instead -- window.href comes to mind.
That should break out of the frameset, iirc.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Luce, Greg [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, November 19, 2002 3:44 PM
: To: CF-Talk
The target=_top attribute in your anchor tag should make the link open up
in the topmost frame, iframe, etc.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, November 19, 2002 5
Is it safe to assume that your form name is 'profile2' and you have a input
type=hidden named 'done'?
Also, what browsers are you testing this in, and is it failing in all of
them, or just one (I've noticed differences in how Mozilla and IE6 treat
names vs. ids).
--Ben Doom
Programmer
Hmm. Is it throwing an error, or just not working?
You might need to refer to the form by
document.forms[0].
rather than
document.formname.
I seem to recall having some trouble out of IE with DOM names. :-(
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original
to have the
same result -- the thing bombs instead of redirecting properly.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Robertson-Ravo, Neil (REC)
: [mailto:Neil.Robertson-Ravo;csd.reedexpo.com]
: Sent: Wednesday, November 13, 2002 9:46
/me shrugs. As the site required JavaScript to work anyway, a simple
window.location= worked just fine.
I'll try that next time, though. Thanx.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Critz [mailto:critz;out.houseoffusion.org
it) a large flyout window opens with the original (unsized) photo.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Matthew Walker [mailto:Matthew;cabbagetree.co.nz]
: Sent: Wednesday, November 13, 2002 4:09 PM
: To: CF-Talk
: Subject: RE: Dynamically
that looks like the following:
cfoutput query=AccessQuery
#replace(replace(memofield, chr(13), ''), chr(10), '#chr(10)#br')#
/cfoutput
Does that make more sense?
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Russ [mailto:russ
Yup. That'll work, too. Glad to be of some help. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Russ [mailto:russ;unrealisticexpectations.com]
: Sent: Monday, November 11, 2002 11:56 PM
: To: CF-Talk
: Subject: RE: Retrieving CRs
. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Tony Weeg [mailto:tony;navtrak.net]
: Sent: Tuesday, November 12, 2002 4:29 PM
: To: CF-Talk
: Subject: RE: cfscript performance (was cfscript book)
:
:
: it certainly helpsthanks for the info
on. There are
a half-dozen ways to do similar things, I'm sure. I guess it's all in the
way you think and what makes the most sense to you.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Tony Weeg [mailto:tony;navtrak.net]
: Sent: Tuesday, November 12
.
In the long run, I think we can put this in the personal preference
file -- at least until MM breaks the standard on how they interpret integers
in a boolean evaluation.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Jeffry Houser [mailto:jeff
(I'd just write a
UDF) to do it. But I may be wrong about that.
HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: jon hall [mailto:jonhall;ozline.net]
: Sent: Monday, November 11, 2002 3:15 PM
: To: CF-Talk
: Subject: fast compare
I've done something similar from forms.
Basically, I use one replace to remove all the chr(13)'s, then replace all
chr(10)'s with br#chr(10)#.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Russ [mailto:russ;unrealisticexpectations.com
cfparam
name=notary default=
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Clark, Aimee [mailto:aclark;stinsonmoheck.com]
: Sent: Friday, November 08, 2002 12:25 PM
: To: CF-Talk
: Subject: RE: Using Cfloops on the same page
:
:
: So, I
I don't see why not, given the code you originally published. Just put the
cfparam above the first reference to the variable (make sure you cfparam
form.notary). The empty string is interpreted as an empty list, so the loop
will never run if there are no checked checkboxes.
--Ben Doom
akamai is a content delivery company. At a guess, I'd say that they use
https to validate that the referrer is in fact the right site, then they
switch to http for the content delivery. Just a guess, though.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original
is appreciated.
--Ben Doom
Programmer General Lackey
Moonbow Software
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method
Unless you are cfparaming form.notary, if none of the checkboxes are
checked, it won't be resolved because it won't be passed.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Clark, Aimee [mailto:aclark;stinsonmoheck.com]
: Sent: Thursday
I think the following will work, but is untested:
form name=skipform action=something.cfm
input type=text name=first
input type=text name=second onFocus=document.skipform.third.focus();
input type=text name=third
/form
--Ben Doom
Programmer General Lackey
Moonbow Software
Erk -- there wasn't supposed to be an 're' on that -- just a find(). *sigh*
This is what I get for posting after my bedtime.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: S. Isaac Dealey [mailto:info;turnkey.to]
: Sent: Sunday, November
cfhttp
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Ed Gordon [mailto:NetDr;callptc.com]
: Sent: Monday, November 04, 2002 10:49 AM
: To: CF-Talk
: Subject: what tag captures data from a web page?
:
:
: If you would, please direct me
refind(key, '/archivedocs/');
The slashes prevent it from returning true if it finds 'archivedocsearch'
and similar mismatches.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Parker, Kevin [mailto:KParker;workcover.com]
: Sent: Sunday
It all becomes clear. Thanks a lot.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Matt Robertson [mailto:matt;mysecretbase.com]
: Sent: Thursday, October 31, 2002 11:36 PM
: To: CF-Talk
: Subject: RE: client vs. session
:
:
: Session vars
IIRC, you just set a frame in your frameset to size 0.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Kris Pilles [mailto:kpilles;wsboces.org]
: Sent: Friday, November 01, 2002 2:28 PM
: To: CF-Talk
: Subject: Hidden frame in frameset
0 as the size, the frame dissapears completely.
Just for fun, I wrote this in a self-referencing CF page, but I can't think
of a single good use for that. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: S. Isaac Dealey [mailto:info
It's seeing them as strings. It's giving you an alphabetical greater
than -- 2 is greater than 1, so 2 is greater than 16.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Tim Do [mailto:TDo;lahd.lacity.org]
: Sent: Thursday, October 31
Failing all else (and better advice from others) you can always shut down
and restart the server.
Not a great solution, but I bet it'd work!
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: jon hall [mailto:jonhall;ozline.net]
: Sent
I read up a bit on client and session scopes, and am a bit confused.
Can someone explain to me the difference between them? All I can really
find is that I have a bit more control over where, for example, session
variables are stored.
Feeling unscoped
--Ben Doom
Programmer General
, so
you want to list them from least specific to most specific.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Jeff Beer [mailto:jbeer;dbactive.com]
: Sent: Wednesday, October 30, 2002 10:34 AM
: To: CF-Talk
: Subject: RE: CFIF and CFSWITCH
It's like the latch on your gate. It'll keep out things without opposable
thumbs. :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: John Gedeon [mailto:jgedeon;qualcomm.com]
: Sent: Wednesday, October 30, 2002 11:42 AM
: To: CF-Talk
? Yeah, I'd say it would. Will it keep out script kiddies,
hackers, or me in a bad mood? I wouldn't count on it.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Robertson-Ravo, Neil (REC)
: [mailto:Neil.Robertson-Ravo;csd.reedexpo.com
I think you've nested some cfoutput tags, Isaac me boyo. That's not the
error message I recall seeing exactly, but is very similar. I know that
when I did it, it asked for a GROUP attribute, just like your error message.
--Ben Doom
Programmer General Lackey
Moonbow Software
from now to Christmas, you'd call
something like
cfoutput
There are #days2xmas(now())# days until Christmas.
/cfoutput
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Tim Laureska [mailto:hometeam;goeaston.net]
: Sent: Wednesday, October 30
:
I agree with the descriptine file names, etc., but what's wrong with naming
it *.udf?
I've not run into any problems so far, but is there something out there
lurking, waiting to get me?
--Ben Doom
Programmer General Lackey
Moonbow Software
Ah. I see what you mean. Coldfusion seems to parse it fine if it's an
include, but I found I could download the file via my browser. It never
occurred to me that the first wouldn't preclude the second.
Thanks!
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original
Still an ugly solution:
Set the meta refresh to 7 minutes and leave the browser open somewhere.
Ugh. Maybe you should ask the sysadmin after sending him flowers :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Rob Rohan [mailto:rob
Offhand, I'd try adding 'language=JavaScript' to the script tag.
I don't know about Netscape, but in Mozilla you can open up the Javascript
console and it will generally tell you pretty much why something is failing
(if not how to fix it).
--Ben Doom
Programmer General Lackey
Do a cfhttp and look for a 404 error.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Chris Edwards [mailto:chris.edwards;obinet.com]
: Sent: Monday, October 28, 2002 4:55 PM
: To: CF-Talk
: Subject: remote file exists help
I've successfully passed moderately sized HTML pages (about a K or so)
without a problem in CF5.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Brook Davies [mailto:brook;maracasmedia.com]
: Sent: Monday, October 28, 2002 5:26 PM
: To: CF
Generally, you just use a file input box on the form and cffile on the
action page. The one allows the user to upload the file, and the other
allows you to control where it goes, what it's named, etc. once it's there.
--Ben Doom
Programmer General Lackey
Moonbow Software
pre/pre around the output.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Brian Groot [mailto:BJG;plasticsurgery.org]
: Sent: Thursday, October 24, 2002 10:44 PM
: To: CF-Talk
: Subject: Formatting text from textarea
:
:
: I have some
the thread to CF-RegEx. Thanks.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Chris Alvarado [mailto:chris.alvarado;4guys.com]
: Sent: Tuesday, October 22, 2002 11:43 AM
: To: CF-Talk
: Subject: Regex Help
:
:
: Hello all,
:
: A bit unfamiliar
and pulling out numbers over the last
month or so) at:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21
Or, if you don't find what you need (or it turns out I just imagined it)
post there and I'm sure you'll get all the help you need.
--Ben Doom
Programmer General Lackey
, we've had discussions on the differences
between CF5 and MX REs, workarounds for limitations to the CF5 RE engine, a
posting on what looks like a very nice UDF for stripping HTMl/CFML/XML/*ML
tags (or not stripping them) via REs, and several questions asked and
answered.
/cfx_evangelism
--Ben
at the very
beginning of the string. If you are using backreferences, be careful, as
this uses nested repeated groupings.
HTH.
As always, the plug for CF-RegEx:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21
Join, post, and read the archives here.
--Ben Doom
Programmer
not be out of place on the CF-RegEx list. :-)
Feel free to join or just post/read via the archives!
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Everett, Al [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, October 15, 2002 11:21 AM
: To: CF-Talk
How about something like the following:
string2 = replace(string, '##', '', 'all');
count = len(string) - len(string2);
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Everett, Al [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, October 15
wanted.
As always, the plug for the CF-RegEx list:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21
:-)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: James Johnson [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, October
to the essay-style questions.
About 45 minutes, all told.
Can you be more specific about what you are looking for?
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Candace Cottrell [mailto:[EMAIL PROTECTED]]
: Sent: Monday, October 14, 2002 1:56 PM
IIRC, it's saying that midnight tomorrow is less than 24 hours from now,
just as midnight this morning was less than 24 hrs from now.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Chris Edwards [mailto:[EMAIL PROTECTED]]
: Sent: Friday
I think what you want is:
where (this_field not like '#this_item#%') and (this_field like
'%#this_item#%')
Note that there's a % at each end of this_item in the second clause.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: JS [mailto
?method=threadsforumid=21
--Ben Doom
Programmer General Lackey
Moonbow Software
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, October 09, 2002 1:10 PM
: To: CF-Talk
: Subject: pulling 3 numerics from an alphanumeric string
:
:
: I need to pull the left most 3
Whoop. Misread that. You want the first three -- not the first /of/ three.
Hmm.
digits = rereplace(string, '[^0-9]*([0-9])[^0-9]*([0-9])[^0-9]*([0-9]).*',
'\1\2\3')
That should do it.
See the Cf-RegEx list plug below :-)
--Ben Doom
Programmer General Lackey
Moonbow Software
on FM server) as compared to a
native SQL server. And, of course, FM is only partially SQL compliant.
I may be off on the particulars, but that's the gist of what I heard. HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Moneymaker, Jon S
You are going to have to be more specific. I mean, you could loop through
mary had a little lamb, it's fleece was white as snow
using 'a' as a delimiter:
m
ry h
d
little l
mb, it's fleece w
s white
s snow
What is it you have, and what are you looking for?
--Ben Doom
Programmer
I've used this:
replace(string, #chr(10)#, br#chr(10)#, all)
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Luis Lebron [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, October 02, 2002 5:53 PM
: To: CF-Talk
: Subject: Converting new lines
: Can anyone see what's wrong with this:
:
: cfscript
: If (NOT IsDefined(Form.business_types) AND
: (IsDefined(Form.residents)) {
: session.ResidentsOnly = yes;
: }
On the next line, you're closing the if clause and then
in a variable somewhere rather than rely on CFGRAPH to round/truncate
it properly. The other alternative (assuming I'm right about the cause) is
to truncate the value when you display it.
HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Rebecca
based on
suggestions from the group. If you're interested in learning how to use
Regex to do some of your heavy lifting, come join us.
--Ben Doom
Programmer General Lackey
Moonbow Software
__
This list and all House
cfscript
documentwrite(script language=javascriptalert('message!');/script);
/cfscript
That should work, shouldn't it?
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Kris Pilles [mailto:[EMAIL PROTECTED]]
: Sent: Thursday
What happens if I have multiple application.cfm files with one application
name?
I've looked around a bit, and all I see is don't do that. :-)
I'm curious as to whether I can make one application inherit information
from another.
--Ben Doom
Programmer General Lackey
Moonbow
I'm assuming this is a link somewhere in some content you're cfhttp-ing, or
you'd just use url.pCode.
Anyhow,
pcode = rereplacenocase(url, .*pcode=([^]+).*, \1)
Happy regexing.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Cantrell
: Ben, yours worked - thanks dewd.
n0 5w3a7. :-)
--Ben l33t r3g3x3r Doom
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
: REreplace(str, [.]*pCode=([^]*)[.]*, \1);
This won't work. The brackets around the dot make it a literal character,
so it won't match what's leading or following the pcode bit. Essentially,
all this will do is strip pcode= out of the url.
--Ben Doom
Programmer General Lackey
Are you just worried about the first tag pair, or all of them? Or is there
only one tag pair on the page?
If you are looking at the contents of multiple tag pairs, how should they be
returned?
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message
901 - 1000 of 1035 matches
Mail list logo