RE: [ACFUG Discuss] CF Submits & Function Behavior

2011-04-28 Thread Troy Jones
There have been many times when I though I had initiated variables/UDF's on the 
action side of a file when, in fact, I had not.


Assuming that everything is in order with what Charlie has suggested,  if I'm 
seeing something that looks like code is never being run, the first thing I'd 
be looking for is to make sure I've put it in a place where it can be executed. 
If I'm not seeing any error being thrown or some other kind of output, it's 
usually something fairly simple.like referring to something in the form 
scope that yields an unexpected result or testing for an incorrect value.

Without seeing specific code, it'd be hard to say. But I'd start simple. :)

Hope that helps.

I can't

[cid:image001.jpg@01CC05E2.4B5919A0]
___

Troy Jones  |  Developer/Support Technician  |  Dynapp Inc  |  1-800-830-5192  
ext. 603  |  dynapp.com  |  
facebook.com/dynapp

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Charlie Arehart
Sent: Thursday, April 28, 2011 7:05 PM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] CF Submits & Function Behavior

By the "blocks of code that fires on the submit back to the page", let's be 
clear: do you mean something on a CFM page? That is called as the ACTION of the 
form? And is there any code on that page that might be set to run differently 
based on what the current cgi.request_method value is? If so,  you'd want to do 
it in code that runs if the request_method is "post". Finally, another easy 
mistake to make is that the FORM you are submitting may not have Method="post". 
In that case, it defaults to Method="get", and you may therefore be processing 
the page differently because of that.

If that doesn't help, share some more info and perhaps we can help.

/charlie

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Matthew Nicholson
Sent: Thursday, April 28, 2011 6:46 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] CF Submits & Function Behavior

Evening All!

So, I'm trying to make my life a little bit easier with an auditing module on 
this application.

I'm a little be confused though with a behavior I'm experiencing on a submit 
post back to the page. (The user clicks a buttons and we reload the page and 
perform a bunch of logic.)

Here's the behavior:

I've written my function and tied to a stored procedure. If I declare it upon 
load and call it immediately, everything works swimmingly.
However, if I try to make the same function call in one of the blocks of code 
that fires on the submit back to the page, the function doesn't fire (nor 
crash).

Where I'm feeling quite n00bish is the same pattern is being employed on the 
page for a different module and I'm not seeing what's the issue.

Any suggestions would be greatly appreciated!

Matthew R. Nicholson
SolTech, Inc.
Cell: 770-833-5326
www.soltech.net
To find what you seek in the road of life, the best proverb of all is that 
which says: "Leave no stone unturned."
  ~Edward Bulwer Lytton


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-


No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3602 - Release Date: 04/28/11

-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-



-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-


<>

RE: [ACFUG Discuss] CF Submits & Function Behavior

2011-04-28 Thread Charlie Arehart
By the "blocks of code that fires on the submit back to the page", let's be
clear: do you mean something on a CFM page? That is called as the ACTION of
the form? And is there any code on that page that might be set to run
differently based on what the current cgi.request_method value is? If so,
you'd want to do it in code that runs if the request_method is "post".
Finally, another easy mistake to make is that the FORM you are submitting
may not have Method="post". In that case, it defaults to Method="get", and
you may therefore be processing the page differently because of that.

If that doesn't help, share some more info and perhaps we can help.

 

/charlie

 

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Matthew
Nicholson
Sent: Thursday, April 28, 2011 6:46 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] CF Submits & Function Behavior

 

Evening All!

 

So, I'm trying to make my life a little bit easier with an auditing module
on this application. 

 

I'm a little be confused though with a behavior I'm experiencing on a submit
post back to the page. (The user clicks a buttons and we reload the page and
perform a bunch of logic.) 

 

Here's the behavior:

 

I've written my function and tied to a stored procedure. If I declare it
upon load and call it immediately, everything works swimmingly.

However, if I try to make the same function call in one of the blocks of
code that fires on the submit back to the page, the function doesn't fire
(nor crash).

 

Where I'm feeling quite n00bish is the same pattern is being employed on the
page for a different module and I'm not seeing what's the issue. 

 

Any suggestions would be greatly appreciated!

 

Matthew R. Nicholson

SolTech, Inc.

Cell: 770-833-5326

  www.soltech.net

To find what you seek in the road of life, the best proverb of all is that
which says: "Leave no stone unturned."
  ~Edward Bulwer Lytton

 


- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink   
- 




-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



[ACFUG Discuss] CF Submits & Function Behavior

2011-04-28 Thread Matthew Nicholson
Evening All!

 

So, I'm trying to make my life a little bit easier with an auditing
module on this application. 

 

