Re: Primary Key Justification

2004-11-09 Thread Ben Doom
Ask this person how they plan to remove duplicates, should they be accidentally created. For that matter, ask how they plan to detect duplicates. If that doesn't work, insist that you be referred to by your full name, date of birth, and social security number. Don't answer to anything else.

Re: Accessing structures

2004-11-04 Thread Ben Doom
Never mind -- missed the bit about not knowing the array name. --Ben Ben Doom wrote: > variable.structure["reference"][7] > > I think that's what you're looking for. > > James Smith wrote: > >>OK, Stupid question time... >> >>I have a s

Re: Accessing structures

2004-11-04 Thread Ben Doom
variable.structure["reference"][7] I think that's what you're looking for. James Smith wrote: > OK, Stupid question time... > > I have a structure in the form "Variable.Structure.Reference" that I need to > access, however "Reference" is an array (which I can loop with arraylen, no > problem the

Re: How to use Request scope?!

2004-11-03 Thread Ben Doom
ly update -- there are a number of security and performance fixes. --Ben Ian Sheridan wrote: > Oh it is passing the right info but maybe it's because I am doing this > on a 6.0 machine > > Ian > > On Wed, 03 Nov 2004 13:25:35 -0500, Ben Doom <[EMAIL PROTECTED]> wrote:

Re: How to use Request scope?!

2004-11-03 Thread Ben Doom
Except that I do exactly what you said didn't work all the time. I routinely create request or variable scoped vars in one include to be used in another. The includes are serial, not nested. So I don't know what your original problem was, but I'd be careful to check and make sure that the val

Re: How to use Request scope?!

2004-11-03 Thread Ben Doom
It sounds like it wasn't always being set in the first include. Regardless of what file a request variable is set in, it is available to all subsequent code. I may be off a bit with regard to CFCs, but that's how I understand it. --Ben Ian Sheridan wrote: > well that's the thing I am setting

Re: Session Management

2004-11-02 Thread Ben Doom
You could a) increase the session timeout b) use client scope note that if you use client scope, you can't store complex variables there (like queries or structures). --Ben Chad McCue wrote: > I am looking for a tag or script that will allow a user to continue their session > when it has expir

Re: Confusion of QuerySetCell

2004-10-22 Thread Ben Doom
You'll need to do 3 updates. The ideal way is to know the unique identifier of the row you're trying to set. You've got one of those, right? Right?!? Anyway, assuming that the table name is "Prices" and you've got a uid column "priceid", you'd post both prices and priceid from the form, and

Re: Confusion of QuerySetCell

2004-10-22 Thread Ben Doom
QuerySetCell() only changes the value of the query object in CF. That is, the data CF knows about is changed, but it's not actually changing anything in the DB. To change the DB, you'll have to run update queries. --Ben Les Mizzell wrote: > Let's say I'm trying to update the column "PRICE" in

Re: regex to remove link

2004-10-22 Thread Ben Doom
*blush* --Ben "No, you're thinking of Forta" Doom Ewok wrote: > I want a regex book by Ben Doom : ) (no offense Forta, believe me, I have a > library of your books) ~| Purchase from House of Fusion, a

Re: cf in a .js

2004-10-22 Thread Ben Doom
Heh. That's exactly what I meant. Looking back, I realize my phrasing was a bit off, though. :-) --Ben Rick Root wrote: > Much easier solution. > > Save the .js file with a .cfm extension. Browsers don't care. > > > > I do this all the time. >

Re: cf in a .js

2004-10-22 Thread Ben Doom
You could set the server to have CS parse .js files, or you could simply include a .cfm file as JavaScript source. IIRC, JavaScript doesn't care what the extension is, only what the contents are. HTH. --Ben Charlie Griefer wrote: > I've got some JavaScript that I want to put into an external

Re: regex to remove link

2004-10-22 Thread Ben Doom
> If you are on MX, you can tell the regex to use a non-greedy match for the .* > (Ninjas, is this syntax correct for MX - me being stuck in 5.0 land?) > > ]*>.*?", "", "ALL")> That's the right syntax. This, however, will remove *all* links, which is not, if I understood correctly, the goal. -

