The easiest library I have found to accomplish this is HTMLXtree.
They have a good set of other widgets (tabs, editors etc) but the tree
view is excellent. You can set it to output only the trunk nodes and
query later for the leaves as a user opens the folder. It also allows
for custom graphics
Here's my actual page: http://www.wildasia.net/rt/
OK, I believe one of two things may be happening:
1. Is there a web proxy somewhere in the chain? If possible, try it again from
a web browser right on the server.
2. Your IIS install/ColdFusion connector is hosed. Not only do I get a 302
I have the need to display an xml document. so I am using cftree to do that.
to build the cftreeitems, it is easiest to recursively call the renderer for
each node. BUT the cf compiler 'expects' the cftreeitem tags to be in the
SOURCE FILE AFTER the CFTREE tag.
if I generate the tree items
We all know that cf8 appends a 1 to the end of the file name to make
a unique new name, which works fine, until the file name gets to 255
characters. Is there a way to change this behavior? I have a web
application that users check out/in documents and there are some
documents that are heavily
Are you saying that ColdFusion is throwing errors during the file upload? Or
is something else going on?
--
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User Group
http://www.bennadel.com
Need ColdFusion Help?
No,
Coldfusion is ok, its when the user saves the file to their
local machine, if their local path plus the file name ends up being too
long ...
-Original Message-
From: Ben Nadel [mailto:b...@bennadel.com]
Sent: Friday, January 09, 2009 10:58 AM
To: cf-talk
Subject: Re: File
Rename it before giving it back to them. Not idea, but then you can't
control the users OS.
Adrian
-Original Message-
From: Huff, Jerome P. [mailto:jerome.h...@ngc.com]
Sent: 09 January 2009 16:05
To: cf-talk
Subject: RE: File upload and make unique
No,
Coldfusion is ok,
How are you serving it up to the user? If you use CFHeader / CFContent, you
can set the filename:
cfheader name=content-disposition value=attachment;
filename=your_file_name.ext /
--
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User
We all know that cf8 appends a 1 to the end of the file name to make
a unique new name, which works fine, until the file name gets to 255
characters. Is there a way to change this behavior? I have a web
application that users check out/in documents and there are some
documents that are
Assuming you are uploading from a form and the name of the file field is
file, the routine below will do it. You will need to rename the paths as
necessary. This routine will:
1) Rename the file with incremental numbers (1, 2, 3, etc)
2) Ensure the file name uses only standard characters (so it
This is what I was looking for thanks! I will study the code and
integrate into our website. Thanks again!
-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com]
Sent: Friday, January 09, 2009 12:19 PM
To: cf-talk
Subject: RE: File upload and make unique
That's funny, when I hit the URL in IE with Fiddler on, I get the 302,
and then Fiddler throws a warning that the next header to come back is
malformed:
The Server did not return properly formatted HTTP Headers. HTTP headers
should be terminated with CRLFCRLF. These were terminated with LFCRLF.
Robert,
At first glance, I thought this would work, but after looking
closely at the code, it does nothing more that what makeunique already
does, just adds a 1 to the end of the file name if not unique, thus each
time you use the routine, you end up with a file name that increases in
That took care of it. Thanks folks.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
Is there a way to display the current location of a web site dynamically.
Meaning if I was at www.website.com/programs/water/cooling.cfm that location
bar would look like Home - Programs - Water - Cooling and each one would link
back to that location.
Thanks
Keith
I don't think the tree is going to work for you the way you're hoping...
In the past I remember being able to specify a query in cftreeitem with
id and parent and having it automatically assign all the sub-nodes the
way I wanted, but I can't seem to get that to work now on CF8 with a
single
I don't think the tree is going to work for you the way you're hoping...
In the past I remember being able to specify a query in cftreeitem with
id and parent and having it automatically assign all the sub-nodes the
way I wanted, but I can't seem to get that to work now on CF8 with a
single
I'm hoping someone has an easy answer for this:
Two options:
1) Put the new Spry.Widget.CollapsiblePanel() call inside the loop. One call
for each panel
2) Use this custom tag:
http://www.massimocorner.com/coldfusion/custom_tag/sprycollapsible.zip
Massimo Foti,
Working with some old code and found this.can't seem to find a reference via
adobe.com or google or books. Is it old or am I just missing something.
It does work.
cfif isthere.recordcount
Seems a clean way to check.does anyone use this?
Mark
Don't do that. What's happening is that the number
(isthere.recordcount) is being implicitly converted to a boolean for
the CFIF to process. Implicit conversion where the destination type
is something besides String is almost always the devil, end even if
it's String it's still the devil
isthere would be a variable reference to a query object with that
name. recordcount is an attribute of a query object.
isthere.recordcount would evaluate to a numeric of 0 or greater. If 0,
it would evaluate in a boolean to false. Otherwise it would evaluate
as true.
No mystery here. Or am I just
Duh. Missed that. There sure is a query named isthere. I thought
isthere.recordcount was a function of some kind.
-Original Message-
From: Kris Jones [mailto:kris.jon...@verizon.net]
Sent: Friday, January 09, 2009 2:58 PM
To: cf-talk
Subject: Re: anybody see this before?
isthere
Yes, I do it, and disagree with Barney on implicit conversion always being evil.
There are functions where implicit conversion shouldn't be used: DateCompare(),
Max(), etc - those ones should be compared against the expected value.
But when the boolean conversion is known and unambigious -
thanks. I wasn't able to find a query mechanism either.
the tree displays/works fine, but the app build process isn't right..
Right... that's the reason why I was headed for using a query to build
the tree, because in theory if you give it id/parent it should be able
to build all the
isthere would be a variable reference to a query object with that name.
Also, it is probably worth pointing out that isthere is an awful name to use
for a query variable, and it should be changed to something more meaningful.
(Though without seeing the original code it's not possible to know the
Is there a way to display the current location of a web site
dynamically. Meaning if I was at
www.website.com/programs/water/cooling.cfm
that location bar would look like Home - Programs - Water - Cooling
and each one would link back to that location.
There's not any way to do that within
Yes. What you want is commonly called breadcrumbs, and there are a variety of
ways to implement this depending on how your website is setup.
Probably a good idea to google for coldfusion breadcrumb and have a look
through the examples/tutorials that brings up.
There are functions where implicit conversion shouldn't be used:
DateCompare(), Max(), etc - those ones should be compared against the
expected value.
But when the boolean conversion is known and unambigious - Query.RecordCount,
Len(), ArrayLen(), find(), etc - it is perfectly acceptable
And I'll chime in on Peter's side. I like boolean shortcut evaluation
and consider it in the same class as well known shortcuts for things
like autoincrement operator (i++). I can understand those that argue
for explicit comparisons and there is certainly nothing wrong with it.
But yeah, its just
Barney Boisvert wrote:
Don't do that. What's happening is that the number
(isthere.recordcount) is being implicitly converted to a boolean for
the CFIF to process. Implicit conversion where the destination type
is something besides String is almost always the devil, end even if
it's String
Yes, but in your example, isSuperUser will probably only contain boolean
values.
query.recordCount will not contain typical boolean values.
In the case of query.recordCount, FALSE=[0] and TRUE=[everything else].
I've done it both ways. query.recordCount gt 0 tends to add a bit
more explanation
thanks. I wasn't able to find a query mechanism either.
the tree displays/works fine, but the app build process isn't right..
Right... that's the reason why I was headed for using a query to build
the tree, because in theory if you give it id/parent it should be able
to build all the
yeh on the XSLT, I spent quite some time trying to use XSLT to convert some
non-XML data to XML, but it doesn't support recursion, yeow!.
First, XSL does support recursion just fine:
http://www.ibm.com/developerworks/xml/library/x-xslrecur/
Second, I'm not sure what you mean by convert
yeh on the XSLT, I spent quite some time trying to use XSLT to
convert some non-XML data to XML, but it doesn't support recursion,
yeow!.. didn't take much to in CF at all.
but you MAY have given me a pointer.. maybe I can create my OWN
cftree/query type tag to generate the stuff inline..
RE: Barney,
I disagree. I find implicit boolean conversions to be cleaner and easier to
read (and are a feature of the language).
But, furthermore, the implicit boolean conversion says even more about the
statement than any comparision. If you see:
cfif query.RecordCount
this implies that
yeh on the XSLT, I spent quite some time trying to use XSLT to
convert some non-XML data to XML, but it doesn't support recursion,
yeow!.
First, XSL does support recursion just fine:
http://www.ibm.com/developerworks/xml/library/x-xslrecur/
Second, I'm not sure what you mean by
@Peter, I agree. Implicit or not, I find no issue with assuming that zero is
false and any other value is true. That's been true in every DB I've used,
whether the true is 'true' or '1' or '-1', the false is always '0' and my code
is generally single use at any rate.
I've never had any difficulty getting XSL to handle recursion, but like
Dave Watts mentioned, it won't help you convert from non-XML data to XML.
For that you need to roll your own code, which I'm guessing is what
you're describing in the 2nd paragraph here. Yeah, your function can be
used to
XSL supports FUNCTION recursion, but NOT data isolation. variables
are in the context of the xpath path, and are NOT hidden on function
recursion. (ie you have to be done with the variables, they will NOT
survive. (I have a nice xslt that demonstrates the problem clearly)..
I'd be interested
Hi All,
I am reviewing CF and working on a small site to get my skills back up to
par.
Here is what I have:
CFSET theSQL = SELECT queryName, title, content FROM content WHERE
queryName = '#URL.queryName#'
cfquery name=getContent datasource=indie#theSQL#/cfquery
I am reviewing CF and working on a small site to get my skills back up to
par.
Here is what I have:
CFSET theSQL = SELECT queryName, title, content FROM content WHERE
queryName = '#URL.queryName#'
cfquery name=getContent datasource=indie#theSQL#/cfquery
CFOUTPUT#theSQL#/CFOUTPUT
What's wrong with this?
cfform name=myFORM action=myaction.cfm method=post
cfinput type=text
name=thisGROUP
value=
autosuggest=#ValueList(allGROUPS.thisGROUP)#
/cfform
#ValueList(allGROUPS.thisGROUP)# is verified and only contains about 10
items. But, typing any
Ben Forta's example doesn't work either! #ValueList(data.artname)#
displays fine outside the cfinput.
!--- Get data ---
cfquery datasource=cfartgallery name=data
SELECT artname
FROM art
ORDER BY artname
/cfquery
!--- The form ---
cfform
Art:
!--- Populate auto-suggest control ---
cfinput
OK, this seems a server config issue maybe? Help?
Probably. Do you have a /CFIDE directory (or virtual directory) on
your web server? Can you get to http://www.yourserver.com/CFIDE?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber
Hi Dave,
Thanks for the reply.
Second, and more importantly, using raw data from the browser like
that is a serious security vulnerability. Whenever you use unsafe data
within a query, you should build a prepared statement using the
CFQUERYPARAM tag:
Les,
Check if you have /CFIDE mapped as virtual directory under your
webroot. If it's already there or mapped, check for permissions.
ColdFusion will try to include following javascript and CSS files:
script type=text/javascript
Probably. Do you have a /CFIDE directory (or virtual directory) on
your web server? Can you get to http://www.yourserver.com/CFIDE?
Nope
OK, I've access to the CF Admin, and I know just enough to get myself
into trouble! What needs adjusting?
Sagar Gupta wrote:
Les,
Check if you have /CFIDE mapped as virtual directory under your
webroot. If it's already there or mapped, check for permissions.
OK, here's what I see in the mapping panel right now:
Logical: /CFIDE
Directory: C:\inetpub\wwwroot\CFIDE
For a specific site folder,
Adrian Lynch wrote:
I'd do it with jQuery. Here's a sample if you're using tables:
Oooo - that works a charm! Jezz, why haven't I been doing this before!!!
Thanks!!!
~|
Adobe® ColdFusion® 8 software 8 is the most important and
It's not going to work with the MAPPING that you create in CF-Administrator.
I'm asking you to either create a virtual directory in your Webserver or
else simply copy the files to your webroot.
Good luck.
Sagar Gupta
Adobe ColdFusion MX 7 Advanced Developer
www.codecurry.com
Co-founder,
Thanks for the link. I see that you authored this article. Very well
laid out. I understand SQL Injection and qhy to use CFQUERYPARAM.
What I did not see in the article was how to take a CFSET statement
that builds a SQL String and put CFQUERYPARAMS into it and make it
work.
Like:
cfset
Do you have access to the actual web server admin? (not the cf admin)
If so, what web server are you running?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Ian Rutherford wrote:
Do you have access to the actual web server admin? (not the cf admin)
If so, what web server are you running?
IIS 7 I believe. Yup, I've got complete access to anything on the server.
~|
Adobe®
53 matches
Mail list logo