I'm a little be confused though with a behavior I'm experiencing on a
submit post back to the page. (The user clicks a buttons and we reload
the page and perform a bunch of logic.) 

 

Here's the behavior:

 

I've written my function and tied to a stored procedure. If I declare it
upon load and call it immediately, everything works swimmingly.

However, if I try to make the same function call in one of the blocks of
code that fires on the submit back to the page, the function doesn't
fire (nor crash).

 

Where I'm feeling quite n00bish is the same pattern is being employed on
the page for a different module and I'm not seeing what's the issue. 

 

Any suggestions would be greatly appreciated!

 

Matthew R. Nicholson

SolTech, Inc.

Cell: 770-833-5326

www.soltech.net  

To find what you seek in the road of life, the best proverb of all is
that which says: "Leave no stone unturned."
  ~Edward Bulwer Lytton

 




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-




RE: [ACFUG Discuss] FckEditor Image Browse

2011-04-28 Thread Szwedo . Ed
Thanks for the info.

ed

__
Ed Szwedo
Web Development Team Lead
ECS Team - ITS-EPA II Contractor

109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | szwedo...@epa.gov | www.ecs-federal.com



From:   Troy Jones 
To: "discussion@acfug.org" 
Date:   04/28/2011 09:21 AM
Subject:RE: [ACFUG Discuss] FckEditor Image Browse
Sent by:ad...@acfug.org



One other thing about CKEditor over FckEditor is that the image upload
functions are a very slick AJAX package with in-line resizing and all
kinds of other goodies. The application is called CKFinder and is
configurable with either FckEditor or CKEditor but I believe it is a
part of CKEditor by default.

Anyways, just throwing that out there.

Troy Jones


___


Troy Jones  |  Director of Technical Services  |  Dynapp Inc  |
1-800-830-5192  ext. 603  |  dynapp.com  |  facebook.com/dynapp


-Original Message-
From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of
szwedo...@epamail.epa.gov
Sent: Thursday, April 28, 2011 9:17 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] FckEditor Image Browse

That's a very good point.

I just checked and found out that the version of FCKEditor that comes
with CF 9.0.1 did indeed change the name of the fileUpload function to
FCKeditorFileUpload.

But we were still pointing to an old version whose function is named
fileUpload.

Also, we have several copies of FCKEditor. Many apps use their own copy.
I believe we did this so as to segregate files (images in our case)
uploaded by an app to that app.

We didn't want app A to be able to see app B's images.  Plus, the image
list is uncluttered and specific to one app this way.

We'll be re-examining how we do things moving forward.

ed

__
Ed Szwedo
Web Development Team Lead
ECS Team - ITS-EPA II Contractor

109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | szwedo...@epa.gov | www.ecs-federal.com



From:"Charlie Arehart" 
To:  
Date:04/27/2011 09:54 PM
Subject: RE: [ACFUG Discuss] FckEditor Image Browse
Sent by: ad...@acfug.org



Yes, thanks for sharing, Ed. But the question would seem: why was it in
conflict? And do you recall perhaps if this directory was one changed by
a
hotfix?

Either way, it may be useful to report this to Adobe, if it's something
that
now two of you have hit. Or do you (or someone else) have a blog where
you
might report it, to help others who may think to search for things in
the
future? If not, let me know and I can do it (crediting you, of course).

/charlie


> -Original Message-
> From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of
> szwedo...@epamail.epa.gov
> Sent: Wednesday, April 27, 2011 2:18 PM
> To: discussion@acfug.org
> Subject: RE: [ACFUG Discuss] FckEditor Image Browse
>
> I fixed it.
>
> Used the CF function getFunctionList( ) to list all the functions on
> the
> server.  Cross checked the functions in
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm against
> this
> list.
>
> Found one conflicting name:  fileUpload
>
> Changed the name in the following files from fileUpload to
> fileUploadFck
>
> FCKEditor/editor/filemanager/browser/default/frmupload.html
>
> FCKEditor/editor/filemanager/connectors/test.html
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_connector.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_io.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_upload.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/config.cfm
>
>
> Thanks again to everyone for their help.
>
> ed




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-




-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3

RE: [ACFUG Discuss] FckEditor Image Browse

2011-04-28 Thread Troy Jones
One other thing about CKEditor over FckEditor is that the image upload 
functions are a very slick AJAX package with in-line resizing and all kinds of 
other goodies. The application is called CKFinder and is configurable with 
either FckEditor or CKEditor but I believe it is a part of CKEditor by default.

Anyways, just throwing that out there. 

Troy Jones


___

Troy Jones  |  Director of Technical Services  |  Dynapp Inc  |  
1-800-830-5192  ext. 603  |  dynapp.com  |  facebook.com/dynapp


