Hi all,
I'm having problems getting an image which I've used CFIMAGE to crop on CF8.
I can crop the image, return it to the browser, but trying to 'get' at it on
the subsequent page request is driving me mad.
I can output the image, i.e img src=
I'm using Matt Gifford's trick of returning the cropped image via an ajax
request:
http://www.mattgifford.co.uk/image-cropping-with-coldfusion-jquery/
So, yes, I suppose I could save it at that point, but it would remove the
functionality of being able to revert to the original which is rather
Hi all,
Having not found an existing function to do this (output a query object as a
nested ol or ul), I thought I'd try my own hand at it - I'm *so* close. Yet,
not quite there.
Basically, my mind has given up trying to get the logic correct in when to
close /li elements. It works most of the
/cfoutput
/ul
On Thu, Aug 26, 2010 at 10:18 AM, Tom King mailingli...@oxalto.co.uk
wrote:
Hi all,
Having not found an existing function to do this (output a query object
as
a
nested ol or ul), I thought I'd try my own hand at it - I'm *so* close.
Yet,
not quite there.
Basically
I've updated the dummy data in my example to include multiple depths (i.e
nesting)
http://neokoenig.pastebin.com/nGBphKVN
T
On 26 August 2010 16:27, Tom King mailingli...@oxalto.co.uk wrote:
Hi John,
That's fine when you just want a straight:
ul
liSomething/li
/ul
But I'm trying
It sort of makes sense that this is a recursion issue, as I keep hitting the
'You need to know the future' (i.e the next row before it's happened)
feeling..
Re: Michael, yes, assume the query is sorted (i.e the depth is how deep the
containing UL is).
It does my head in. Recursion that is.
On
It's been one of those days already - can anyone tell me why the time gets
stripped out? I'm aware that I'm using 'date' as an argument type, but
datetime throws an error and there's nothing in CF8 docs on it... How do I
preserve the time data?
cffunction name=dateFormatter2
From: Tom King mailingli...@oxalto.co.uk
Sent: Wednesday, August 18, 2010 8:26 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: Passing a Date Time Value to a function
It's been one of those days already - can anyone tell me why the time gets
stripped out? I'm aware that I'm using 'date
up the
string into parts and check the existence of each - but I think your
code is fine (and a hell of a lot simpler).
On Mon, Jun 14, 2010 at 9:44 AM, Tom King mailingli...@oxalto.co.uk
wrote:
nevermind - found the solution!
ended up with:
cffunction name=checkPermission
So in the CF Code, you don't escape the and 's.
So:
cfset the_from = the_from , fname lnameemail
will get you the string to use in your CFMAIL tag,
then when you're displaying it via cfoutput, use:
#htmlCodeFormat(the_from)#
or, to escape the characters, but don't surround
Ok, my brain is hurting - I know this should be possible, but I can't quite
get the syntax.
I need to pass a string (a path to a structure which contains a boolean in
the session scope) into a function, which then checks the value:
i.e
cfif checkPermission(email.send.all)
Show a form or page
might consider
IsDefined
instead.
cfif IsDefined('session.currentUser.permissions.' arguments.path)
It's not a best practice necessarily, but it would prevent a whole bunch of
StructKeyExists calls.
andy
-Original Message-
From: Tom King [mailto:mailingli...@oxalto.co.uk]
Sent
)
cfreturn true
cfelse
cfreturn false
/cfif
cfelse
cfreturn false
/cfif
/cffunction
(Never used evaluate() before, heard it was bad..?)
T
On 14 June 2010 15:29, Tom King mailingli...@oxalto.co.uk wrote
Hi All,
I've got a form where I've got a potentially unknown number of form fields
as they're being added by Javascript;
i.e
form.linkText_1
form.linkUrl_1
form.linkText_2
form.linkUrl_2
form.linkText_3
form.linkUrl_3
form.linkText_4
form.linkUrl_4
How can I deal with this at the other end?
I
= form[linkText_counter]
cfset counter = counter + 1
/cfif
/cfoutput
/cfloop
-Jake Churchill
Tom King wrote:
Hi All,
I've got a form where I've got a potentially unknown number of form
fields
as they're being added by Javascript;
i.e
form.linkText_1
form.linkUrl_1
Have a look at Ray Camden's Galleon
http://galleon.riaforge.org/
T
2008/10/29 Mallory Woods [EMAIL PROTECTED]
Hello All,
I have a quick project to do and there is no time for re-inventing the
wheel. What is the best open source message board? It will be installed on
a
system that is
Thanks for the help all;
finally settled on:
cfset testStruct = structnew() /
cfset testStruct.LinkText_1 = Linktest1 /
cfset testStruct.LinkText_2 = Linktest2 /
cfset testStruct.LinkText_3 = Linktest3 /
cfset testStruct.UrlText_1 = Urltest1 /
cfset testStruct.UrlText_2 = Urltest2 /
cfset
Hi All,
I've written a customtag to do paging;
Basically, I can pass a recordcount in, and it'll output
1, 2, 3, 4, 5, 6, 7,
- This works fine;
However, I really need it to do this:
1, 2, 3, ... 8, 9 ,10
as the recordsets I'm now dealing with are getting quite big;
Any one know how I
Hi All,
Is there a way of outputting a Query in cfoutput in reverse without
creating another query, or adding rows to the query, and with no
numerical index?
I have a manual query object created, with galleryId, and
galleryName, but GalleryID is not a sequential number sequence nor
Many thanks all, the negative step is something which simply had never even
occured to me!
T
-Original message-
From: Bobby Hartsfield [EMAIL PROTECTED]
Date: Thu, 15 Nov 2007 20:37:34 +
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: Cfoutput query backwards
Yes you can use a
Hi all,
this is driving me nuts:
I'm trying to insert a date/time into a mysql database:
the row is set up as datetime, NULL as default;
I;m trying to insert from a form where I have drop downs which give
me the various values;
The values are definitely being passed from the form to the CFC;
Thats got it - got confused about TimeStamp /DateTime /Date (just
moved from Access :)
Thanks!
T
On 12 Jul 2007, at 15:46, Charlie Griefer wrote:
cf_sql_timestamp as the cfsqltype?
On 7/12/07, Tom King [EMAIL PROTECTED] wrote:
Hi all,
this is driving me nuts:
I'm trying to insert
I have a project:
I need to create an in and out board (i.e a webpage/application which
sits on a tablet PC by an entrance to a building);
The app needs to show a list of names, populated from a MySQL
database, and on click, update the time signed in to the database,
and change the color of
Unicode!!!
Make sure
a) your html header has utf-8 in it - the form may also need to be
told a specific char set; - Dump the form contents on submission: are
the chars there?
b) if in inserting into a database, that the database is set up with
Unicode, look at the SQL - is it inserting the
This may help with the set up (but I'm assuming as it verifies it
probably ok):
http://www.oxalto.co.uk/index.cfm/2007/7/2/Setting-up-a-MySQL-
database-with-Unicode--properly-in-Coldfusion-7
T
On 2 Jul 2007, at 13:18, Mark Leder wrote:
I have a new MySQL connection set up in CF7 - verifies
You'd need to remove the br /
Im not sure if you're allowed to do this, but could you apply a
class to the br as well?
Or even worse, nest the br in the span?
T
On 2 Jul 2007, at 14:39, Adrian Lynch wrote:
I have three spans:
span id=span_11/spanbr /
span id=span_22/spanbr /
span
TiTan Hosting (www.titaninternet.com) allow unlimited DSNs (Access) I
believe.
CFFILE is also fine w them.
T
On 13 Jun 2007, at 18:11, Nick Call wrote:
I have an old CF application where different setups use the same
source
code. I need to host this application somewhere that allows me
Could you elaborate?
As I see it, there's no way I can refer to the blocks in a SQL
statement?
Ta
T
On 6 Jun 2007, at 00:03, Dave l wrote:
you could run a query and copy in a smartquotes to sort by then
update with normal quotes.
Another BIG thank you to microcrap for those.
Hi
Hi All,
I've inherited a database which has loads of squares in the middle of
text - i.e incorrectly encoded quotes, and other chars which bring
out this type of wierdness when displayed.
They are inconsistent as to what they are, but the majority are (or
were) single quotes.
Any tips on
Hi All,
Just set up a MySql DB, and I'm trying to work out the best way to
update multiple tables via CF:
I.e:
TblEvent
EventID [key]
EventName
tblEventType
EventTypeID [key]
EventTypeName
tblEventJoin
EventJoinID [key]
EventID
EventTypeID
So above, I
statement
using the EventJoinID 's list will delete all of the old records,
and then
loop over your new joins and insert.
It eliminates the need of worrying if a join was changed or
deleted. You can
also use cftry cfcatch to handle the transaction failing.
Dan
On 6/3/07, Tom King
, anyway, It's a bit of a shot in the dark, but just thought
I'd
share it.
Rob
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: 03 June 2007 14:44
To: CF-Talk
Subject: Re: SOT: SQL methods
that's a fab idea... :)
Thanks!
T
On 3 Jun 2007, at 14:41, Dan O'Keefe
Download the 30 day trial of Navicat which should let you do all the
front end work
T
On 1 Jun 2007, at 13:13, Wayne Putterill wrote:
I would like to get the CF8 sample databases up on the free beta
hosting for
CF8 from hostmysite, but I don't use MS SQL and so can't get access
to a
remotely, or import them from a local installation.
T
On 1 Jun 2007, at 13:43, Wayne Putterill wrote:
The problem is that I don't have the backend ;)
I could download the CF8 beta which would have the sample
databases, but I
haven't got MS SQL to load them onto.
On 01/06/07, Tom King
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
On 5/31/07, Tom King [EMAIL PROTECTED] wrote:
Am I shooting myself in the foot by looking at US hosting (i,e
hostmysite.com ) even though the majority of sites I run are in the
UK (or have a large UK audience + are co.uks?)?
The pricing
Am I shooting myself in the foot by looking at US hosting (i,e
hostmysite.com ) even though the majority of sites I run are in the
UK (or have a large UK audience + are co.uks?)?
The pricing just seems so much... cheaper.
There's the obvious issue of Lag, but if somewhere offers 24h tech
Hi All,
a quickie for someone hopefully?
I have the following SQL:
SELECT * from request.events WHERE EventDate #Now()#;
This returns all event before 'today'..
How would I do it to get all events including today?
(a sort of Now + 1 day?)
Ta
Ah ok,
forgot to mention the time stamp I'm checking against won't have
times, i.e 00:00:00 etc.
So I need to do two things:
One, get past events, two get forthcoming events:
Past events has to get everything yesterday (by date) backwards,
and forthcoming has to include today forwards:
So
for the DB
you are
using. I prefer to let the DB do any work it can rather than CF.
As long
as the business rules for what needs to be returned will not
change, I'd
rather have the DB figure out the date I need.
On 5/23/07, Tom King [EMAIL PROTECTED] wrote:
Ah ok,
forgot to mention
..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 8:54 AM
To: CF-Talk
Subject: Re: Date now() +1?
Thanks all
?
www.bennadel.com/ask-ben/
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 10:37 AM
To: CF-Talk
Subject: Re: Date now() +1?
It's on a Query of Queries, so no cfqueryparam - b... :(
T
On 23 May 2007, at 15:33, Ben Nadel wrote:
You
Hi All,
i've created a struct which when outputted, outputs in the 'wrong order'
If you run the code below when you're in a subdirectory, i.e:
/home/mydir1/mydir2/somepage.cfm
each dir and page name is added to the struct in order:
When I dump the struct, it comes out in the correct order, but
On 8 May 2007, at 15:31, Ben Nadel wrote:
My CFDumps seem to change order when I dump them out. I am surprised
that your CFDump outputs in a consistent order.
Yep! everytime...
Instead of doing a collection loop, try doing a list loop over the
struct keys StructKeyList(), then using those
You could do this many ways:
For multiple languages, I often use session vars (that way the URLS
don't get bogged up, but you do use a few more resources having all
those sessions flying around I guess)
But multiple sites, i.e different domain names on one hosted account
I run each site
...
Sunshinetechsolutions.com
Hostnexus.com
Those are 2 good hosts...
Eric
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 8:40 AM
To: CF-Talk
Subject: Re: php equivalent of application.cfc
Heh,
Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF
Hi All,
Sorry for the OT:
I'm new to PHP, and am trying to find out if there is the equivalent
of application.cfc onrequest() function:
I.e, I want to be able to do this, without having to put the includes
in every file:
cffunction name=onrequest
cfargument name=targetpage''
heheh,
Not my choice, working on a site where they can't afford to move the
hosting...
If it was my choice, I'd rewrite the damn thing from scratch in CF
T
On 2 Mar 2007, at 11:24, Peter Boughton wrote:
There isn't one.
You can mimic it with Apache stuff - but why bother when its far
a file that would be
called before every request the way Application.cfm is called. You
have to define it explicitly, but it behaves exactly the same way, in
my experience. That file can include custom functions.
Unfortunately, I can't remember the setting offhand.
On 3/2/07, Tom King [EMAIL
hehe, so glad I don't have to deal with this on a regular basis -
thanks for the tips!
T
On 2 Mar 2007, at 14:05, Rob Wilkerson wrote:
Ugh. :-)
On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:
On Friday 02 Mar 2007, Rob Wilkerson wrote:
That could work (as would the related
Heh,
Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less
than £200 PA?
T
On 2 Mar 2007, at 13:26, Peter Boughton wrote:
Ah, interesting... Did you see my survey about potential low-cost
CFML hosting?
/cheeky-plug
:)
heheh,
Not my choice, working on a site where
Dear All,
I've built a basic RSS aggregator, using Ray's RSS.cfc (basically,
all I've done is write a function which loops URLs into RSS .cfc and
saves the output as one big Query) But am now running into problems
(mainly to do with Date types in RSS 1.0):
Has anyone else done this? Or are
Just display them, but for some reason I'm getting an invalid data
type from a valid 1.0 XML doc..
I think it's just a matter of going through Ray's code and see if I
can put some extra validation in..
T
On 23 Jan 2007, at 12:00, Brian Swartzfager wrote:
Hi, Tom,
I recently built an
Ha, that looks great. But I'm broke :)
T
On 23 Jan 2007, at 15:06, Pete Freitag wrote:
On 1/23/07, Tom King [EMAIL PROTECTED] wrote:
Or are there any other CF aggregators (as
in a component, NOT a site) which anyone has seen?
Hi Tom,
We have a commercial feed parser for sale here:
http
Hi all,
I'm in a multiuser, (read networked) environment, and my Dreamweaver
config folder is currently located over a network share - this is
obviously degrading the performance somewhat, and causing various
issues whenever there's a server timeout
Is there a way of changing where
Those are conditional statements left in by word: You'll need to tell
TinyMCE to strip them:
Look at the TinyMCE documentation - there's a config there which
helps you get towards XHTML compliance - use that in combination with
parsing the string to strip out all the crap.
T
On 9 Dec
Hi all,
Is there a way to define multiple websites on Windows XP IIS 5?
Obviously, on the server edition, one can right click in IIS config
and create a new website easily, but my dev box is running XP pro and
doesn't seem to have the functionality.
http://localhost/foo/ is fine, but I
awesome, that's done the job.
Ta muchly
T
On 5 Dec 2006, at 11:32, Robertson-Ravo, Neil (RX) wrote:
Yes, you cannot create multiple sites in XP.
There are several tools to do this.. Search for tools such as
IISAdmin.
HTH
-Original Message-
From: Tom King [mailto:[EMAIL
There's a CFC called titlecase.cfc on cflib.org which is usually used
for names (i.e recognises von, de as small etc..) You may be able to
alter it to suit your needs
T
On 22 Nov 2006, at 14:06, Andy Matthews wrote:
You could do a test and cap the first letter of any word 4 letters or
Correction, its not on there, author was http://artlung.com but I
can't seem to find it on there.
Well, I have a copy if you want a look see
T
On 22 Nov 2006, at 14:16, Tom King wrote:
There's a CFC called titlecase.cfc on cflib.org which is usually used
for names (i.e recognises von, de
Hi All,
Currently, we've got a couple of servers happily running IIS, +Server
2003 +ColdFusion, with some of the sites using access databases,
which contrary to some people's experience on here, have been
behaving very well.
We want to set up a new server, and after some discussion have
Thanks to all for the insight:
Looks like I've got some reading to do :)
Ta
T
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your
Just to throw in my two pennies worth:
I have a CMS where there are about 20 websites which use the same
editor, file upload etc.
I do this the following way - I have a table with the web site
specifics in, like the various upload directories, image directories
etc, and then a User table.
OK, This have been driving me nuts...
request.photolist exists, and has phototag etc fields.
variables.thistag is also fine:
BUT, this code:
cfquery dbtype=query name=GetTaggedPhotos
SELECT * from request.photolist WHERE phototag LIKE
: RE: Head Banging Access LIKE error in QoQ
Just a guess:
You might have an empty phototag value somewhere
Try
WHERE ( phototag) LIKE %#trim(variables.thistag)#%'
Or, try +phototag (not sure of syntax)
Does this fix the issue?
Dov
-Original Message-
From: Tom King
www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 8:07 AM
To: CF-Talk
Subject: RE: Head Banging Access LIKE error in QoQ
That's closer I think: I DO have empty fields
/ask-ben/
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 8:25 AM
To: CF-Talk
Subject: RE: Head Banging Access LIKE error in QoQ
Agh!
that's it in a nutshell..
:(
Oh for a solution*sigh*
T
-Original message
cfmail to=form.email
from=session.auth.email
subject=Overs Form
type=html
server=smtp.mail.anet.com
Should be
cfmail to=#form.email#
from=#session.auth.email#
Hi all,
New to CFFORM (flash) here - Im creating an admin system for a
photogallery - Im outputting thumbnails, with their captions into
rows, which are then editable.
What I need to do now is make the thumbnails into a link, so people
can view the full size image, but preferably, I want
Don't you need
cfif EventName NEQ onApplicationEnd AND EventName NEQ onSessionEnd
in the OnError Function?
T
On 18 Oct 2006, at 13:26, Ben Nadel wrote:
Can someone please help me out here. My Application.cfc is throwing
errors on OnApplicationEnd method. I am banging my head against the
Developer
www.bennadel.com
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 8:37 AM
To: CF-Talk
Subject: Re: PLEASE HELP! Why is this application.cfc erroring out?
Don't you need
cfif EventName NEQ onApplicationEnd AND EventName NEQ
is being fired in the first
place.
Thanks for the suggestions,
Ben
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 8:52 AM
To: CF-Talk
the error on page or
is it
not writing any HTML file?
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 9:06 AM
To: CF-Talk
Subject: Re: PLEASE HELP
Ray Camdens BlogCFC
:)
On 17 Oct 2006, at 12:40, Ali Majdzadeh wrote:
Hi: I need a blog application in cfm with ms-access or ms-sql (for
personal use). Do you know a good one?
thanks
Benign
~|
Introducing the Fusion
This might be one argument for starting a forum, rather than having
an email list - I find it quite difficult to browse Houseoffusion
Hence, flogged horses are dragged out more often than they might be
(rather than just see so and so thread)...
Ironically, the change to a forum rather than
Hi all,
I'm looking for some code to create RSS feeds from a DB output (i.e
news , you know the sort of thing)
Ideally I'm looking for something which will let me specify a query
and then output the contents into a flat XML file, preferably
removing all the potentially invalid chars..
Any
Thanks to all for the tips!
Ray - i've got your rss.cfc working a treat:
However, much as I am a newbie, I have to point out that on line 177
of the cfc, for valid XML should read:
dc:date#dateFormat(arguments.data.date,-mm-dd)#T#timeFormat
).
Ignoring that though - what change did you makde for valid xml? I
don't see any change except the removal of the if.
On 10/11/06, Tom King [EMAIL PROTECTED] wrote:
Thanks to all for the tips!
Ray - i've got your rss.cfc working a treat:
However, much as I am a newbie, I have to point out
Dear All,
I'm using the following script to dump the various scopes which exist
into an email as a form of error handling.
However, my shared host has locked down CFOBJECT, so this doesn't
work unless I remove some of the structs being dumped.
The Script in application.cfc:
cffunction
In which country?
T
On 8 Sep 2006, at 13:24, Doug Brown wrote:
Was wondering who the best hosting companies were. Need to support
mySql.
Thanks
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of
Add an Isapi rewrite to redirect all .pdfs to a page like library.cfm?
file=filename.ext
Then you can log the filename and any other info in a database, and
then serve the file via CFHEADER.?
T
On 6 Sep 2006, at 16:26, Andy Matthews wrote:
I'm working on a simple access for PDF files and
x737
--//-
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 06, 2006 10:32 AM
To: CF-Talk
Subject: Re: Password access for PDF files
Add an Isapi rewrite to redirect all .pdfs to a page like library.cfm?
file=filename.ext
Thanks all for the pointers:
I've now successfully integrated TinyMCE into my Custom made CF CMS :)
Its really is VERY good...
Ta
T
On 1 Sep 2006, at 05:35, Paul Hastings wrote:
James Holmes wrote:
Is that something FCK does much better?
TinyMCE is pretty good too. I prefer it to FCK.
Hi All,
Has anyone come across a Rich Text Editor which meets the following
requirements:
- Doesn't use inline styles, i.e p,em,i,h1,h2,h3,h4,h5,h6 only
- Could load an external CSS stylesheet so what you see in the RTE
window takes on the necessary styles of the website in which you're
Hi All,
Please excuse my ignorance:
I've got cfforms (flash forms) working on my local machine (WinXP, CF7 Dev
edition),
But on my IIS 6/Win2003/CF7 server hey simply don't appear: No preloader,
error message, nothing.
Presumably as I've them working locally it's not a code issue -
However,
If anyone's interested, I figured out the problem,
CF was looking for the flash compilers and libraries in the wrong place, as
the CFIDE dir is on a different partition, and I had the flash forms
debugging turned off..
*sigh*
T
-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED
Dear All,
This is my first post to this list!
I'm looking to possibly set a way to divert CF page requests made from
within real player (enterprise or likewise) to a site. At the moment, I can
browse the pages from within real player, but want to customise the pages
specifically:
Is this
86 matches
Mail list logo