Re: regex to remove link

2004-10-22 Thread Ben Doom
This will remove all links, but leave the text inside. If you want to remove a specific link and its text, replace the pipe character with the text to be removed. If neither of these is what you're looking for, post a clarification and we'll go from there. HTH. --Ben Andrew Dixon wrote: > ]*

Re: RegEx help

2004-10-21 Thread Ben Doom
Oops! A slight mistake in there. reReplaceNoCase(content,".*#fieldName#:[[:space:]]+([^[:space:]]+)($|[[:space:]]+.*)","\1") Some notes: [[:space:]] represents spaces, tabs, various end-of-line characters (10 and 13 for sure), etc. Basically anything that's whitespace. In a character class (

Re: RegEx help

2004-10-21 Thread Ben Doom
uot;Bob: lastName:" as the value of > firstName. It's like it's going to the next space after the one right > after the value. Is there a tweak that needs to be made? > > > > > > Thanks for the help! > > John Burns > > -Original Message-

Re: RegEx help

2004-10-21 Thread Ben Doom
Jerry Johnson wrote: > Notes: > I assumed matching the fieldname's case was a good thing (to > reduce false positives) I would have assumed the same. That was my first thought. > I assumed the characters before and after the data were, in fact, > spaces (chr(32)). If not, then maybe the [:[spa

Re: RegEx help

2004-10-21 Thread Ben Doom
Are you sure you've got the fieldname correct? Capitilization counts. If you want to do a case-insensitive search, use rereplacenocase() instead. --Ben Burns, John D wrote: > Hmmm, I think I see what you're trying to do there, but it doesn't work. > The files aren't very large at all and I am u

Re: Strange variable showing up...

2004-10-19 Thread Ben Doom
Sounds like some other project is using the same application name. Try changing it to something else. --Ben Phillip Perry wrote: > In doing my banner rotation template I'm now getting an undefined error. The > error itself is not whats made me confused. Its the Application variables > list in t

Re: OT: DB Design - Bad Case of the Mondays

2004-10-11 Thread Ben Doom
I would look at it like this: There's a many:1 relationship users:accounts.  Salesrep:account is a subset of this relationship.  The 1:1 nature of this is a restraint I'd enforce outside the DB proper. That is, I would check to see if there's a user for the account where the usertype is salesr

Re: why can't they log in?

2004-10-11 Thread Ben Doom
We've had similar problems with software firewalls (specifically Norton) and proxy servers. HTH. --Ben Ray Champagne wrote: > I have inherited a rather simple application that has a section where > listees of an online directory can add/edit/delete their account info once > logging in to the

Re: RegEx Question

2004-10-06 Thread Ben Doom
Not directly.  However, you could use refind() to find the string.  I don't remember what the syntax is off the top of my head, but you can get the length and position of each matching string.  You could then replace it using repeatstring(). I had to do what you appear to want to do, and that's

Re: CFIF IsDefined

2004-10-05 Thread Ben Doom
You're using the wrong kind of mask for that date format function. LSDateFormat() is the local system date format, and takes "short","medium", or "long" (IIRC) as masks. You want dateformat() instead, I think. --Ben Donna French wrote: > I want to thank you all for being patient with me. I hav

Re: Yet Another Simple Regex Q

2004-10-04 Thread Ben Doom
[EMAIL PROTECTED],60}$ seemed to work for me in a quick test.  What CF version, etc.? --Ben Matt Robertson wrote: > I have this regex which works splendidly: > > [EMAIL PROTECTED] > > I want to make it so the string has no less than 6 and no more than 60 > chars, but if I plug in {6,60} it see

Re: textarea looping

2004-10-01 Thread Ben Doom
Um, if they're entering them one per line, the delimiter would be a linebreak character, not a space.  Try using 10 and 13 as delimiters, and make sure to trim(). --Ben Stephenie Hamilton wrote: > ok, so i have been doing only admin stuff this last year...don't have > my books with me and am havi

Re: try catch

2004-09-30 Thread Ben Doom
try query other stuff catch error! /catch /try Wouldn't that work? --Ben Phill B wrote: > If a query doesn't fail, I want to make some thing else happen. What > would be a good way to do this? > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Do