-Original Message-
From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of 
szwedo...@epamail.epa.gov
Sent: Thursday, April 28, 2011 9:17 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] FckEditor Image Browse

That's a very good point.

I just checked and found out that the version of FCKEditor that comes
with CF 9.0.1 did indeed change the name of the fileUpload function to
FCKeditorFileUpload.

But we were still pointing to an old version whose function is named
fileUpload.

Also, we have several copies of FCKEditor. Many apps use their own copy.
I believe we did this so as to segregate files (images in our case)
uploaded by an app to that app.

We didn't want app A to be able to see app B's images.  Plus, the image
list is uncluttered and specific to one app this way.

We'll be re-examining how we do things moving forward.

ed

__
Ed Szwedo
Web Development Team Lead
ECS Team - ITS-EPA II Contractor

109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | szwedo...@epa.gov | www.ecs-federal.com



From:   "Charlie Arehart" 
To: 
Date:   04/27/2011 09:54 PM
Subject:RE: [ACFUG Discuss] FckEditor Image Browse
Sent by:ad...@acfug.org



Yes, thanks for sharing, Ed. But the question would seem: why was it in
conflict? And do you recall perhaps if this directory was one changed by
a
hotfix?

Either way, it may be useful to report this to Adobe, if it's something
that
now two of you have hit. Or do you (or someone else) have a blog where
you
might report it, to help others who may think to search for things in
the
future? If not, let me know and I can do it (crediting you, of course).

/charlie


> -Original Message-
> From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of
> szwedo...@epamail.epa.gov
> Sent: Wednesday, April 27, 2011 2:18 PM
> To: discussion@acfug.org
> Subject: RE: [ACFUG Discuss] FckEditor Image Browse
>
> I fixed it.
>
> Used the CF function getFunctionList( ) to list all the functions on
> the
> server.  Cross checked the functions in
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm against
> this
> list.
>
> Found one conflicting name:  fileUpload
>
> Changed the name in the following files from fileUpload to
> fileUploadFck
>
> FCKEditor/editor/filemanager/browser/default/frmupload.html
>
> FCKEditor/editor/filemanager/connectors/test.html
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_connector.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_io.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_upload.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/config.cfm
>
>
> Thanks again to everyone for their help.
>
> ed




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-




-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3602 - Release Date: 04/28/11


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] FckEditor Image Browse

2011-04-28 Thread Szwedo . Ed
That's a very good point.

I just checked and found out that the version of FCKEditor that comes
with CF 9.0.1 did indeed change the name of the fileUpload function to
FCKeditorFileUpload.

But we were still pointing to an old version whose function is named
fileUpload.

Also, we have several copies of FCKEditor. Many apps use their own copy.
I believe we did this so as to segregate files (images in our case)
uploaded by an app to that app.

We didn't want app A to be able to see app B's images.  Plus, the image
list is uncluttered and specific to one app this way.

We'll be re-examining how we do things moving forward.

ed

__
Ed Szwedo
Web Development Team Lead
ECS Team - ITS-EPA II Contractor

109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | szwedo...@epa.gov | www.ecs-federal.com



From:   "Charlie Arehart" 
To: 
Date:   04/27/2011 09:54 PM
Subject:RE: [ACFUG Discuss] FckEditor Image Browse
Sent by:ad...@acfug.org



Yes, thanks for sharing, Ed. But the question would seem: why was it in
conflict? And do you recall perhaps if this directory was one changed by
a
hotfix?

Either way, it may be useful to report this to Adobe, if it's something
that
now two of you have hit. Or do you (or someone else) have a blog where
you
might report it, to help others who may think to search for things in
the
future? If not, let me know and I can do it (crediting you, of course).

/charlie


> -Original Message-
> From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of
> szwedo...@epamail.epa.gov
> Sent: Wednesday, April 27, 2011 2:18 PM
> To: discussion@acfug.org
> Subject: RE: [ACFUG Discuss] FckEditor Image Browse
>
> I fixed it.
>
> Used the CF function getFunctionList( ) to list all the functions on
> the
> server.  Cross checked the functions in
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm against
> this
> list.
>
> Found one conflicting name:  fileUpload
>
> Changed the name in the following files from fileUpload to
> fileUploadFck
>
> FCKEditor/editor/filemanager/browser/default/frmupload.html
>
> FCKEditor/editor/filemanager/connectors/test.html
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_commands.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_connector.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_io.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/cf_upload.cfm
>
> FCKEditor/editor/filemanager/connectors/cfm/config.cfm
>
>
> Thanks again to everyone for their help.
>
> ed




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-