Jenny, I am going to assume that you have tried to cfdump and abort in the
cfcatch to see what the message contains. Failing that I do know that some
of these messages have hidden characters and will not match even if you try.
I don't have the link handy at the moment, but I did write a blog
I would add that if it's a domain account you can use a login script in the
profile to insure a mapped drive (you can probably do this with a local
account as well). But like others I somewhat prefer the UNC path since it
doesn't depend on something (a login script or local profile) that is
Unless something has changed in recent versions of CF, in addition to
cffile's accept arg, after your /cftry you should always check extension
of file saved to disk and, if illegal, immediately delete file. Reason:
those mimetypes come from end-user's browser and can be
Hey Donnie,
Unfortunately I never found a solution to the problem.
Fortunately in my case, the system was for a photo gallery, so most images will
be JPGs, so hopefully it shouldn't be a big issue.
It'd be great to find a full solution though if you come across anything.
Steve
Hi Steve,
Hi John,
Thanks for the reply.
Yes, I dumped the results of the cfcatch.
Strangely, the cflocation is working, but the session.sysmessage is not
working. So although the use correctly gets returned to the calling page
I'm unable to let them know why.
If you have a link to your blog I'd be
Jenny it was me not John, anyway here is the link.
http://www.andyscott.id.au/2010/9/19/ColdFusion-and-the-expression-does-not-
contain-is-broken
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Perhaps do this...?
cflocation url=folder-view.cfm addtoken=true
On Thu, Jun 30, 2011 at 9:10 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
Hi John,
Thanks for the reply.
Yes, I dumped the results of the cfcatch.
Strangely, the cflocation is working, but the
Is it possible to go back after the fact and harden a server into a production
machine? Or do we need to start from scratch.
We have a Windows 2008 32 bit server (clean install/patches applied) installed
with CF9 out of the box in the C:\Inetpub default directory. We need to
quickly move
Hi, Ray... I appreciate the work you did in putting together
the jQuery Mobile Quick Start Guide, but it's really just a
more limited version of the Intro to jQuery Mobile found here:
http://www.ibm.com/developerworks/web/library/wa-jqmobile/
You can see the example below (attempting to work
Is it possible to go back after the fact and harden a server into a
production machine? Or do we need to start from scratch.
Yes, it's possible to do this. But the big questions depend on how
exactly you plan to use this machine in production. Public web server?
Will it participate in a
On Thu, Jun 30, 2011 at 10:29 AM, Rick Faircloth
r...@whitestonemedia.com wrote:
Hi, Ray... I appreciate the work you did in putting together
the jQuery Mobile Quick Start Guide, but it's really just a
more limited version of the Intro to jQuery Mobile found here:
It is a dedicated web server -- no other services or applications. It has no
other services running on it except DSN connections in Coldfusion Administrator
to our various SQL server boxes and a connection to our Microsoft exchange
server for handing email in CF Admin. It is a Public site
One important thing is to make sure it's locked down behind a proper
firewall of course.
That will go a long way towards making it secure. Only open ports like 80
and 443
Of course that's just one important step.
Oh, also make sure that the CF Admin is not publicly available
=]
On Thu, Jun
So this an example. I'm not 100% sure it is the BEST example. I listen
for the pagecreate event, then bind to my form's submit. Running
return false prevented JQM from doing it's crap.
!DOCTYPE html
html
head
titleForm - Example One/title
link rel=stylesheet
Ugh. Screw that. Just do this:
To prevent form submissions from being automatically handled with
Ajax, add the data-ajax=false attribute to the form element.
Much easier. ;)
On Thu, Jun 30, 2011 at 10:49 AM, Raymond Camden
raymondcam...@gmail.com wrote:
So this an example. I'm not 100% sure
I should clarify - and sorry for so many emails. I believe my event
handler was 'better' - the pagecreate event - and you still want the
form submit handler too. But if you add the data-ajax=false, you
well shoot, you still want to prevent default form actions anyway. ;)
Well, I'd do both.
Hi guys,
I could use some advice. I'm trying to use some methods from a .NET assembly.
I'm instantiating it like this:
cfset DLL = #Expandpath('./')#\Aspose.Words.dll
cfobject type=.NET name=doc class=Aspose.Words.Document assembly=#DLL#
If I dump the doc variable I see all the assembly
thanks!
I got it..
I just put together a simple test..
http://virtualtrials.com/iphone/apps/demos/virtualtrials/#homehttp://virtualtrials.com/iphone/apps/demos/virtualtrials
only the first choice works so far.. it is a simple look up a
doctor's phone number.. will fill in the rest later but
Just out of curiosity,
1) What version of CF and
2) 32 bit or 64 bit OS
3) 32 bit or 64 bit dll
If it's CF 9.01 you need to update the .net connector as well, and
some manual configuration to get it to work..
Secondly there are issues with 32 bit dll's running in a 64 bit environment.
On Thu,
cfset file = #Expandpath('./')#\test1.doc
cfset doc.init(#file#)
Does #file# actually resolve to a string or a structure? Historically #file#
was a reserved word like CFFILE.
~|
Order the Adobe Coldfusion Anthology now!
I'm receiving this error:
An exception occurred when instantiating a Com object.
The cause of this exception was that: java.lang.RuntimeException: Can not use
native code: Initialisation failed.
The code making the call is here:
CFOBJECT action=Create type=COM class=APToolkit.Object name=PDF
Oh, btw it's in CF7.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
When was the last time you fully re-booted the server?
I've seen this type of error before and a re-boot sometimes clears it.
FWIW - I'm not sure I'm right about this one, so take it with a grain of
salt...
=\
On Thu, Jun 30, 2011 at 10:20 AM, daniel kessler dani...@umd.edu wrote:
Oh, btw
When was the last time you fully re-booted the server?
I don't know. The server is in another part of the country. This morning, we
asked them to restart it, though I've not received a reply. So we are going to
try that method.
On the new website we are bringing up the CF Administrator is available if you
go to our new domain name and type in the CFIDE directory in the URL.
If I follow the recommendations from Peter at the link below -- would that be
all we need to do on a Windows 2008 server?
If I have these two lines of code:
cfparam name=capability_detail.capability_id default=0
cfset cur_cap=#capability_detail.capability_id#
How should I ever get this message on the second line:
Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL
WHAT?
Robert B.
it may also be worth rebuilding the COMponents if you have that option.
On Thu, Jun 30, 2011 at 6:32 PM, daniel kessler dani...@umd.edu wrote:
When was the last time you fully re-booted the server?
I don't know. The server is in another part of the country. This morning,
we asked them
I've seen stuff like this happen if capability_detail.capability_id had been
assigned to a function that didnt return a value.
For some reason its defined but in some null state.
On Thu, Jun 30, 2011 at 11:37 AM, Robert Harrison
rob...@austin-williams.com wrote:
If I have these two lines of
When the error occurs, is #capability_detail# defined?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
well first you don't need the #'s in the cfset
second cfparam may be creating a variable instead of a struct, this happens
in certain situations with older versions of CF.
so try this
cfparam name =capability_detail default=#StructNew()#
cfparam name=capability_detail.capability_id default=0
It is assigned to a function that returns a query. Sometime the query get that
value and sometimes it doesn't... but if CF is functioning correctly the param
setting should initialize that value even though it not returned from my
function... or so it seems.
Robert B. Harrison
Director of
the quick and simple solution is to password protect the administrator
folder with web server authentication, or restrict it's access only to
certain IP's or only to localhost and remote into the machine to use it.
Russ
On Thu, Jun 30, 2011 at 6:36 PM, Dawn Sekel
It may depend on the code between the two lines
cfparam name=capability_detail.capability_id default=0
cfset cur_cap=#capability_detail.capability_id#
For instance, this works:
cfparam name=capability_detail.capability_id default=0
cfset cur_cap=#capability_detail.capability_id#
Sometime the query get that value and sometimes it doesn't...
Do you mean column? Query objects are not the same as structures. I do not
think you can just create a column that way. ie This fails
cfset capability_detail = queryNew(ID)
cfparam name=capability_detail.capability_id default=0
It is assigned to a function that returns a query.
Oh, I think you cannot assign a value to a column name in a query, neither with
CFSET, neither with CFPARAM. You must use querySetCell ()
~|
Order the Adobe Coldfusion
Resending since my last post was too long. The CFC is a little over my head.
Below is the HTML generated by SalesForce.com Web-To-Lead. It works well by
itself but not in the ColdFusion CFFORM then passing the info to my
insert2a.cfm page (shown below). I really think the problem is
Just asking the question is bad... the line
cfif IsDefined(capability_detail.capability_id)
Gives me the error
Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL.
Robert B. Harrison
Director of Interactive Services
Austin Williams
125 Kennedy Drive, Suite 100
what is CAPABILITY_DETAIL at the point the error occurs
a struct, a query, etc ?
On Thu, Jun 30, 2011 at 6:58 PM, Robert Harrison rob...@austin-williams.com
wrote:
Just asking the question is bad... the line
cfif IsDefined(capability_detail.capability_id)
Gives me the error
You would ask it like this:
cfif IsDefined('capability_detail.capability_id')
On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison
rob...@austin-williams.com wrote:
Just asking the question is bad... the line
cfif IsDefined(capability_detail.capability_id)
Gives me the error
Eclipse Indigo (3.7) has been released and I was wondering if anyone has
tried either cfeclipse or cfbuilder on it? I'm using cfbuilder at home but
at one client I'm on cfeclipse and I'm wondering if upgrading would be
useful. Any thoughts?
Thanks
Just asking the question is bad... the line
cfif
IsDefined(capability_detail.capability_id)
Gives me the error
Because you forgot the quotes around the variable name. But as a few people
have asked what is the value of capability_detail _not_
capability_detail.capability_id)
Actually without getting into a flame war with Dave and others, it should be
better to use
cfif structKeyExists(capability_detail, 'capability_id')
/cfif
And you should avoid using isDefined().
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Dan Baughman
and the reason being that IsDefined() will check EVERY single variable scope
for the existence of that variable.
On Thu, Jun 30, 2011 at 7:11 PM, Andrew Scott andr...@andyscott.id.auwrote:
Actually without getting into a flame war with Dave and others, it should
be
better to use
cfif
Why avoid isDefined()?
-Original Message-
From: Andrew Scott [mailto:andr...@andyscott.id.au]
Sent: Thursday, June 30, 2011 2:12 PM
To: cf-talk
Subject: RE: Stupid Question
Actually without getting into a flame war with Dave and others, it should be
better to use
cfif
But if you include the scope in the call then you would be fine right?
I SCOPE EVERYTHING!!!
-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Thursday, June 30, 2011 2:18 PM
To: cf-talk
Subject: Re: Stupid Question
and the reason being that IsDefined() will
Actually without getting into a flame war
I wanted to find out what type of object capability_detail is first .. and
tackle the isDefined / structKeyExists debate later ;)
~|
Order the Adobe Coldfusion Anthology now!
I thought of that, but then wasn't sure how that would behave
if capability_detail was a query.
On Thu, Jun 30, 2011 at 12:11 PM, Andrew Scott andr...@andyscott.id.auwrote:
Actually without getting into a flame war with Dave and others, it should
be
better to use
cfif
Maybe a stupid question too, but why is it better to use structkeyexists() than
isdefined() ? Both will check if the given variable exists right? I don't get
it, is it bound to performance or so?
I thought of that, but then wasn't sure how that would behave
if capability_detail was a query.
To answer the question, capability_detail is a query. It returns one and only
one record... so I personally see no reason to avoid IsDefined in this case.
And thanks for the correction on my syntax error. That was helpful and the
code is working now. When I'm heavily focused on the logic
capability_detail is a query.
It returns one and only one record...
Out of curiosity, what condition was your cfparam trying to prevent?
1) query contained 0 records
2) query did _not_ contain the column capability_id
..
?
Out of curiosity, what condition was your cfparam trying to prevent?
The URL structure works like this:
http://blah-blad.com/services-detail.cfm/bariatric-and-wellness (which
is a high level overview category record only)
or
Thanks,
the server is 9.01 and I already have a very similar other DLL from the same
company working on the same machine. I believe I updated the .NET connector
previously after having some issues first time round.
The OS is 64bit Win 2008. I'm not sure about the DLL itself, it was not marked
Good point, I'll try with a different naming convention.
Regards
Stefan
On 30 Jun 2011, at 18:10, Leigh wrote:
cfset file = #Expandpath('./')#\test1.doc
cfset doc.init(#file#)
Does #file# actually resolve to a string or a structure? Historically #file#
was a reserved word like
BINGO!
I think that was indeed the issue. I renamed the file variable and bam, no more
error.
Thanks very much. Man, I love this list.
Stefan
On 30 Jun 2011, at 21:41, Stefan Richter wrote:
Good point, I'll try with a different naming convention.
Regards
Stefan
On 30 Jun
Shawn-
Here is rough page code based on what I have done in the past.
First: Insert your data into your table. I use standard SQL insert code
instead of cfinsert - I find that it works better for me (YMMV)
Second: post your data to the web-to-lead form
Third: make sure you are passing all the
The cfparam tag was trying to set default values (like
zero) for columns that may not always be returned from the
query. That did not work, but the IsDefined did work.
So what code did you end up using to set this default? I ask because nothing
I am envisioning works under CF9. No error,
Yes, performance.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Stephane Vantroyen [mailto:s...@emakina.com]
Sent: Thursday, June 30, 2011 2:56 PM
To: cf-talk
Subject: Re: Stupid Question
Maybe a stupid question too,
As I said earlier, IsDefined() will search every single scope for a var with
the name you you specify, StructKeyExists() will only look in the specified
struct.
On Thu, Jun 30, 2011 at 7:55 PM, Stephane Vantroyen s...@emakina.com wrote:
Maybe a stupid question too, but why is it better to
that is probably the cause of your problem them, you cannot use cfset or
cfparam to set a value in a query.
On Thu, Jun 30, 2011 at 8:38 PM, Leigh cfsearch...@yahoo.com wrote:
capability_detail is a query.
It returns one and only one record...
Out of curiosity, what condition was your
Also, if you have a variable (not a struct) named
capability_detail.capability_id
isDefined will return true, despite the fact that it's not a key in the
structure. StructKeyExists is better IMO.
On Thu, Jun 30, 2011 at 5:29 PM, Russ Michaels r...@michaels.me.uk wrote:
As I said earlier,
Well there is a slight nuance there.you can use CFET to set the
value of a column in a specific row of a querybut it's sort of
cheating because you do it using functionsyou can't set it directly
as was shown in this thread.
cfset myQuery = queryNew(column1)
cfset x =
Well there is a slight nuance there.
Yep. I am aware of that option .. but could not see your code from here ;)
Mystery solved. (Thanks for taking the time to satisfy my curiosity :)
-Leigh
~|
Order the Adobe
That is just being Pedantic Bryan :-)
clearly it was meant you cannot do
cfset query.column = value
On Thu, Jun 30, 2011 at 10:48 PM, Bryan Stevenson
br...@electricedgesystems.com wrote:
Well there is a slight nuance there.you can use CFET to set the
value of a column in a specific
Yes I was ;-)
...and don't forget to read my whole posthere's the piece you
missed...
but it's sort of
cheating because you do it using functionsyou can't set it directly
as was shown in this thread.
So I already stated I was being a toolI try and do that so others don't
every needs a good tool :-)
On Thu, Jun 30, 2011 at 11:04 PM, Bryan Stevenson
br...@electricedgesystems.com wrote:
Yes I was ;-)
...and don't forget to read my whole posthere's the piece you
missed...
but it's sort of
cheating because you do it using functionsyou can't
Yes I was ;-)
Fortunately some of us have a good filter for screening that stuff out ;)
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
+1.
cfdump var=#cfcatch#/
cfabort /
Also, you can drop the extraneous cfoutput around the cffile. Variables are
automatically outputted if used as an attribute value in a cftag and wrapped in
#.
Sent from my iPhone.
On 2011-06-30, at 2:56 AM, Andrew Scott andr...@andyscott.id.au wrote:
Thanks Michael,
I looked for the dump first.
The only problem is the session variable not being set inside the cfcatch.
I'm sure I am catching the error for the cflocation to trigger.
Jenny
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: 01 July 2011 00:04
To:
Looks like you're the victim of scenario #2 in this KB article:
http://kb2.adobe.com/cps/181/tn_18171.html
On Thu, Jun 30, 2011 at 6:57 PM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
Thanks Michael,
I looked for the dump first.
The only problem is the session variable not
Ok now that I can see what you are doing, here is what I would do.
In the code that creates the query, if the relationship is empty then you
could write the code there to do the check and set it to the value you want,
and then return the query. Hell if you wanted better performance you can
even
Yes but the code should be written
cfset myQuery = queryNew(column1)
cfset queryAddRow(myQuery)
cfset querySetCell(myQuery,column1,blah blah blah)
Otherwise you are creating a variable for no specific purpose.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
71 matches
Mail list logo