Re: Regex Question

2004-09-24 Thread Ben Doom
Oops.  Heh.  Well, that's why I put the disclaimer at the bottom.  :-) --Ben Duane Boudreau wrote: > Both Jochem and Ben were very close, here's what worked: >   > "\[GT:([^]]*)\]" >   > All I had to do was add the * >   > Thanks Guys! > Duane >

Re: Regex Question

2004-09-24 Thread Ben Doom
On CFMX, this is the cleanest to read: "\[GT:(.*?)\]" On CF5, you'll have to use: "\[GT:([^]])\]" Not tested, may need tweaking, YMMV, etc. --Ben Duane Boudreau wrote: > Hi All, >   > Got a regex question. >   > Sample content block: There are 31 [GT:moons] that surround Saturn >   > I need t

Re: [Repost] Coldfusion form validation & Safari

2004-09-16 Thread Ben Doom
amanda l wrote: > thanks for replying :) i'm not sure what you're referring to as not > matching up - i'm not seeing it - i went through section by section > deleting just to double check? (i had stuck that whole phrase in Yeah, I think it was a Copy'n'paste error, as what you have here has balan

Re: [Repost] Coldfusion form validation & Safari

2004-09-16 Thread Ben Doom
I'm not sure if this is the issue, but your parens seem to be unbalanced. Does this regex ever match an email in Safari?  That is, you've said that if you enter it wrong, then correct it, it doesn't match.  But does it match if you enter one correctly the first time? --Ben Amanda Lappin - Crys

Re: RegEx Problem Trying to Use Matched Text

