The purpose of my Form to provide a report completed training. I am trying to
validate that the Course Hours of the training is within a minimum and maximum
range of hours. I have a select field for Select_Course. When the user
selects the course name - I want to remember the minimum and
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
When working with structures nested that deeply you 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:
Cheers Andy -
That's fine if I want to check the struct exists, but I'm trying to directly
test against the value of that path (which in this case is a boolean)...?
T
On 14 June 2010 15:25, Andy Matthews li...@commadelimited.com wrote:
When working with structures nested that deeply you
nevermind - found the solution!
ended up with:
cffunction name=checkPermission
cfargument name=path
cfif IsDefined('session.currentUser.permissions.'
arguments.path)
cfif evaluate('session.currentUser.permissions.'
arguments.path)
Hi All,
I've just upgraded from MX6.1 to CF8 and have noticed a couple of differences
with CFChart. My chartseries line graph data consists of numeric readings
taken every 2 hours each day. In MX6.1, I display the x-axis labels for each
day and the vertical grid-lines correspond to each
Evaluate is slow - comparatively. It isn't horrible though. The main
reason I will complain about evaluate is when it isn't strictly
necessary. Technically it isn't in your case. You could break up the
string into parts and check the existence of each - but I think your
code is fine (and a hell
Bugged and marked fox resolution in 9.0.1
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83328
~|
Order the Adobe Coldfusion Anthology now!
Wondered if anyone else had experienced this. I have an IN clause query which
runs in 500ms if I use cfqueryparam list=true. This same query runs in less
than 10ms if I pass the values directly (e.g. 'value1', 'value2', etc...).
I've Googled around a bit and have the impression it's an issue
Can you provide more of a snippet of code?
Jim Eisenhauer
On Mon, Jun 14, 2010 at 9:54 AM, Matthew Lesko m.le...@verizon.net wrote:
Wondered if anyone else had experienced this. I have an IN clause query
which runs in 500ms if I use cfqueryparam list=true. This same query runs
in less
Ok, got it working.
This helped
http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-advanced/12032/Read-write-files-on-shared-folder-in-cluster
Needed to add both the storage user and administrator to the jrun service login.
Ok, got it working.
This helped
http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-advanced/12032/Read-write-files-on-shared-folder-in-cluster
Needed to add both the storage user and administrator to the jrun service login.
We're trying to get our IIS7 webserver to serve cfm files that are
**Please note I'm doing this off the top of my head. I don't have an editor
handy.
Well say you set up your select value to be a list with a pipe delim. Say
you have a course with min 4 and max 10 hours.
option value=4|10Super Awesome Course #1/option
In your onChange you set a function call:
Hi everyone,
I have encountered an issue that can only be described as extremely bizarre,
and am curious if anyone has encountered it before. I am generating a PDF
using DDX instructions, merging a bunch of pdfs together, creating a cover page
using CFDocument, adding bookmarks, the whole
Smells like a bug for sure. What version of CF?
On Mon, Jun 14, 2010 at 4:00 PM, adam sontag ajpi...@ajpiano.com wrote:
Hi everyone,
I have encountered an issue that can only be described as extremely bizarre,
and am curious if anyone has encountered it before. I am generating a PDF
Still on 8.0.1. Nothing in the second hotfix for 8 addressed anything about
this, and I haven't had a chance to test this on 9 yet.
Smells like a bug for sure. What version of CF?
On Mon, Jun 14, 2010 at 4:00 PM, adam sontag ajpi...@ajpiano.com
wrote:
Hi everyone,
I have
That's all I can suggest for now - if it works in 9 it may be worth
the price of the update.
On Mon, Jun 14, 2010 at 4:19 PM, adam sontag ajpi...@ajpiano.com wrote:
Still on 8.0.1. Nothing in the second hotfix for 8 addressed anything about
this, and I haven't had a chance to test this on 9
Thank you so much Michael -- that worked! Here is the finished code:
if(document.getElementById('course_list').value.length 1) {
err = err + \n Please select a course from the list.
}
else {
var cHours = document.getElementById('course_list').value;
var cHourVal =
Hi all,
Wondering if anyone has changed the file extension to which ColdFusion
engine is associated. A client of mine is asking for this, and I'm not
seeing any big problem with it myself. Wondered what road-blocks,
gotchas, etc., are out there that I'm just not thinking of right now.
The client
Wondering if anyone has changed the file extension to which ColdFusion
engine is associated. A client of mine is asking for this, and I'm not
seeing any big problem with it myself. Wondered what road-blocks,
gotchas, etc., are out there that I'm just not thinking of right now.
The client is
Thanks Dave,
I do know that it can done -- pretty easily. Just looking for the
gotchas. The hint about not mapping static file extensions is
appreciated. In fact, just such an extension was requested, and I
recommended against it. But...
Cheers,
Kris
On Mon, Jun 14, 2010 at 7:05 PM, Dave
I do know that it can done -- pretty easily. Just looking for the
gotchas. The hint about not mapping static file extensions is
appreciated. In fact, just such an extension was requested, and I
recommended against it. But...
Well, this sounds like it's not your idea, but rather your client's
I've seen this behavior with long lists. The solution I've used was to
write a MSSQL UDF that would convert the param'ed value into a table
variable--which strangley resolves the issue.
-Dan
On Monday, June 14, 2010, Matthew Lesko m.le...@verizon.net wrote:
Wondered if anyone else had
Another thing to try would be (off your first attempt to resolve)...
PDF source=Cover bookmarkTitle=#Replace('ucase('Co')','O','o','all')#ver
Page/
What happens just passing as a string with no Ucase()?
Like...
cfset bookmarkTitle = 'Cover Page'
PDF source=Cover bookmarkTitle=#bookmarkTitle#/
On Mon, Jun 14, 2010 at 4:55 PM, Kris Jones wrote:
Hi all,
Wondering if anyone has changed the file extension to which ColdFusion
engine is associated. A client of mine is asking for this, and I'm not
seeing any big problem with it myself. Wondered what road-blocks,
gotchas, etc., are out
We have a client that is looking to expand into Switzerland or Germany. Client
wants to have his CF application hosted in Europe.
Could I get some recommendations on CF Hosting across the pond?
Thanks,
Dave Hatz
~|
Order
On Mon, 2010-06-14 at 19:17 -0400, Dave Watts wrote:
I've never seen any compelling justification for doing this.
I've seen a client use it to password protect HTM/HTML files using the
benefits of good old application.cfm (being that it runs before any CF
file is run or those extensions
Client is interested in obscuring that it's CF. They know that it's
not fool-proof by any means. They don't have anything against CF,
obviously. If they were running a php site, they'd want to obscure
that too.
Cheers,
Kris
On Mon, Jun 14, 2010 at 8:03 PM, Bryan Stevenson
Is the site structured well? HREFs using something like
linkTo(your/link) vs. your/link?
:Den
--
I believe firmly that in making ethical decisions, man has the
prerogative of true freedom of choice.
Corliss Lamont
On Mon, Jun 14, 2010 at 6:47 PM, Kris Jones wrote:
Client is interested in
There are other ways such as using SES urls or not referencing file names
directly. Reference the folder only and make sure that index.cfm is the
default. URL's can be along the lines of mysite.com/key/value
Again this only obscures that ColdFusion is being used.
Why does the client want
Client is interested in obscuring that it's CF. They know that it's
not fool-proof by any means. They don't have anything against CF,
obviously. If they were running a php site, they'd want to obscure
that too.
That only obscures things for regular users. Any scan tool will still
fingerprint
Centinated (Switzerland) http://www.centinated.ch/en/
Flint Hosts (UK) http://www.flinthosts.com
And if you don't care whether they officially support CF or not,
Rackspace UK http://www.rackspace.co.uk
Andy
On 15 June 2010 00:54, Dave Hatz daveh...@hatzventures.org wrote:
We have a client
We have a jquery dialog that contains a cfform with the CF rich text
editor. We're trying to populate it with theColdFusion.RichText.setValue(()
function, but we keep getting an error.
I've verified we're calling the setValue() function properly, and if I make
the div that contains the form not
I've seen a client use it to password protect HTM/HTML files using the
benefits of good old application.cfm (being that it runs before any CF
file is run or those extensions mapped to be run via CFmeaning you
can use standard CF built security for non-CF files).
But once you do that,
It raises the question of whether there exists a set of instructions
to follow that will achieve the goal of completely masking the fact
that you are running ColdFusion, even from fingerprinting scan tools.
I have never seen any whitepapers on this and would assume that none
exist. Some major Web
No problem Dawn.
One thing I did notice is that your first if statement doesn't trim the
value before assessing the length. It would be a good practice to trim this
value as JS doesn't ignore whitespace.
Also, why not change:
err = err + \n Please...
to
err += \n Please...
On Mon, Jun 14,
It raises the question of whether there exists a set of instructions
to follow that will achieve the goal of completely masking the fact
that you are running ColdFusion, even from fingerprinting scan tools.
I have never seen any whitepapers on this and would assume that none
exist. Some
If this is MS SQL server you have the BETWEEN function.
-1
BETWEEN... *barf*
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
On 15/06/2010 10:25, Scott Brady wrote:
The success function then populates the form (including the text area)
i assume you are talking about $.ajax() [or similar] jquery success
callback?
that one will fire before the cf's richtext area is fully ready, thus
your error.
what you can do, is
39 matches
Mail list logo