RE: CFFILE / CFCATCH

2011-06-30 Thread Andrew Scott
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

RE: loop timing out

2011-06-30 Thread Mark A. Kruger
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

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
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

Re: Resizing a PNG with CFX_Image returns a blank image

2011-06-30 Thread Steve Hicks
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,

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
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

RE: CFFILE / CFCATCH

2011-06-30 Thread Andrew Scott
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]

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
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

Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Dawn Sekel
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

RE: Iphone app

2011-06-30 Thread Rick Faircloth
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

Re: Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Dave Watts
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

Re: Iphone app

2011-06-30 Thread Raymond Camden
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:

RE: Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Dawn Sekel
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

Re: Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Alan Rother
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

Re: Iphone app

2011-06-30 Thread Raymond Camden
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

Re: Iphone app

2011-06-30 Thread Raymond Camden
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

Re: Iphone app

2011-06-30 Thread Raymond Camden
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.

Help with .NET DLL - Again...

2011-06-30 Thread Stefan Richter
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

Re: Iphone app

2011-06-30 Thread Al Musella, DPM
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

Re: Help with .NET DLL - Again...

2011-06-30 Thread Scott Stewart
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,

Re: Help with .NET DLL - Again...

2011-06-30 Thread Leigh
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!

COM error

2011-06-30 Thread daniel kessler
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

Re: COM error

2011-06-30 Thread daniel kessler
Oh, btw it's in CF7. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: COM error

2011-06-30 Thread Alan Rother
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

Re: COM error

2011-06-30 Thread daniel kessler
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.

RE: Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Dawn Sekel
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?

Stupid Question

2011-06-30 Thread Robert Harrison
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.

Re: COM error

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Dan Baughman
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

Re: Stupid Question

2011-06-30 Thread Leigh
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:

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

RE: Stupid Question

2011-06-30 Thread Robert Harrison
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

Re: Win 2008 32/CF 9 hardening after the fact

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Claude Schnéegans
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#

RE: Stupid Question

2011-06-30 Thread Leigh
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

Re: Stupid Question

2011-06-30 Thread Claude Schnéegans
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

Re: ColdFusion to Salesforce.com Web-To-Lead

2011-06-30 Thread Shawn Contreras
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

RE: Stupid Question

2011-06-30 Thread Robert Harrison
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

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Dan Baughman
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

(ot) cfeclipse and indigo

2011-06-30 Thread Michael Dinowitz
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

Re: Stupid Question

2011-06-30 Thread Leigh
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)

RE: Stupid Question

2011-06-30 Thread Andrew Scott
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

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

RE: Stupid Question

2011-06-30 Thread DURETTE, STEVEN J (ATTASIAIT)
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

RE: Stupid Question

2011-06-30 Thread DURETTE, STEVEN J (ATTASIAIT)
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

RE: Stupid Question

2011-06-30 Thread Leigh
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!

Re: Stupid Question

2011-06-30 Thread Dan Baughman
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

Re: Stupid Question

2011-06-30 Thread Stephane Vantroyen
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.

RE: Stupid Question

2011-06-30 Thread Robert Harrison
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

RE: Stupid Question

2011-06-30 Thread Leigh
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 .. ?

RE: Stupid Question

2011-06-30 Thread Robert Harrison
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

Re: Help with .NET DLL - Again...

2011-06-30 Thread Stefan Richter
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

Re: Help with .NET DLL - Again...

2011-06-30 Thread Stefan Richter
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

Re: Help with .NET DLL - Again...

2011-06-30 Thread Stefan Richter
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

Re: ColdFusion to Salesforce.com Web-To-Lead

2011-06-30 Thread Scott Slone
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

RE: Stupid Question

2011-06-30 Thread Leigh
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,

RE: Stupid Question

2011-06-30 Thread Bobby Hartsfield
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,

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Michael Grant
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,

Re: Stupid Question

2011-06-30 Thread Bryan Stevenson
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 =

Re: Stupid Question

2011-06-30 Thread Leigh
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

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Bryan Stevenson
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

Re: Stupid Question

2011-06-30 Thread Russ Michaels
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

Re: Stupid Question

2011-06-30 Thread Leigh
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:

Re: CFFILE / CFCATCH

2011-06-30 Thread Michael Grant
+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:

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
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:

Re: CFFILE / CFCATCH

2011-06-30 Thread morgan l
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

RE: Stupid Question

2011-06-30 Thread Andrew Scott
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

RE: Stupid Question

2011-06-30 Thread Andrew Scott
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-