2004-09-09 Thread Ben Doom
Sorry I didn't get back to this.  I left early yesterday -- injury time. Anyway, Jeff already gave a good rundown of the classes available to you, so I'll just give an example. If you were searching for a simplified version of an email address like "[EMAIL PROTECTED]" you might look for [[:aln

Re: RegEx Problem Trying to Use Matched Text

2004-09-08 Thread Ben Doom
CF5 doesn't support Perlish character classes (ie "\w"). IIRC, you can use [[:alnum:]] to replace them. BTW -- are you sure this is a direct copy from the book (aside from the \1 vs $1 change)?  It looks odd in several ways to me. --Ben Josen Ruiseco wrote: > I am using the following and I ge

Re: Concatenate 2 binary variables

2004-08-31 Thread Ben Doom
It occurs to me that you could use the system to concatenate two files, then read them as binary. ie you could "copy file1+file2 file3 /b" and then read file3. --Ben Neculai Macarie wrote: > Hi! > > Is there a way to concatenate 2 binary variables (that contain 2 files): > > > > I want to

Re: rereplace ?

2004-08-26 Thread Ben Doom
>>I'm confused on a number of issues. > sorry ben but i dont know why u live in kentucky either HAHA jk ;) My family lives here.  Trust me, that's the *only* reason.  Rural KY is not that fun a place. >>First, I don't know what characters you're referring to. > http://www.asciitable.com./ > i thi

Re: rereplace ?

2004-08-26 Thread Ben Doom
I'm confused on a number of issues. First, I don't know what characters you're referring to.  But that's tangental, anyway. Second, I don't know why you need a regular _expression_.  You could just use a regular replace for each one: string = replace(string, chr(123), chr(456), 'all') where 12

Re: SOT: Dreamweaver Search and Replace

2004-08-26 Thread Ben Doom
Why not just put a hard return in the "seach for" box? --Ben Venable, John wrote: > I'm simply trying to replace all instances on xxyyzz with a hard return. I have tried the search and replace with \n and \r but it just puts in those characters explicitly, this is Whether i have on 'Use Regular

Re: looping through checkboxes

2004-08-25 Thread Ben Doom
Drop the evaluate.  evaluate("bob") is the value contained within bob, not the literal string "bob". --Ben Daniel Kessler wrote: > I'm trying to do a cfloop to go through a set of checkboxes by an > array of their names and if they're define, then take their value and > make an appended strin

Re: RegEx - is it possible to strip all HTML except certain tags?

2004-08-25 Thread Ben Doom
> Ahh well, here's the regex I was using if its useful or anyone wants > to critique it... > > > REReplaceNoCase(txtData,"<(?!/{0,1}(#Arguments.ltAllow#)(\s[^>]*?>|>))[^>]*?>","","ALL")> Off the top of my head, it looks like it requires 2 closing brackets. --Ben [Todays Threads] [This Messag

Re: RegEx - is it possible to strip all HTML except certain tags?

2004-08-25 Thread Ben Doom
CF5 doesn't support lookahead.  It's got a fairly weak engine.  :-( --Ben Mike Kelp wrote: > Here you go...So you know, in regex: > x?!y matches x only if it is not followed by y > x?=y matches x only if it is followed by y > These are referred to as lookahead expressions > > The attached file

Re: RegEx - is it possible to strip all HTML except certain tags?

2004-08-25 Thread Ben Doom
> Can ColdFusion's RegEx functions accomplish this, or am I going to have > to figure out a workaround? Neither, actually.  Try S. Isaac Dealey's StripTags UDF from http://www.cflib.org. IIRC, it does exactly what you want.  :-) --Ben [Todays Threads] [This Message] [Subscription] [Fast

Re: Legal or Not Legal?

2004-08-23 Thread Ben Doom
Matt Blatchley wrote: > Any particular reason why you would consider it not a good practice? Well, for one thing, IP != user.  For example, if I browse here at work, my IP matches that of 5 other users.  If I browse from a dial-up connection, the IP I have today may have been someone else's yest

Re: RandRange ain't so Random

2004-08-23 Thread Ben Doom
Samuel R. Neff wrote: > You're better off not calling randomize() at all.  If you don't call it, > then CF will default to the calling randomize() with the current time in > milliseconds.  However, due to argument types you can't actually pass that > level of precision to randomize() yourself.   O

Re: RandRange ain't so Random

2004-08-23 Thread Ben Doom
Running a quick test, I'm finding (on CF 6.1) that after runing randomize(timeformat(now(), "ss")) (which, btw, is not a great sample set) that I routinely get a reasonable even sample. That is, for a run of 1, randramge(1,25) returns each number at least 350-ish times and no more than 450-

Re: CFINCLUDEs in a form?

2004-08-23 Thread Ben Doom
It's absolutely possible.  I've done exactly what you're doing a number of times. Is it possible you're adding new headers?  Accidentally embedding extra form tags?  Is the include *only* the select and options, or does it have other things in it? --Ben Tim Claremont wrote: > I have a bunch

Re: Legal or Not Legal?

2004-08-23 Thread Ben Doom
I've never heard of it violating laws, but it violates many sites' privacy policy.  I'm assuming it doesn't violate yours, in which case (AFAIK) it's legal but not necessarily a good practice. --Ben Matt Blatchley wrote: > Hey folks, > > Recently I talked to a few different people and we'

Re: Regex Question: All punct except...

2004-08-20 Thread Ben Doom
Alistair Davidson wrote: > One solution I've used before in vaguely similar situations is to > replace the / character with a placeholder, do the nice clean reg ex, > then put the slashes back: > but : > -  you have to choose a placeholder that's never going to appear > in your input string

Re: Regex Question: All punct except...

2004-08-19 Thread Ben Doom
I can't think of a clean way to use the punct class. However, I will state that writing out the chars you *do* want to replace in a class is going to run faster than what you have.  On the other hand, it's annoying to write.  :-) --Ben Patricia Lee wrote: > I want a CF regex to replace all pu

Re: Dreamweaver Find RE

2004-08-18 Thread Ben Doom
I know this is true of HS+, so I assume it of Dreamweaver: First, $ represents end of file, not end of line, so use whatever literal linebreak your system or setup uses. Second, backreferences are done using backslashes instead of dollar signs, so use \1 instead of $1. Finally, the regex you wro

Re: looking for a regex

2004-08-10 Thread Ben Doom
> Which might still leave the question of > href=""> No {}.  :-) --Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: looking for a regex

2004-08-10 Thread Ben Doom
I think he doesn't want to find {document.forms[0].bob.value=dom1.dom2.function()} I'd remove everything contained in

Re: Bug in CFMX? List functions fail

2004-08-09 Thread Ben Doom
The list delimiter you used is "[lis:link]".  However, CF sees that as a list of characters to use as a delimiter.  That is, [ is a delimiter and l is a delimiter and i is a delimiter and so on. Nope, not a bug.  Works as documented. In this case, I'd do something like replace() the [lis:link]

Re: Massive RegEx

2004-08-06 Thread Ben Doom
You can't really cache a regular _expression_ in any language I know. Besides, the time-intensive part is running it against a string, rather than interpreting it. There are a few things you can do to speed it up, but keep in mind that all are marginal.  Also, what "optimal" is depends on wheth

Re: SOT: SQL query requires qualified tablename

2004-08-04 Thread Ben Doom
It sounds like the user for that DSN doesn't have that DB assigned as its default. Just an idea. --Ben Dave Francis wrote: > In CF5.0,  SQL 2k > > For some reason, tables in one of my databases require a qualified name > to work, ie. >    > this works fine: >  > SELECT * FROM ds

Re: Referencing a query column while still in the query

2004-08-04 Thread Ben Doom
No, you can't reference the value of a column while building the query.   The column doesn't *have* a value in it until the query is built, sent, and the results returned. However, you could create a helper table to hold the appropriate information, and grab it that way. Or you could march thr

Re: Removing Curly Quotes, N-Dash, etc

2004-08-03 Thread Ben Doom
IIRC, DeMoronize (also(?) available at cflib.org) handles all those.  If that's what you were looking at before, then what specifically does it not handle that you need it to? --Ben David Hannum wrote: > What's the best way to handle the special characters that result of > copying Word text in

Re: Password protect a webservice

2004-08-03 Thread Ben Doom
You could require a username/password combo to be passed to the webservice for each transaction.  I've no idea if this is standard, but it's certainly doable. --Ben Mark W. Breneman wrote: > Any one? > > > Mark W. Breneman > -Cold Fusion Developer > -Network Administrator >   Vivid Media >  

Re: Image Manipulation - server side

2004-08-02 Thread Ben Doom
Sorry, misread part of your post. To be honest, we're actually bouncing the images of PHP to resize them, so I can't help you much with a pure cf/java tool.   Sorry. Good luck. --Ben Ray Champagne wrote: > That is exactly what I want to do, but don't know how.  I have been > dabbling in Java

Re: Image Manipulation - server side

2004-08-02 Thread Ben Doom
It sounds like you're resizing on the fly for each request.  Instead, why not resize on upload, store the various sizes, and serve them from the stored files? --Ben Ray Champagne wrote: > Forgive me if this has been brought up before, but I didn't see anything > that was solved in the archives

Re: Stupid telephone regex question

2004-08-02 Thread Ben Doom
Is this in CFMX?  This won't work in CF5 or earlier.  They don't recognize \d as digits. --Ben Matt Robertson wrote: > I'm trying to use this code and it keeps throwing out the string > whether its valid or not.  I know I'm doing something wrong but am a > dilettante at best when it comes to re

Re: Stupid telephone regex question

2004-08-02 Thread Ben Doom
The hyphen represents the hypen anywhere it could not represent a span of characters.  So [0-9-a-z] works, putting it at the beginning works, etc. --Ben Spike wrote: > That's a pretty specific regex for a phone number. > > Can you post an example of a number that should pass, but is failing? >

Re: Deleting a Verity Collection (K2-Related Problem)

2004-07-30 Thread Ben Doom
Was the collection created programmatically?  I'm guessing it was, but it never hurts to ask --Ben Chris Berg wrote: > I can delete the directory manually on the server without rebooting it > or stopping the service, but I am unable to delete it programmatically, > this is where my proble

Re: Deleting a Verity Collection (K2-Related Problem)

2004-07-30 Thread Ben Doom
I've not used K2, but... In Verity on Windows, I've seen problems where a file gets locked by a CF thread and then is never released.  Therefore, it can't be deleted. Rebooting the box fixes it for me, though there may be a less drastic solution. Once you've unlocked the file, you can delete t

Re: cfm template gone, i have class file

2004-07-29 Thread Ben Doom
Tony Weeg wrote: > there has to be a reversal tool...if it can go from cfml to .class, > why not .class to cfm? Is there a reversal tool to turn bread back into dough? The .class file has been compiled to java bytecode.  You might (might) be able to find a tool to decompile it into java.  The re

Re: OT: js pop-up

2004-07-23 Thread Ben Doom
I could be wrong, but I don't think spaces are legal between a function name and the parameters. ie window.open (bob) is wrong window.open(bob) is right. --Ben Robert Orlini wrote: > I get an error on a _javascript_ pop-up code. Something about "Expected )" > Its either a ) or } I'm not sure.

Re: Server Side Printing from Coldfusion

2004-07-21 Thread Ben Doom
Many third-party print spoolers let you have a "hot folder" that you could use CFFILE to drop a document into. Not sure if that's precicely what you're looking for, but I hope it helps anyway. --Ben James Smith wrote: > Is it even possible to print a word document server side?  I have hunted

Re: UDF within a Custom Tag

2004-07-21 Thread Ben Doom
I'd set a request-scoped variable just before or after my function declaration (ie "request.functionnameIsDeclared" or something else you'll never use anywhere else) and check for its existence. --Ben Jamie Jackson wrote: > On Wed, 21 Jul 2004 16:38:03 +0100, in cf-talk you wrote: > >  >You a

Re: Anti-Virus Software on a Server

2004-07-21 Thread Ben Doom
We run AV on our servers for a couple of reasons. 1)  AV does tend to update to block new IIS, SQL, etc. virii before MS gets the affected software patched.  From experience, I'm gonna give it about a 50% rating on that. 2)  It can give some limited protection to our webmail users. 3)  It can gi

