Community Member Profile
- Profile: /members/2549-Peter-Boughton.htm
- URL: http://www.sorcerers-isle.net
- Comments: 42
- Points: 369
Recent Blog Comments By Peter Boughton
-
Use jQuery's SlideDown() With Fixed-Width Elements To Prevent Jumping
Posted on Sep 28, 2011 at 2:48 PM
>> record shortest Anna comment ever. Haha! Are you feeling ok? Might want to lie down for a bit until you recover. ;) Ben: Just to confuse us all further, there's an alternative box model where you can specify the final width and the padding/etc is included within that size rat... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 6:00 PM
Adam, the concepts of Request, Page, and Template are actually three distinct things. Request I think we can agree as being the moment CF gets tapped on the shoulder by the web server, up until it delivers its response and waves goodbye. And Template is just a way of saying "file... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 5:35 PM
The documentation is wrong - prior to CF9, aborting the request is exactly what it did (as proven by it not executing onRequestEnd method nor OnRequestEnd.cfm template). Documentation should always be corrected to match actual behaviour on a released product, (even if the plan is to then ch... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 2:27 PM
Randall, If you are not currently using the "showerror" attribute for cfabort, you can update all cfabort tags to set this, and then in your onError function you can do: <cfif Arguments[1].TagContext[1].Id EQ 'CFABORT' ><cfreturn/></cfif... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 1:55 PM
Mike, whether or not it makes sense, changing the behaviour of this tag in such a way will break many applications, and Adobe always say they take backwards compatibility into account. There are no applications prior to CF9 that depend on onRequestEnd firing with cfabort, but there will be... read more »
-
CFAbort And OnRequestEnd() Behavior In ColdFusion 8 And ColdFusion 9
Posted on Jun 29, 2011 at 11:47 AM
WTF!? cfabort should not fire onRequestEnd. A "graceful" attribute could be handy, but it should certainly not be the default behaviour. All the people that voted for and implemented this behaviour need a big slap!... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:51 PM
Ah, I noticed a slight bug - the lookahead part should be this: (?=lace\b|silk\b|velvet|velour|leather) Otherwise it could incorrectly match "laceer" or "silkout", etc. (The other three items there are long enough not to
read more » -
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:48 PM
The "?" makes the preceding item optional - i.e. it can be there, but it doesn't have to be. Except, a "?" following a "(" means a "special group" - e.g. a lookahead, or a non-capturing group, or an atomic group. I'll explain the rest by commenti... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:11 PM
Ah, but there is a complete list of blog entries ( here: http://www.bennadel.com/blog/complete-blog-entry-list.htm ) Which allowed me to find the article I was thinking about: read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:05 PM
Ben, your blog doesn't have a regex tag, despite having so many blog entries about Regular Expressions...?... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:02 PM
Heh, I haven't even got a clue what sort of regex Oracle does. If it's a one-off task, then using CF is probably simpler for now. If it's an ongoing thing, Oracle might be better performance (since it's doing everything on the same server rather than passing back and forth).... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 12:00 PM
Doh, I forgot the code blocks. :( Anyway... as for which of the three books to choose, I'm also undecided. I've got the 1st edition of Mastering Regular Expressions, and it's good, but the 3rd edition has even more (particularly on java.util.regex, which didn't even exist at the time... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 17, 2011 at 11:43 AM
Anna, the answer is "yes and no" :P The answer I suspect you *don't* want is: Yes, like this... <cfset ShortVersions = ReReplace(LongVersions,'[aeoui]','','all') /> Whilst that fulfils your brief, I don't think it's what you're asking. Similarl... read more »
-
Neat Trick With ValueList()
Posted on Jun 15, 2011 at 10:39 AM
Jerry, if you're using Ben's example, you just run HtmlEditFormat (or similar) on the value produced by ValueList. For my <li>-based example, it would probably be simplest to loop through manually and call HtmlEditFormat on each one (and if you're doing that, you might as well manuall... read more »
-
Using jQuery With Custom XHTML Attributes And Namespaces To Store Data
Posted on Jun 9, 2011 at 10:59 PM
Yeah, that'd definitely make sense in general. For my specific case the attributes can actually be on almost any tag, so it's simpler to just use * than try to list them all - only needs to be fast running on my machine, since it's a backend UI - so far it's good enough.... read more »
-
Using jQuery With Custom XHTML Attributes And Namespaces To Store Data
Posted on Jun 9, 2011 at 10:43 PM
Yeah I tried that and still got an error - in Firefox anyway. (I saw something suggesting it was a browser-specific thing.)... read more »
-
Using jQuery With Custom XHTML Attributes And Namespaces To Store Data
Posted on Jun 9, 2011 at 10:03 PM
I found this article when trying to find how to select elements with namespaced attributes, so in case anyone else does too, I'll note what I've found. It seems that if you want to select all items with the "bn:rel" attribute, you CANNOT do this... jQuery('[bn:rel]')... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 5:26 PM
Yeah, viva is Spanish and Italian, whilst vive is French. I assumed Jason was going for Spanish because of the "el", which isn't Italian or French, but unfortunately knowing that doesn't help with knowing what the appropriate way to phrase it is. As for whether regex is masc... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 4:33 PM
Anna: Yeah, pointlessly locked down computers are very annoying! Fortunately they weren't stupid about it at the last place I worked, and generally trusted the developers not to screw them up; I think social website blocking was the worst we had. GIMP is ...well, it's popular amo... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 3:44 PM
Anna wrote: > And how do you know its me? It could be a stock photo ... Because I'm a photographer and I tend to recognise the characteristic look that stock photos have. :P (I was also tempted to drop a remark about sitting outside your window, but after my last joke I'm rat... read more »



