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® ColdF
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
http://ad.do
> 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:
>
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, eWo
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
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,
> 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?
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:
Remember, NOT to copy everything under /CFIDE folder to your webroot.
You are onl
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:
>
>http://www.adobe.com/devnet/coldfusion/
> 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 vendor
Ben Forta's example doesn't work either! #ValueList(data.artname)#
displays fine outside the cfinput.
SELECT artname
FROM art
ORDER BY artname
Art:
I'm on CF Version 8,0,1,195765
OK, this seems a server config issue maybe? Help?
What's wrong with this?
#ValueList(allGROUPS.thisGROUP)# is verified and only contains about 10
items. But, typing any word from the list into the input does nothing.
(I'll convert this to a CFC once it's working - the real list is much
bigger).
Looking at the generated page sourc
> I am reviewing CF and working on a small site to get my skills back up to
> par.
>
> Here is what I have:
>
>
>
>#theSQL#
>
>#theSQL#
>
> I am getting an error about SQL Statement being invalid:
>
> ...
>
> Notice that PrivacyPolicy has ³² around it..I am not putting it there. If I
> put
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:
#theSQL#
#theSQL#
I am getting an error about SQL Statement being invalid:
11 :
12 : #theSQL#
13 :
14 : #theSQL#
SQLSTATE 42000
SQL
> 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 interes
>
>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 t
@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.
> > 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 b
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:
this implies that there is a strict set
> 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 inl
> 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 non-
>> 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 th
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 explanat
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 Str
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 a
> 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 accept
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.
~~~
> 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 wit
>"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
> 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 sub-n
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 - Query
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" wou
"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 ju
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 sometime
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.
Seems a clean way to check.does anyone use this?
Mark
~~
>> 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
>
>
>Mas
>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 query.
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
~~~
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:
http://www.houseoffusion.
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
leng
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."
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
Assuming
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 i
> 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 ar
How are you serving it up to the user? If you use CFHeader / CFContent, you
can set the filename:
--
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User Group
http://www.bennadel.com
Need ColdFusion Help?
http://www.bennadel.com/Ask-B
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 i
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 upl
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?
http://www.bennadel.com
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
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 (s
>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
red
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 a
53 matches
Mail list logo