Re: Accessing query results by row number

2004-07-20 Thread Ben Doom
foo.title[1] You almost had it!  :-) --Ben [EMAIL PROTECTED] wrote: > Is there a way to access query results by referencing the record's row > number?  I've tried > > foo[1].Title > > to get the Title field in row 1 of my query named foo, but I get this error > > [Table (rows 1 columns TITLE

Re: OT/flash question

2004-07-16 Thread Ben Doom
Caveats:  I'm not a flash programmer generally, and it's been months since I've done this, but Sure.  Use tags for the version of the link, and include the params as part of the URL for the (IIRC).  The parameters passed show up as global variables. HTH. --Ben Katz, Dov B (IT) wrote:

Re: evaluate

2004-07-13 Thread Ben Doom
Unless I'm reading this wrong (which is possible -- sleep would help) you should be able to do ...isDefined(theVar)... Personally, I would take a different approach.  I would have the checkboxes return 1 (or whatever the desired result is when checked) and cfparam() them to 0. HTH. --Ben Da

Re: I have a new email address! [no more flames please.]

2004-07-12 Thread Ben Doom
> What a douche bag! Incorrect spelling on a business web site? Nice. This > kid was born in 1979, what would you expect? Hey!  I was born in '79, and I kan spel reeel gud! Seriously, being young is not a prerequisite for being a dork. --Ben [Todays Threads] [This Message] [Subscription]

Re: NEQ ""

2004-07-08 Thread Ben Doom
I generally use len(trim(variable)) to test it it's empty (or is blank space). --Ben Daniel Kessler wrote: > I have a DB where I insert text from a form.  If the text is blank, I > still go through and insert it.  I thought I could check on it in the > display area with: > > >   >  

Re: Sorting help!

2004-06-30 Thread Ben Doom
If they only have to be grouped by account number, and so the account number could be desc instead of asc, you could simply read from the bottom to the top. Otherwise, I'd put them in an array or structs, find each 'block' of account numbers, and re-insert that block upside-down into a new arra

Re: regex in studio/dreamweaver

2004-06-29 Thread Ben Doom
gt; > - Original Message - > From: "Ben Doom" > >  > If I were just trying to remove all beginning and end span tags, I'd use >  > something like >  > >  > ]*> >  > >  > and replace it with the empty string. >  > > 

Re: regex in studio/dreamweaver

2004-06-29 Thread Ben Doom
If I were just trying to remove all beginning and end span tags, I'd use something like ]*> and replace it with the empty string. Not tested, I've barely started the caffeiene, YMMV.  :-) --Ben Deanna Schneider wrote: > Okay, I've tried a million variations of this regex in studio, and none

Re: Ordering File Names

2004-06-28 Thread Ben Doom
Well, you could also use a QofQ or UDF to re-sort them by length first, then alphabetically. --Ben Mickael wrote: > I see, that is the only way to do it? >   - Original Message - >   From: Burns, John D >   To: CF-Talk >   Sent: Monday, June 28, 2004 1:55 PM >   Subject: RE: Ordering Fi

Re: A little regexp help

2004-06-25 Thread Ben Doom
tribute. > I >  > should probably just break it out into a seperate _javascript_ function and > be >  > done with it. >  > >  > - Original Message - >  > From: "Ben Doom" <[EMAIL PROTECTED]> >  > To: "CF-Talk" <[EMAIL PROTECT

Re: A little regexp help

2004-06-25 Thread Ben Doom
When I tested ^[a-zA-Z0-9]{6,20}$ against "astrjuh" it matched, but not when I tested it against "astrjuh$". What version of CF are you using? --Ben Todd wrote: > Yes. > > It works correctly as long as there are not at least 6 alphanumeric > characters side by side.  Once there are 6 in a row

Re: A little regexp help

2004-06-25 Thread Ben Doom
> characters long that contains _only_ letters and/or numbers.  No special > characters at all.  In the case of ^[a-zA-Z0-9]{6,20}$ it allows special > characters once it finds at least 6 letters and/or numbers.  It's that > "only" part that is giving me trouble. Um.  No, it shouldn't.  I doesn't

Re: A little regexp help

2004-06-25 Thread Ben Doom
^[a-zA-Z0-9]{6,20}$ The ^ matches the beginning o the string and the $ the end. --Ben Doom Todd wrote: > This is probably a simple one, but I have little experience with > regexps.  I have a string that must only contain letters and/or numbers > and be between 6 and 20 characters

Re: Quick Regular Expression Question.

2004-06-23 Thread Ben Doom
Currently, you have: ^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$ ( |-) represents a space or hypen.  If you just want a hypen, you don't need the parens, space, or pipe. ( |-)? means that the space or hypen is optional. So, if you want to force a hypen for 9-digit zipcodes, you would want ^[[:digit

Re: OT: javascript submit

2004-06-22 Thread Ben Doom
Offhand, without spending any time looking at logic: > return = false; No equal sign here. > > checkForm();"> Remove the "return" from the onSubmit. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: Slightly OT: Graphics expert?

2004-06-22 Thread Ben Doom
> Other than that, there shouldn't be too much else she has to do. The key > is to play with the anti-aliasing setting for that text layer. If you > want smooth, graphical text items, they will always be blurry to a > degree, as that's what anti-aliasing does to get rid of the jaggies. It's also g

Re: Great Resource for Non-Profits

2004-06-18 Thread Ben Doom
He's posted at least a dozen times before, and this is the first one I've seen about this.  I dub him Known Participant, long live the Mailer Daemon! --BenD Dan O'Keefe wrote: > Is this SPAM or is this a known participant of the list? > > Dan >   - Original Message - >   From: Claremo

Re: About Scoping mostly url and form

2004-06-17 Thread Ben Doom
Here, we've created an "artificial" scope that contains the contents of both URL and FORM scopes.  If something exists in both, FORM overwrites URL. --Ben Doom Joshua O'Connor-Rose wrote: > At the risk of looking not too bright I have a question maybe I can get > h

Re: Thank you page after download

2004-06-11 Thread Ben Doom
Why not embed this page in an iframe on the thank you page?  Or a thank you page that redirects onLoad to this page, since that ought to leave the thankyou page visible when the download starts? --Ben Doom Dave Francis wrote: > Hi, > > In CF 5.0, to download a file to the user

Re: OT: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Ben Doom
You could try something like this: \d{1,2}/\d{1,2}/\d\d(?\d\d)? Of course, that's only using slashes, not dashes or dots or spaces, but it should give you the right idea. --BenD Mark A. Kruger - CFG wrote: > Regex gurus, > > I have a string and I want to ensure that the date format is: > >

Re: SPOT: Regular Expressions

2004-06-09 Thread Ben Doom
> reFind("[^[a-z]]",arguments.userid) [^a-z] You were close.  You just need to remove the extra brackets. Putting the carat outside the brackets means "beginning of string", btw. --Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: Going Bunker with RE !!

2004-06-09 Thread Ben Doom
> st=ReFindNoCase("<[^>]((input|textarea|select|option)\b).*?>",SearchString,StartPos,"TRUE")> The [^>] bit requires that a character exist between the opening bracket and the text.  Assuming you want closing tags as well, aybe you meant If you don't want closing tags, remove the /? bit. HTH.

Re: upload a file explanation

2004-06-02 Thread Ben Doom
gt;  >  >> >  > >  >This bit redirects to another fuseaction if the filesize is too big. >  >The file is still stored in the destination folder as seen above, but no >  >further processing on it is done. >  > >  >--Ben Doom > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: upload a file explanation

2004-06-02 Thread Ben Doom
addtoken="No"> >  > This bit redirects to another fuseaction if the filesize is too big. The file is still stored in the destination folder as seen above, but no further processing on it is done. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: functions

2004-05-28 Thread Ben Doom
Yes.  Yes I did. :-) --Ben Raymond Camden wrote: > Um... no. Val() is a CF function. I think you mean var. And it must be at > the beginning of a UDF. Ie > > function foo(x,y) { > var z = 1; > z = x*y+9; > return z; > } > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe]

Re: functions

2004-05-28 Thread Ben Doom
es to learn from on there. --Ben Doom daniel kessler wrote: > ah locals, nice. > That's a boon. > > Sure would've been nice to have a course in all this instead of ad-hoc > and relying on my historical knowledge ("who's buried in grant's tomb" >

Re: functions

2004-05-28 Thread Ben Doom
You surround the function declaration (in the script version) with cfscript tags.  The call doesn't have to be in a cfscript block. There are small differences in loops in the script version vs the tag version, but (afaik) that's all. --Ben Doom daniel kessler wrote: > huh. so

Re: functions

2004-05-28 Thread Ben Doom
> Also, why did you val the pv? If you use "val" to declare a variable, it is local to the function. this is a good idea, since otherwise you might accidentally overwrite something in the variable scope. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fas

Re: functions

2004-05-28 Thread Ben Doom
nstead of ECMA ones.  That is you use "is" or "eq" instead of "==" and so forth. You can call it from a CFSET if you want the results to be put in a variable: If you just want them displayed, you can do something like #function_name(arguments)#

Re: CFFILE

2004-05-26 Thread Ben Doom
> In my reference (cfmx): > "Pathname of directory in which to upload the file. If not an absolute > path (starting a with a drive letter and a colon, or a forward or > backward slash), it is relative to the ColdFusion temporary directory, > which is returned by the GetTempDirectory function." > >

Re: CFFILE

2004-05-26 Thread Ben Doom
> The destination attribute has to be a directory (not a file!). You can > find out the name of the uploaded file with #cffile.serverFile#. ??? From the CFML reference: Absolute pathname of directory or file on web server. I know in the past I've used a filename here. --Ben Do

Re: UDF Problem

2004-05-25 Thread Ben Doom
Try calling the function like this: priceRangeFormat(pricelo[1], pricehi[1]); Just a guess, though. --Ben Doom Jim McAtee wrote: > Using CF5. I pull two float columns (prices) from a table and then pass > the values to a CF function, shown below: > > function PriceRangeFo

Re: Finding the right FORM field...

2004-05-25 Thread Ben Doom
> WHERE Project_Nm = #StructFind(FORM,Evaluate("SELPROJECT" & issueID))# > WHERE Project_Nm = #FORM["SELPROJECT" & issueID]# Try that.  Should work better.  Or should tell you issueID contains the wrong data. --Ben Doom [Todays Threads] [This Message]

<    1   2   3   4   5   6   7   8   9   10   >