CF8 web service invocation error - possibly when under high load or after 2-3 days uptime
Hi, I currently have a web service MYSERVICE. This service is on 3 physically seperate web servers, DEV, TEST, LIVE. DEV is accessed by developers only TEST is accessed by developers and clients only LIVE is public Coldfusion version for all servers is 8.0.1. Axis version is the same on all servers. The consuming websites for DEV resides on the same physical server as the web service, and has very low traffic. The consuming websites for TEST reside on the same physical server as the consuming websites for LIVE, which is a seperate physical server to the TEST web service. The consuming websites for LIVE reside on the same physical server as the LIVE web service. The consuming websites for DEV resides on the same physical server as the web service, and has very low traffic. The consuming websites for TEST reside on the same physical server as the consuming websites for LIVE, which is a seperate physical server to the TEST web service. The consuming websites for LIVE reside on the same physical server as the LIVE web service. Periodically the following error is experienced : AXIS ERROR org.apache.axis.encoding.ser.BeanPropertyTarget - Could not convert MYSERVICE.types.common.login to bean field 'auth', type MYSERVICE.types.common.login This only appears to affect TEST and LIVE. Previously the TEST webservice was on the same phsyical webserver as LIVE webservice + TEST + LIVE websites. During this time the TEST webservice was accessed as MYSERVICE_test. Currently on LIVE server there is a directory mapping for /MYSERVICE/ to the root directory of the LIVE web service. There is also a coldfusion webservice MYSERVICE_search pointing to the WSDL of the live web service. There is also a coldfusion webservice MYSERVICE_search_test pointing to the wsdl of the test web service. The error appears to happen most commonly when under high load, and the only way I have so far found to correct it involves resetting the coldfusion server which is not ideal. The process prior to the error is as follows : obj_service = CreateObject('webservice','MYSERVICE'); obj_login = obj_service.authLogin('user','password'); obj_search = obj_service.doSearch(obj_login,'somevar'); The AXIS error appears to relate to that .doSearch method call. Does anyone have any thoughts as to what may be causing this and how I can work around this? If there is additional information required then please let me know and I will get that together. All indications are that this is a problem on the side of the consuming website, although I cannot tell any more than that and any research I have done over the last day or so has proved fruitless (or has provided outdated, i.e. 5-7 year old, articles) - Simon H ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327987 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 web service invocation error - possibly when under high load or after 2-3 days uptime
As an additional note to the above, the LIVE server restarts every day at approx 0700, and this problem only ever seems to occur at some point past 1900-2100 and then seems to continue sporadically until server restart at 0700. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327988 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Consuming a webservice fails in CF but not in Eclipse WPT
Hi Paul My guess is a namespace issue on the type EmployeeBean In one message it is referenced from namespace imp1, in another message it's referenced from xsd, so I'm guessing that if you correct whichever is incorrect it will work fine (probably the xsd:EmployeeBean needs changing to imp1:EmployeeBean) - this is just a guess but it does seem to indicate that it's looking for EmployeeBean type in namespace xsd which == http://www.w3.org/2001/XMLSchem when it would be in the namespace of urn:TBEWebAPI == imp1 messages with imp1:EmployeeBean wsdl:message name=getEmployeeByNumberResponse wsdl:part name=getEmployeeByNumberReturn type=impl:EmployeeBean/ /wsdl:message wsdl:message name=getEmployeeByIdResponse wsdl:part name=getEmployeeByIdReturn type=impl:EmployeeBean/ /wsdl:message messages with xsd:EmployeeBean wsdl:message name=upsertEmployeeRequest wsdl:part name=sessionId type=xsd:string/ wsdl:part name=employeeNumber type=xsd:string/ wsdl:part name=bean type=xsd:EmployeeBean/ /wsdl:message wsdl:message name=createEmployeeRequest wsdl:part name=sessionId type=xsd:string/ wsdl:part name=bean type=xsd:EmployeeBean/ /wsdl:message wsdl:message name=updateEmployeeRequest wsdl:part name=sessionId type=xsd:string/ wsdl:part name=bean type=xsd:EmployeeBean/ /wsdl:message I hope this is of help, - Simon H ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327989 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Consuming a webservice fails in CF but not in Eclipse WPT
Hi Paul My guess is a namespace issue on the type EmployeeBean In one message it is referenced from namespace imp1, in another message it's referenced from xsd, so I'm guessing that if you correct whichever is incorrect it will work fine (probably the xsd:EmployeeBean needs changing to imp1:EmployeeBean) - this is just a guess but it does seem to indicate that it's looking for EmployeeBean type in namespace xsd which == http://www.w3.org/2001/XMLSchem when it would be in the namespace of urn:TBEWebAPI == imp1 After much head scratching, that is what I figured, unfortunately, I have no control over the wsdl as it is generated by Taleo on their servers so unless they fix their wsdl generation it would appear that I'm screwed if I want use CF to consume the web service :-( To verify this, since I originally posted I downloaded the wsdl file and replaced all xsd:EmployeeBean occurrences with impl:EmployeeBean and tried to use WSDL2Java on the local copy. I made progress but then got the error that the FlexRollingEntityBean was referenced but not defined. This was the same issue so I replaced all xsd:FlexRollingEntityBean with impl:FlexRollingEntityBean and re-ran the WSDL2Java tool again, this time it generated a null exception. What vexes me most is that the wsdl works in Eclipse WPT so these issues I'm seeing seem to be related to the way in which CF is built to consume web services but their example WSDL file on the Taleo web site can be consumed by CF without a problem. Comparing the example to the actual wsdl generated by their servers however shows several differences so it does seem to add weight to the idea that it's the generation of the wsdl file that is faulty in some way and Eclipse WPT is just less sensitive to the faults. Paul ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327990 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Consuming a webservice fails in CF but not in Eclipse WPT
I just figured out that Eclipse WPT does not validate wsdl documents when it consumes them whereas CF does. You can force Eclipse WPT to validate a local copy of a wsdl file and when I do that on the Taleo API wsdl file it fails with multiple errors. So my problem with consuming the Taleo API webservice is down to Taleo rather than CF although it would be nice if you could turn off the validation routines but as I understand it, it's the underlying wsdl2java.jar functions that are at work when we consume web services so I don't think that turning off the validation is a realistic option. Paul ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327991 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Deploying a WAR (or EAR) file to JRun under CF9?
I tried going to localhost:8000, but nothing is listening there. Do I need to start a separate JRun server/service? I thought it would already be running along with ColdFusion?? The only port listening in the 8000 range is 8300 (CF web trial server). You'll need to run the JRun Admin server instance, which on Windows is listed as Macromedia JRun Admin Server or something like that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informati ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327992 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: tinymce with cfwindow
You could try an IFRAME inside the CFWINDOW, with the TinyMCE inside the iFRAME. The Ext.Window that CFWINDOW is based on doesn't play very nice with tiny or fck in my experience.. Brook -Original Message- From: Azadi Saryev [mailto:az...@sabai-dee.com] Sent: November-03-09 9:48 PM To: cf-talk Subject: Re: tinymce with cfwindow does your cfwindow use a source or has a body? what your should do depends on this... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 04/11/2009 08:34, M P wrote: I've been trying to get tinymce to work on a textarea inside a cfwindow, but for some reason it doesn't seem to work. I put a textarea on the main page, and tinymce works just fine on it, but not on the one in the cfwindow. Anyone else seen this issue and know how to get it to work? Thanks, Mike ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327993 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Clear Fields In Firefox
I'm having issues with Firefox filling in my UserID and Password fields on a log-in form (present on every page). I want the fields be clear empty, so the question is: How do I override Firefox and clear the form fields? Here's what I've tried so far: 1. Changed field names (no effect). 2. CFINPUT Value=, no effect. CFINPUT Value= works, but in the password field it show the space. 3. Added a clear_form JS function and OnLoad of the page I clear the fields. That works OnLoad, but if you hit the back button in the browser the OnLoad script does not run and the fields are filled in again.. Any ideas? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327994 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Consuming a webservice fails in CF but not in Eclipse WPT
Hi Paul After much head scratching, that is what I figured, unfortunately, I have no control over the wsdl as it is generated by Taleo on their servers so unless they fix their wsdl generation it would appear that I'm screwed if I want use CF to consume the web service :-( To verify this, since I originally posted I downloaded the wsdl file and replaced all xsd:EmployeeBean occurrences with impl:EmployeeBean and tried to use WSDL2Java on the local copy. I made progress but then got the error that the FlexRollingEntityBean was referenced but not defined. This was the same issue so I replaced all xsd:FlexRollingEntityBean with impl:FlexRollingEntityBean and re-ran the WSDL2Java tool again, this time it generated a null exception. What vexes me most is that the wsdl works in Eclipse WPT so these issues I'm seeing seem to be related to the way in which CF is built to consume web services but their example WSDL file on the Taleo web site can be consumed by CF without a problem. Comparing the example to the actual wsdl generated by their servers however shows several differences so it does seem to add weight to the idea that it's the generation of the wsdl file that is faulty in some way and Eclipse WPT is just less sensitive to the faults. Paul How about keeping a cache of their WSDL + do some regex to correct their mistakes (if they are unwilling to change themselves) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327995 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RESEND: Clear Fields In Firefox
RESEND: Sent the original an hour ago, but don't see it in the mail. I'm having issues with Firefox filling in my UserID and Password fields on a log-in form (present on every page). I want the fields be clear empty, so the question is: How do I override Firefox and clear the form fields? Here's what I've tried so far: 1. Changed field names (no effect). 2. CFINPUT Value=, no effect. CFINPUT Value= works, but in the password field it show the space. 3. Added a clear_form JS function and OnLoad of the page I clear the fields. That works OnLoad, but if you hit the back button in the browser the OnLoad script does not run and the fields are filled in again.. Any ideas? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327996 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 web service invocation error - possibly when under high load or after 2-3 days uptime
As an additional note to the above, the LIVE server restarts every day at approx 0700, and this problem only ever seems to occur at some point past 1900-2100 and then seems to continue sporadically until server restart at 0700. Further information. I have kept an eye on this issue, and it appears that the error only occurs soon after the .class files in /opt/coldfusion/wwwroot/WEB-INF/cfc-skeletons/ are modified, which indicates to me something is reloading them possibly? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327997 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Clear Fields In Firefox
http://www.verysimple.com/blog/2007/03/07/forcing-firefox-to-obey-autocomple teoff-for-password-fields/ Should help. -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Wednesday, November 04, 2009 10:41 AM To: cf-talk Subject: Clear Fields In Firefox I'm having issues with Firefox filling in my UserID and Password fields on a log-in form (present on every page). I want the fields be clear empty, so the question is: How do I override Firefox and clear the form fields? Here's what I've tried so far: 1. Changed field names (no effect). 2. CFINPUT Value=, no effect. CFINPUT Value= works, but in the password field it show the space. 3. Added a clear_form JS function and OnLoad of the page I clear the fields. That works OnLoad, but if you hit the back button in the browser the OnLoad script does not run and the fields are filled in again.. Any ideas? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
Robert Harrison wrote: How do I override Firefox and clear the form fields? Turn off the remember password features in your Firefox options! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327999 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
Couple of options you can try: 1) add autocomplete=off to the input 2) on page load do a document.forms['formname'].reset() 3) generate a UUID and append it to the field name (pass as a hidden input to retrieve values on the action page). this should ensure unique form field names which should prevent auto-population. On Wed, Nov 4, 2009 at 7:40 AM, Robert Harrison rob...@austin-williams.comwrote: I'm having issues with Firefox filling in my UserID and Password fields on a log-in form (present on every page). I want the fields be clear empty, so the question is: How do I override Firefox and clear the form fields? Here's what I've tried so far: 1. Changed field names (no effect). 2. CFINPUT Value=, no effect. CFINPUT Value= works, but in the password field it show the space. 3. Added a clear_form JS function and OnLoad of the page I clear the fields. That works OnLoad, but if you hit the back button in the browser the OnLoad script does not run and the fields are filled in again.. Any ideas? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328000 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Format word text pasted
How would you go about formatting text pasted from a word document into a coldfusion web form? Also should you format the data before it is inputed into the database or would you format the data when it is displayed? Any thoughts would be appreciated. Keith ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328001 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Format word text pasted
How would you go about formatting text pasted from a word document into a coldfusion web form? Also should you format the data before it is inputed into the database or would you format the data when it is displayed? Any thoughts would be appreciated. Keith ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328002 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Deploying a WAR (or EAR) file to JRun under CF9?
Unfortunately on Linux (at least RHEL) it doesn't install a service init script for the admin instance. There is a simple start script in /opt/jrun4/bin/adminstart.sh that does basically what Marie is doing. ./jrun -config admin_jvm.config -start admin Note: you have to be cd'd into the jrun4/bin directory for the script to work. On Wed, Nov 4, 2009 at 8:46 AM, Dave Watts dwa...@figleaf.com wrote: I tried going to localhost:8000, but nothing is listening there. Do I need to start a separate JRun server/service? I thought it would already be running along with ColdFusion?? The only port listening in the 8000 range is 8300 (CF web trial server). You'll need to run the JRun Admin server instance, which on Windows is listed as Macromedia JRun Admin Server or something like that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informati ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328003 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
LIST SPEED
I'm getting list email something like 90 minutes after it's sent. Is that normal? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328004 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Formatting text pasted from word into a text field
How would you go about formatting text pasted from a word document into a coldfusion web form? Also should you format the data before it is inputed into the database or would you format the data when it is displayed? Any thoughts would be appreciated. Keith ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328005 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Format word text pasted
there's a function on cflib called demoronize() that's supposed to clean text pasted from Word. but i've heard it's not quite bullet-proof. As far as formatting the data... when it goes into the database. Then you only do it once, as opposed to doing it every time you display. On Wed, Nov 4, 2009 at 7:50 AM, Keith McGee kpmc...@frontiernet.net wrote: How would you go about formatting text pasted from a word document into a coldfusion web form? Also should you format the data before it is inputed into the database or would you format the data when it is displayed? Any thoughts would be appreciated. Keith ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328006 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Clear Fields In Firefox
Turn off the remember password features in your Firefox options! Oh, I mean... As the programmer of the site, how do I keep the fields clear for users who are on Firefox? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Ian Skinner [mailto:h...@ilsweb.com] Sent: Wednesday, November 04, 2009 11:55 AM To: cf-talk Subject: Re: Clear Fields In Firefox Robert Harrison wrote: How do I override Firefox and clear the form fields? Turn off the remember password features in your Firefox options! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328007 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
Robert Harrison wrote: Turn off the remember password features in your Firefox options! Oh, I mean... As the programmer of the site, how do I keep the fields clear for users who are on Firefox? I guess you then use one of the techniques mentioned elsewhere but why do you, as the programmer, get to override my, as the user, preferences. If I tell my Firefox to remember a password, I suspect I will be peeved by a site that prevents me from using my desired feature. But your millage may vary. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328008 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Format word text pasted
How would you go about formatting text pasted from a word document into a coldfusion web form? This is what I do. But it requires some jar files to work to the best of its capabilities. 1. Install the jTidy jars. And register cfx_markdown as a java CFX tag. 2. Check to see if the posted data is HTML or not. 3. If the posted data is *not* HTML, use some RegEx and cfx_markdown to create some HTML from the posted data. 4. Clean out junk HTML markup that a Word formatted submission would include. 5. Parse the HTML with jTidy to make the HTML valid. 6. Run some funky functions to create ordered and unordered lists where appropriate. 7. Re-parse the HTML using jTidy again to ensure that the HTML is still valid. 8. Fix the appearance of ampersands though out the text. 9. Return valid, cleanly formatted HTML. Also should you format the data before it is inputed into the database or would you format the data when it is displayed? On the Store the formatted markup rather than the pasted junk as you only need to parse it once. If you store it as posted and re-parse every time you pull it out, you're putting extra load on the server. If you're paranoid about maybe the parser getting things wrong, store the posted and fixed content together and when you introduce improvements to your Word parsing algorithms, you can re-parse the old content too. I have source code for this but it's quite a chunk of code and is spread around a few CFC's I could probably put all the functions into a file for you to give you some inspiration and you might be able to re-factor them for your purposes as it's really not an easy thing to do and get right. One day I may just make a Word Cleaner CFC that does this all in one place :-). Paul ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328009 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Clear Fields In Firefox
One reason could be Corporate policy. I know one company for sure that will not be named that has a policy that states that user id and password fields will be blank. Even though they lock down the browser not to auto populate, some people could still get past it. Then for some reason, the powers that be always go for the programmers. Just one possibility. Steve -Original Message- From: Ian Skinner [mailto:h...@ilsweb.com] Sent: Wednesday, November 04, 2009 12:39 PM To: cf-talk Subject: Re: Clear Fields In Firefox Robert Harrison wrote: Turn off the remember password features in your Firefox options! Oh, I mean... As the programmer of the site, how do I keep the fields clear for users who are on Firefox? I guess you then use one of the techniques mentioned elsewhere but why do you, as the programmer, get to override my, as the user, preferences. If I tell my Firefox to remember a password, I suspect I will be peeved by a site that prevents me from using my desired feature. But your millage may vary. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328010 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Clear Fields In Firefox
I guess you then use one of the techniques mentioned elsewhere but why do you, as the programmer, get to override my, as the user, preferences. It's a security issue. The users of site a very wealthy (and not necessarily tech savvy) home-owners, generally with several homes. When they log-in to this site they get access to the security systems in their home(s). They can turn alarms on and off, unlock gates and door, turn lights on and off, heat up their pool and sauna, etc. Does that make sense? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328011 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Format word text pasted
How would you go about formatting text pasted from a word document into a coldfusion web form? Tiny MCE has a good tool for that as well, if you want to install the editor. Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328012 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Form Insanity
Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328014 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Clear Fields In Firefox
DURETTE, STEVEN J (ATTASIAIT) wrote: One reason could be Corporate policy. I know one company for sure that will not be named that has a policy that states that user id and password fields will be blank. Even though they lock down the browser not to auto populate, some people could still get past it. Then for some reason, the powers that be always go for the programmers. Just one possibility. Steve And I presumed that this, or something very similar, was the driving force behind the original question. And, unfortunately, the main problem with your scenario is the powers that be going for the programmers - who only have an illusion of control, rather then the employees who are breaking the policy. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328013 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
Robert Harrison wrote: It's a security issue. Fine, just realize that it is only an *illusion* of security. /Anything/ you do on the server can be overridden by the client. And the sort of users who you really want to protect from, are the sort of users who are going to know how to circumvent anything you can send form the server. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328015 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
I've always had an idea of randomizing a form element's name and passing that random name to the following page to force the browser to not autocomplete the information (it can't pre-populate if it's never seen the form name before). I've never actually worked out how to do this mainly because I've never had to but I don't think it's very hard. Perhaps randomize the username field and then have a hidden field named username and have the value as the real username element's random name so you have access to it. Just an idea. On Wed, Nov 4, 2009 at 12:55 PM, Ian Skinner h...@ilsweb.com wrote: DURETTE, STEVEN J (ATTASIAIT) wrote: One reason could be Corporate policy. I know one company for sure that will not be named that has a policy that states that user id and password fields will be blank. Even though they lock down the browser not to auto populate, some people could still get past it. Then for some reason, the powers that be always go for the programmers. Just one possibility. Steve And I presumed that this, or something very similar, was the driving force behind the original question. And, unfortunately, the main problem with your scenario is the powers that be going for the programmers - who only have an illusion of control, rather then the employees who are breaking the policy. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328016 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form Insanity
As there is no default option, IIRC if no option is selected, then the browser will not send that form field with the request. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328017 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form Insanity
With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328018 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Clear Fields In Firefox
Also, javascript can probably clear the fields if you just want them to be blank, of course javascript can be turned off, but it's an alternative. Not sure if you mean the form is autocompleting or just pre-populating. On Wed, Nov 4, 2009 at 10:40 AM, Robert Harrison rob...@austin-williams.com wrote: I'm having issues with Firefox filling in my UserID and Password fields on a log-in form (present on every page). I want the fields be clear empty, so the question is: How do I override Firefox and clear the form fields? Here's what I've tried so far: 1. Changed field names (no effect). 2. CFINPUT Value=, no effect. CFINPUT Value= works, but in the password field it show the space. 3. Added a clear_form JS function and OnLoad of the page I clear the fields. That works OnLoad, but if you hit the back button in the browser the OnLoad script does not run and the fields are filled in again.. Any ideas? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328019 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfmail custom tag
Hey all I'm trying to make a custom tag for cfmail so I can create a standard From, Subject, and HTML layout inside the email that is sent. I have created the tag and am using the open / close method, but the content of the email winds up being displayed on the page, as well as being emailed. I'm using THIS.generatedContent inside the custom tag in the body of the cfmail tag, and have even tried wrapping the tag inside a cfsilent. What am I missing? How do I stop the body of the custom tag from displaying, or is that not possible. Mik cf_mailsend to=s...@address.comyadda yadda/cf_mailsend cfsilent cfswitch expression=#thisTag.ExecutionMode# cfcase value=start cfparam name=attributes.to default= /cfcase cfcase value=end cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com type=HTML div style=padding:20px; margin:20px; border:2px solid blue; #trim(thistag.generatedcontent)# /div /cfmail /cfcase /cfswitch cfsilent Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328020 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form Insanity
see if adding closing /option tags helps. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 01:59, Timothy Laureska wrote: Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328021 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form Insanity
if there's no selected option, the first one is considered selected by pretty much all current browsers. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:14, Ian Skinner wrote: As there is no default option, IIRC if no option is selected, then the browser will not send that form field with the request. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328022 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form Insanity
i stand corrected - missed that it was a multiple select... :( Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:36, Azadi Saryev wrote: if there's no selected option, the first one is considered selected by pretty much all current browsers. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:14, Ian Skinner wrote: As there is no default option, IIRC if no option is selected, then the browser will not send that form field with the request. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328023 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form Insanity
the question that is buggin me now is: why have a option value=Select Unit (if applicable) option in a mutli-select??? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:37, Azadi Saryev wrote: i stand corrected - missed that it was a multiple select... :( Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:36, Azadi Saryev wrote: if there's no selected option, the first one is considered selected by pretty much all current browsers. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:14, Ian Skinner wrote: As there is no default option, IIRC if no option is selected, then the browser will not send that form field with the request. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328024 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form Insanity
Quick and dirty fix... In the processing page, add this to the top: cfparam name=form.unit_id_other default= Steve -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Wednesday, November 04, 2009 1:16 PM To: cf-talk Subject: RE: Form Insanity With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328025 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Clear Fields In Firefox
On Wed, Nov 4, 2009 at 12:39 PM, Ian Skinner h...@ilsweb.com wrote: Robert Harrison wrote: Turn off the remember password features in your Firefox options! Oh, I mean... As the programmer of the site, how do I keep the fields clear for users who are on Firefox? I guess you then use one of the techniques mentioned elsewhere but why do you, as the programmer, get to override my, as the user, preferences. If I tell my Firefox to remember a password, I suspect I will be peeved by a site that prevents me from using my desired feature. That's why I roll with da RoboForm, you will never keep me from autoComplete ;-) Oh, well I guess you could if you use flash login form, dam I hate those. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328026 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Session is invalid error is driving me nuts!
All, Ok, this is a little pet peeve of mine. We have session timeout set and we tell users that they have to do something within so much time. Problem is the users ignore that. They open a page with a form, leave it open for an hour, then when they submit the form Session is invalid error. They see a nicely formatted An Error has occurred page, but I get an email for each one. Any ideas (besides changing the timeout) of what I might do to prevent this? I have toyed with the idea of locking the form and putting up a message saying that they timed out. Then they would have to close the window/tab. Even if they hit refresh it would generate a new session, so no error. I'm just not sure of the best way to go about that. Also, anything I'd try to figure out should be able to just be cfincluded or done in Application.cfm/cfc so that I don't have to go through hundreds of files to solve this one. Thanks, Steve ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328027 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Stripping tabs/linebreaks/spacing on a high traffic production server
We have a VERY high traffic website, and we're trying to speed up the pageload times a bit. One of the things we're considering is going through some of the cfm files that are loaded on every request and trying to strip them down: So for example, on the page that builds the html tag @ the top, we have: -- cfoutput!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head/cfoutput cfif request.showIntroAd cfoutputmeta http-equiv=refresh content=#request.site.introAdDisplayTime#;http://#CGI.HTTP_HOST##request.loader.geturi(request.object.id,request.page)#cfif CGI.query_string neq ?#CGI.QUERY_STRING#/cfif /cfoutput /cfif cfoutputmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / link rel=shortcut icon href=/favicon.ico type=image/x-icon / link rel=icon href=/favicon.ico type=image/x-icon / /cfoutput cfif (isDefined(request.isHomePage) AND request.isHomePage) or cgi.path_info eq / !--- GOOGLE SPIDER ACTIVITY DIAGNOSTIC TAG --- cfoutputMETA name=verify-v1 content=rlf8D2GawTNaQTdKz2jo3t+cM5Bg+vVz3C7+uoCtYy4= / /cfoutput /cfif cfoutput script type=text/javascript src=/scripts/functions.js/script /cfoutput --- Lots of white space in there. On some other high traffic sites I see HTML compressed into a single line of code. How can we do that reliably while still making the code readable by developers. One thing we considered was to wrap blocks in cfsavecontent, and then use regex to strip out the tabs/linebreaks/etc, and save the blocks of code into the application scope. We are already Gzipping files. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328028 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form Insanity
You should probably also add a CHECKED to one of the options, as a default. It can be unselected, but it gives you a better chance of getting real user input. Mik At 01:16 PM 11/4/2009, Andy Matthews wrote: With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328029 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Form Insanity
You should probably also add a CHECKED to one of the options, as a default. It can be unselected, but it gives you a better chance of getting real user input. Mik At 01:16 PM 11/4/2009, Andy Matthews wrote: With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328030 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form Insanity
Oops! Or rather, SELECTED (not checked... I was thinking of checkboxes and radio buttons, which have the same problem as multiple selects... they don't exist in the form post unless something is checked/selected). Mik At 02:27 PM 11/4/2009, Mik Muller wrote: You should probably also add a CHECKED to one of the options, as a default. It can be unselected, but it gives you a better chance of getting real user input. Mik At 01:16 PM 11/4/2009, Andy Matthews wrote: With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328031 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form Insanity
Oops! Or rather, SELECTED (not checked... I was thinking of checkboxes and radio buttons, which have the same problem as multiple selects... they don't exist in the form post unless something is checked/selected). Mik At 02:27 PM 11/4/2009, Mik Muller wrote: You should probably also add a CHECKED to one of the options, as a default. It can be unselected, but it gives you a better chance of getting real user input. Mik At 01:16 PM 11/4/2009, Andy Matthews wrote: With radio buttons, checkboxes, and multiple select dropdowns it doesn't matter if the form is there on the view page. If no one selects one of the options in those input fields, the key doesn't exist in the form. Use cfparam, or StructKeyExists(FORM,'key') to make sure it's there before using it. andy -Original Message- From: Timothy Laureska [mailto:tlaure...@dhmh.state.md.us] Sent: Wednesday, November 04, 2009 12:00 PM To: cf-talk Subject: Form Insanity Hello: Can somebody tell me why this from select box form and processing template produce the message that Element UNIT_ID_OTHER is undefined in form form select name=unit_id_other multiple=yes option value=Select Unit (if applicable) option value=-- cfoutput query=list_units option value=#unit_id##unit_name# /cfoutput /select /form processing template cfif #form.unit_id_other# IS NOT cfquery datasource=#datasource# name=find_other_unit SELECT * FROM dhmh_units where unit_id IN (#form.unit_id_other#) /cfquery /cfif ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328032 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
A couple tags that are realy useful for stripping whitespace are the cfsilent/cfsilent block and the cfsetting enableCFoutputOnly = true. You can also make use of the cfprocessingdirective supressWhiteSpace=yes and the setting in the ColdFusion administrator that has a similar affect. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328033 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Session is invalid error is driving me nuts!
Steve, There are a number of ways (probably more than I'm listing here): 1. If you're using Application.cfm, sdd code to it so that if of your session (say, session.logged_in) is undefined, then it will redirect the user to a login page. This way, the 'processing' page for your form never even gets loaded and the result is no error (just a frustrated user from having filled out the form and now they will have to do it again) 2. Add a meta tag redirect to your form page that matches your session timeout. Although this is a client side redirect, it can accomplish pretty much the same thing - if there is no activity in the browser for that period of time, the page redirects to a specified page (your session has timed out, click here to login) or something like that. I would prefer option 1, but others prefer option 2. There are probably some other options some may have here on the list as well. Dave Phillips -Original Message- From: DURETTE, STEVEN J (ATTASIAIT) [mailto:sd1...@att.com] Sent: Wednesday, November 04, 2009 1:02 PM To: cf-talk Subject: Session is invalid error is driving me nuts! All, Ok, this is a little pet peeve of mine. We have session timeout set and we tell users that they have to do something within so much time. Problem is the users ignore that. They open a page with a form, leave it open for an hour, then when they submit the form Session is invalid error. They see a nicely formatted An Error has occurred page, but I get an email for each one. Any ideas (besides changing the timeout) of what I might do to prevent this? I have toyed with the idea of locking the form and putting up a message saying that they timed out. Then they would have to close the window/tab. Even if they hit refresh it would generate a new session, so no error. I'm just not sure of the best way to go about that. Also, anything I'd try to figure out should be able to just be cfincluded or done in Application.cfm/cfc so that I don't have to go through hundreds of files to solve this one. Thanks, Steve ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328034 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
before you go into minimizing whitespace, you should really remove all those cfoutput tags from around code that does not have any cf variables in it. that will speed up the page somewhat since cf will not have to parse your html looking for non-existent cfml in it... wrapping all your code in cfprocessingdirective suppresswhitespace=yes/cfprocessingdirective will help reduce whitespace (especially cf-generated whitespace), too. minifying your js and css can further reduce loading times. hth Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 05/11/2009 02:26, Jeff Gladnick wrote: We have a VERY high traffic website, and we're trying to speed up the pageload times a bit. One of the things we're considering is going through some of the cfm files that are loaded on every request and trying to strip them down: So for example, on the page that builds the html tag @ the top, we have: -- cfoutput!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head/cfoutput cfif request.showIntroAd cfoutputmeta http-equiv=refresh content=#request.site.introAdDisplayTime#;http://#CGI.HTTP_HOST##request.loader.geturi(request.object.id,request.page)#cfif CGI.query_string neq ?#CGI.QUERY_STRING#/cfif /cfoutput /cfif cfoutputmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / link rel=shortcut icon href=/favicon.ico type=image/x-icon / link rel=icon href=/favicon.ico type=image/x-icon / /cfoutput cfif (isDefined(request.isHomePage) AND request.isHomePage) or cgi.path_info eq / !--- GOOGLE SPIDER ACTIVITY DIAGNOSTIC TAG --- cfoutputMETA name=verify-v1 content=rlf8D2GawTNaQTdKz2jo3t+cM5Bg+vVz3C7+uoCtYy4= / /cfoutput /cfif cfoutput script type=text/javascript src=/scripts/functions.js/script /cfoutput --- Lots of white space in there. On some other high traffic sites I see HTML compressed into a single line of code. How can we do that reliably while still making the code readable by developers. One thing we considered was to wrap blocks in cfsavecontent, and then use regex to strip out the tabs/linebreaks/etc, and save the blocks of code into the application scope. We are already Gzipping files. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328035 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Session is invalid error is driving me nuts!
Oh, I meant to add that if you are using application.cfc instead of .cfm, then you would put your code to redirect in the OnSessionEnd function. Dave -Original Message- From: DURETTE, STEVEN J (ATTASIAIT) [mailto:sd1...@att.com] Sent: Wednesday, November 04, 2009 1:02 PM To: cf-talk Subject: Session is invalid error is driving me nuts! All, Ok, this is a little pet peeve of mine. We have session timeout set and we tell users that they have to do something within so much time. Problem is the users ignore that. They open a page with a form, leave it open for an hour, then when they submit the form Session is invalid error. They see a nicely formatted An Error has occurred page, but I get an email for each one. Any ideas (besides changing the timeout) of what I might do to prevent this? I have toyed with the idea of locking the form and putting up a message saying that they timed out. Then they would have to close the window/tab. Even if they hit refresh it would generate a new session, so no error. I'm just not sure of the best way to go about that. Also, anything I'd try to figure out should be able to just be cfincluded or done in Application.cfm/cfc so that I don't have to go through hundreds of files to solve this one. Thanks, Steve ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328036 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
Yes, that makes plenty of sense. However, all that regex processing *could* be a bit of a fruitless drain so, if you can, cache the page content (using CF and compressed using the method you describe). Caching the output could really speed things up but, of course, can be a problem if there's session/logged-in user based output. Testing should be the decider on how much the white space processing effects things if you can't cache your output. There's a udf on cflib.org to do with html whitespace stripping: http://www.cflib.org/index.cfm?event=page.udfbyidudfid=812 Another thing to look out for when using the 'extreme', single line compression is that it can break some inline javascript that is missing optional semi-colons. HTH Dominic ** 2009/11/4 Jeff Gladnick jeff.gladn...@gmail.com We have a VERY high traffic website, and we're trying to speed up the pageload times a bit. One of the things we're considering is going through some of the cfm files that are loaded on every request and trying to strip them down: So for example, on the page that builds the html tag @ the top, we have: -- cfoutput!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head/cfoutput cfif request.showIntroAd cfoutputmeta http-equiv=refresh content=#request.site.introAdDisplayTime#;http:// #CGI.HTTP_HOST##request.loader.geturi(request.object.id,request.page)#cfif CGI.query_string neq ?#CGI.QUERY_STRING#/cfif /cfoutput /cfif cfoutputmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / link rel=shortcut icon href=/favicon.ico type=image/x-icon / link rel=icon href=/favicon.ico type=image/x-icon / /cfoutput cfif (isDefined(request.isHomePage) AND request.isHomePage) or cgi.path_info eq / !--- GOOGLE SPIDER ACTIVITY DIAGNOSTIC TAG --- cfoutputMETA name=verify-v1 content=rlf8D2GawTNaQTdKz2jo3t+cM5Bg+vVz3C7+uoCtYy4= / /cfoutput /cfif cfoutput script type=text/javascript src=/scripts/functions.js/script /cfoutput --- Lots of white space in there. On some other high traffic sites I see HTML compressed into a single line of code. How can we do that reliably while still making the code readable by developers. One thing we considered was to wrap blocks in cfsavecontent, and then use regex to strip out the tabs/linebreaks/etc, and save the blocks of code into the application scope. We are already Gzipping files. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328037 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: custom tag content displaying twice
Hmm having never made a custom tag with an open and close pair, I didn't realize that the contained content will display twice. http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html No way around this? It seems pretty stupid that CF wouldn't suppress the initial output, leaving the responsibility of displaying the content to the tag. Mik At 01:25 PM 11/4/2009, Michael Muller wrote: Hey all I'm trying to make a custom tag for cfmail so I can create a standard From, Subject, and HTML layout inside the email that is sent. I have created the tag and am using the open / close method, but the content of the email winds up being displayed on the page, as well as being emailed. I'm using THIS.generatedContent inside the custom tag in the body of the cfmail tag, and have even tried wrapping the tag inside a cfsilent. What am I missing? How do I stop the body of the custom tag from displaying, or is that not possible. Mik cf_mailsend to=s...@address.comyadda yadda/cf_mailsend cfsilent cfswitch expression=#thisTag.ExecutionMode# cfcase value=start cfparam name=attributes.to default= /cfcase cfcase value=end cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com type=HTML div style=padding:20px; margin:20px; border:2px solid blue; #trim(thistag.generatedcontent)# /div /cfmail /cfcase /cfswitch cfsilent Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328038 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
Oh, and if you haven't already, install the YSlow and Pagespeed addons for Firefox to analyze your pages. Their feedback can get you to the heart of any client side problems very quickly. Server side, I wouldn't be so concerned by the whitespace and more concerned by slow running queries and code. Dominic 2009/11/4 Jeff Gladnick jeff.gladn...@gmail.com We have a VERY high traffic website, and we're trying to speed up the pageload times a bit. One of the things we're considering is going through some of the cfm files that are loaded on every request and trying to strip them down: So for example, on the page that builds the html tag @ the top, we have: -- cfoutput!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head/cfoutput cfif request.showIntroAd cfoutputmeta http-equiv=refresh content=#request.site.introAdDisplayTime#;http:// #CGI.HTTP_HOST##request.loader.geturi(request.object.id,request.page)#cfif CGI.query_string neq ?#CGI.QUERY_STRING#/cfif /cfoutput /cfif cfoutputmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / link rel=shortcut icon href=/favicon.ico type=image/x-icon / link rel=icon href=/favicon.ico type=image/x-icon / /cfoutput cfif (isDefined(request.isHomePage) AND request.isHomePage) or cgi.path_info eq / !--- GOOGLE SPIDER ACTIVITY DIAGNOSTIC TAG --- cfoutputMETA name=verify-v1 content=rlf8D2GawTNaQTdKz2jo3t+cM5Bg+vVz3C7+uoCtYy4= / /cfoutput /cfif cfoutput script type=text/javascript src=/scripts/functions.js/script /cfoutput --- Lots of white space in there. On some other high traffic sites I see HTML compressed into a single line of code. How can we do that reliably while still making the code readable by developers. One thing we considered was to wrap blocks in cfsavecontent, and then use regex to strip out the tabs/linebreaks/etc, and save the blocks of code into the application scope. We are already Gzipping files. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328039 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
On Thu, 2009-11-05 at 04:11 +0800, Azadi Saryev wrote: before you go into minimizing whitespace, you should really remove all those cfoutput tags from around code that does not have any cf variables in it. that will speed up the page somewhat since cf will not have to parse your html looking for non-existent cfml in it... Sorry...I'm late to the thread (not sure what version is being discussed), but the above hasn't really been an issue since pre-MX. Although a valid statement, it might save a nanosecond or 2 ;-) Personally I prefer not to open/close CFOUTPUT tags all over the placejust gets messy. Cheers - Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328040 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: custom tag content displaying twice
just do cfset thisTag.generatedContent = / in the end tag? CF has to do one or the other (render the output or suppress the output), and then provide a means to accomplish the other. At least from the perspective of the principle of least surprise, rendering the output seems like the correct default choice. cheers, barneyb On Wed, Nov 4, 2009 at 12:16 PM, Mik Muller ad...@montaguema.net wrote: Hmm having never made a custom tag with an open and close pair, I didn't realize that the contained content will display twice. http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html No way around this? It seems pretty stupid that CF wouldn't suppress the initial output, leaving the responsibility of displaying the content to the tag. Mik At 01:25 PM 11/4/2009, Michael Muller wrote: Hey all I'm trying to make a custom tag for cfmail so I can create a standard From, Subject, and HTML layout inside the email that is sent. I have created the tag and am using the open / close method, but the content of the email winds up being displayed on the page, as well as being emailed. I'm using THIS.generatedContent inside the custom tag in the body of the cfmail tag, and have even tried wrapping the tag inside a cfsilent. What am I missing? How do I stop the body of the custom tag from displaying, or is that not possible. Mik cf_mailsend to=s...@address.comyadda yadda/cf_mailsend cfsilent cfswitch expression=#thisTag.ExecutionMode# cfcase value=start cfparam name=attributes.to default= /cfcase cfcase value=end cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com type=HTML div style=padding:20px; margin:20px; border:2px solid blue; #trim(thistag.generatedcontent)# /div /cfmail /cfcase /cfswitch cfsilent Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328041 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: custom tag content displaying twice
There is a way to suppress that and I can't recall how (been a long time). I see in my head something to do with... cfif THIS.tagStart and cfif THIS.tagEnd HTH...at least you know it is possiblenow go forth and Google ;-) Cheers - Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328042 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
On Wed, Nov 4, 2009 at 1:26 PM, Jeff Gladnick jeff.gladn...@gmail.comwrote: We have a VERY high traffic website, and we're trying to speed up the pageload times a bit. One of the things we're considering is going through some of the cfm files that are loaded on every request and trying to strip them down: Best Practices for Speeding Up Your Web Site The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 34 best practices divided into 7 categories. http://developer.yahoo.com/performance/rules.html ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328043 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Session is invalid error is driving me nuts!
You can't do a redirect .. or any client output... in onsessionend() ... because that runs when the session is over. Maybe something like this: cffunction name=onrequeststart blah blah cfif not IsDefined(session.whatever) cflocation url=/login... /cfif What I do in that instance is check their cookie. I keep my session lengths short to preserve memory, but if they have a valid cookie that hasn't expired, i start the session again right there... by the time the form submits in the onrequest method, they have a valid session again. That may not meet security requirements for some applications however. On Wed, Nov 4, 2009 at 3:12 PM, Dave Phillips experiencedcfdevelo...@gmail.com wrote: Oh, I meant to add that if you are using application.cfc instead of .cfm, then you would put your code to redirect in the OnSessionEnd function. Dave -Original Message- From: DURETTE, STEVEN J (ATTASIAIT) [mailto:sd1...@att.com] Sent: Wednesday, November 04, 2009 1:02 PM To: cf-talk Subject: Session is invalid error is driving me nuts! All, Ok, this is a little pet peeve of mine. We have session timeout set and we tell users that they have to do something within so much time. Problem is the users ignore that. They open a page with a form, leave it open for an hour, then when they submit the form Session is invalid error. They see a nicely formatted An Error has occurred page, but I get an email for each one. Any ideas (besides changing the timeout) of what I might do to prevent this? I have toyed with the idea of locking the form and putting up a message saying that they timed out. Then they would have to close the window/tab. Even if they hit refresh it would generate a new session, so no error. I'm just not sure of the best way to go about that. Also, anything I'd try to figure out should be able to just be cfincluded or done in Application.cfm/cfc so that I don't have to go through hundreds of files to solve this one. Thanks, Steve ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328044 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
ColdFusion on Solaris Automatic Startup Scripts
According to this technote: Workaround for ColdFusion Startup with System Startup on Solaris (ColdFusion 8 and 8.0.1) http://kb2.adobe.com/cps/403/kb403351.html, we should be able to run these scripts and it will create the start up and kill scripts that will automatically start ColdFusion when the box is powered on. It does not work for us. We get the following errors. # ./cf-init.sh install Creating the Coldfusion 8 start script /etc/init.d/coldfusion8multi cp: cannot access /opt/jrun4/bin/cf-multi-startup Adding ColdFusion 8 start/kill links ln: cannot create ./STARTSCRIPT: File exists Install complete The referenced files/folders to not exist. What can be done to get this to work on our multi-home enterprise edition ColdFusion server running on a Solaris 10 box. TIA Ian ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328045 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Stripping tabs/linebreaks/spacing on a high traffic production server
Thanks for all the feedback guys. We're already doing the easy stuff (cfsilent, etc) to suppress whitespace. I'm leaning towards the caching and converting to 1 line for standard html stuff. we'll be careful with the js thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328046 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfinvoke vs creatobject
I'm having a heck of a time trying to figure this out. The code below works great when I use createObject, but it doesn't when I use cfinvoke. The reason I want to use cfinvoke is that it takes a while for it to return the data, and I can set a timeout on the cfinvoke (and I can't when I use createObject). When I use the CFInvoke, I get the Web service operation runXS with parameters... error. Any ideas? !--- Set WSDL Location --- cfset wsdlUrl = http://examplecom/sample.wsdl; !--- Set Parameters --- cfset selectArray = arrayNew(1) cfset selectArray[1] = '01/01/09' cfset selectArray[2] = '02/01/09' cfset selectArray[3] = 'EXAMPLE' cfset argsXS = structNew() cfscript argsXS.method = 'SELECT'; argsXS.data = selectArray; argsXS.version = ''; argsXS.result = ''; /cfscript cfset selectDTO = structNew() cfscript selectDTO.args = argsXS; selectDTO.connString = ; selectDTO.userName = ; selectDTO.password = ; /cfscript !--- Method #1: Works Great! --- cfset myWS = createObject(webservice, #wsdlUrl#) cfset selectResponse = myWS.runXS( selectDTO ) !--- Method #2: Doesn't Work :-( --- cfinvoke method=runXS returnvariable=selectResponse argumentcollection=#selectDTO# webservice=#wsdlUrl# /cfinvoke Thanks! Alex ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328047 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LIST SPEED
No it's not normal.Any posts i make usually appear in my gmail account several hours after sending them. If i create a new thread, I can frequently see the new thread on the houseoffusion.com site about 6 hours before it appears in my gmail account. At other times, i sometimes see a reply post before i see my own post. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Nov 5, 2009 at 4:12 AM, Robert Harrison rob...@austin-williams.com wrote: I'm getting list email something like 90 minutes after it's sent. Is that normal? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328048 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: custom tag content displaying twice
Barney, Well, as I said, in this case the prinicple of least surprise would have effused a behavior wherein the page calling the custom tag would not have rendered the content, leaving that responsibility to the tag itself. In _my_ mind, anyway. I mean, if the tag is supposed to receive the content, the calling page really has no business rendering the content again. And not being able to stop it from being rendered again is a serious drawback. I mean, think of the lowly EM tag. It takes the input and renders the content in italics (or whatever). The browser doesn't then render the content again UNitalicized, correct? It trusts the EM tag to take care of its business. Isn't that the way a tag should work? I'll try your suggestion, below, but I've already gone the less elegant route of using cfsavecontent around my content and pushing the resulting variable as an attribute into the now-self-closing custom tag. Mik At 03:23 PM 11/4/2009, Barney Boisvert wrote: just do cfset thisTag.generatedContent = / in the end tag? CF has to do one or the other (render the output or suppress the output), and then provide a means to accomplish the other. At least from the perspective of the principle of least surprise, rendering the output seems like the correct default choice. cheers, barneyb On Wed, Nov 4, 2009 at 12:16 PM, Mik Muller ad...@montaguema.net wrote: Hmm having never made a custom tag with an open and close pair, I didn't realize that the contained content will display twice. http://www.mail-archive.com/cf-talk@houseoffusion.com/msg29687.html No way around this? It seems pretty stupid that CF wouldn't suppress the initial output, leaving the responsibility of displaying the content to the tag. Mik At 01:25 PM 11/4/2009, Michael Muller wrote: Hey all I'm trying to make a custom tag for cfmail so I can create a standard From, Subject, and HTML layout inside the email that is sent. I have created the tag and am using the open / close method, but the content of the email winds up being displayed on the page, as well as being emailed. I'm using THIS.generatedContent inside the custom tag in the body of the cfmail tag, and have even tried wrapping the tag inside a cfsilent. What am I missing? How do I stop the body of the custom tag from displaying, or is that not possible. Mik cf_mailsend to=s...@address.comyadda yadda/cf_mailsend cfsilent cfswitch expression=#thisTag.ExecutionMode# cfcase value=start cfparam name=attributes.to default= /cfcase cfcase value=end cfmail to=#trim(attributes.to)# subject=subject from=f...@address.com type=HTML div style=padding:20px; margin:20px; border:2px solid blue; #trim(thistag.generatedcontent)# /div /cfmail /cfcase /cfswitch cfsilent Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328049 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmail custom tag
I didn't test it, but try something like: cfsilent !--- No need for an end tag --- cfif NOT compareNoCase(thisTag.executionMode, end) cfexit method=exitTag /cfif !--- Required attributes --- cfparam name=attributes.to !--- Default attributes --- cfparam name=attributes.from default=f...@address.com cfparam name=attributes.subject default=Default Subject cfparam name=attributes.type default=HTML !--- Send email --- !--- CF 8 or later version could be: cfmail attributeCollection=#attributes# --- cfmail from=#attributes.from# to=#trim(attributes.to)# subject=#attributes.subject# type=#attributes.type# div style=padding:20px; margin:20px; border:2px solid blue; #trim(thisTag.generatedContent)# /div /cfmail !--- Kill the output --- cfset thisTag.generatedContent = /cfsilent -- Brad Roberts AgentBlaze, LLC Office: (865) 681-8390 Fax: (866) 583-9334 b...@agentblaze.com http://www.agentblaze.com On Wed, Nov 4, 2009 at 1:25 PM, Michael Muller mich...@mullertech.comwrote: Hey all I'm trying to make a custom tag for cfmail so I can create a standard From, Subject, and HTML layout inside the email that is sent. I have created the tag and am using the open / close method, but the content of the email winds up being displayed on the page, as well as being emailed. I'm using THIS.generatedContent inside the custom tag in the body of the cfmail tag, and have even tried wrapping the tag inside a cfsilent. What am I missing? How do I stop the body of the custom tag from displaying, or is that not possible. Mik cf_mailsend to=s...@address.comyadda yadda/cf_mailsend cfsilent cfswitch expression=#thisTag.ExecutionMode# cfcase value=start cfparam name=attributes.to default= /cfcase cfcase value=end cfmail to=#trim(attributes.to)# subject=subject from= f...@address.com type=HTML div style=padding:20px; margin:20px; border:2px solid blue; #trim(thistag.generatedcontent)# /div /cfmail /cfcase /cfswitch cfsilent Michael Muller office (413) 863-6455 cell (413) 320-5336 skype: michaelBmuller http://MontagueWebWorks.com Information is not knowledge Knowlege is not wisdom Eschew Obfuscation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328050 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ColdFusion on Solaris Automatic Startup Scripts
Who are you when you run this? On Wed, Nov 4, 2009 at 16:46, Ian Skinner h...@ilsweb.com wrote: According to this technote: Workaround for ColdFusion Startup with System Startup on Solaris (ColdFusion 8 and 8.0.1) http://kb2.adobe.com/cps/403/kb403351.html, we should be able to run these scripts and it will create the start up and kill scripts that will automatically start ColdFusion when the box is powered on. It does not work for us. We get the following errors. # ./cf-init.sh install Creating the Coldfusion 8 start script /etc/init.d/coldfusion8multi cp: cannot access /opt/jrun4/bin/cf-multi-startup Adding ColdFusion 8 start/kill links ln: cannot create ./STARTSCRIPT: File exists Install complete The referenced files/folders to not exist. What can be done to get this to work on our multi-home enterprise edition ColdFusion server running on a Solaris 10 box. TIA Ian ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328051 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ColdFusion on Solaris Automatic Startup Scripts
Maureen Barger wrote: Who are you when you run this? The system admin that gets to do this runs it as root. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328052 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: custom tag content displaying twice
The custom tag isn't rendering the content again, YOU are rendering the content again. If you create an empty custom tag and invoke it, you'll get a single copy of the output. If you then add emitting of the generated content in the custom tag, you'll get two copies. So building up from the nothing case, you can see that you should expect double output if you're doing outputting explicitly. The EM tag in HTML is rather different, because it's being interpreted as a formatting directive, not executed as code. A better example would be CFQUERY, where the generated content (the SQL statement) is not emitted to the page output. If you were to reimplement a simplistic CFQUERY, it might look like this (using some magic helper functions for brevity): cfif thisTag.executionMode EQ start cfparam name=attributes.dsn default=#application.dsn# / cfelse cfset sql = thisTag.generatedContent / cfset thisTag.generatedContent = / !--- we don't want the SQL emitted --- cfset result = runQueryOnDsn(attributes.dsn, sql) / cfif structKeyExists(attributes, name) cfset caller[attributes.name] = result / /cfif /cfif cheers, barneyb On Wed, Nov 4, 2009 at 2:06 PM, Mik Muller ad...@montaguema.net wrote: Barney, Well, as I said, in this case the prinicple of least surprise would have effused a behavior wherein the page calling the custom tag would not have rendered the content, leaving that responsibility to the tag itself. In _my_ mind, anyway. I mean, if the tag is supposed to receive the content, the calling page really has no business rendering the content again. And not being able to stop it from being rendered again is a serious drawback. I mean, think of the lowly EM tag. It takes the input and renders the content in italics (or whatever). The browser doesn't then render the content again UNitalicized, correct? It trusts the EM tag to take care of its business. Isn't that the way a tag should work? I'll try your suggestion, below, but I've already gone the less elegant route of using cfsavecontent around my content and pushing the resulting variable as an attribute into the now-self-closing custom tag. Mik -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328053 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LIST SPEED
Robert, This type of problem tends to be on a per-user level. Some are slow, some are really slow and some get their mail 5 seconds before they send it. :) Are you using a passthrough or alias? I checked the logs for the last 5 days and there isn't any record with your address or even the domain austin-williams.com. With some more information, I can get to the root of your mail delay problem. Thanks -- Michael Dinowitz On Wed, Nov 4, 2009 at 12:12 PM, Robert Harrison rob...@austin-williams.com wrote: I'm getting list email something like 90 minutes after it's sent. Is that normal? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328054 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LIST SPEED
Mike, Is your account on the list set to send the mail directly to gmail or to another location before going to gmail? I ask because I've never heard of a delay with gmail users. I'd be very concerned if there was a reoccurring delay for mail sent to gmail users. Thanks -- Michael On Wed, Nov 4, 2009 at 5:04 PM, Mike Kear afpwebwo...@gmail.com wrote: No it's not normal. Any posts i make usually appear in my gmail account several hours after sending them. If i create a new thread, I can frequently see the new thread on the houseoffusion.com site about 6 hours before it appears in my gmail account. At other times, i sometimes see a reply post before i see my own post. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Nov 5, 2009 at 4:12 AM, Robert Harrison rob...@austin-williams.com wrote: I'm getting list email something like 90 minutes after it's sent. Is that normal? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328055 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: LIST SPEED
Is your account on the list set to send the mail directly to gmail or to another location before going to gmail? I ask because I've never heard of a delay with gmail users. I'd be very concerned if there was a reoccurring delay for mail sent to gmail users. I love Gmail in an almost unnatural way, so it pains me to say this, but yes, there is often a delay for Gmail users. And it's not just your list, other lists have this problem too. I get messages out of order occasionally too, which is a bit disconcerting sometimes, but it's just the way things are - there's so much filtering, etc, going on at Google. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328056 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF LMS solutions
I was perusing a thread from 2008 about this, but we are looking for an open source LMS solution that is written in CF. Anyone have any ideas? Thanks! Eric ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328057 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfinvoke vs creatobject
What does the target webservice accept as arguments for the runXS method? mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/11/5 Alex listnu...@gmail.com: I'm having a heck of a time trying to figure this out. The code below works great when I use createObject, but it doesn't when I use cfinvoke. The reason I want to use cfinvoke is that it takes a while for it to return the data, and I can set a timeout on the cfinvoke (and I can't when I use createObject) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328058 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Strange Behavior Between ColdFusion Database
Hi Everyone, I am running ColdFusion 8 with SQL Server 2005. I recently decided to take a direct query against the database and simply move it into a stored procedure instead. So before I was doing a cfquery I am now doing a cfstoredproc instead. After I made the change, I logged onto my website and requested the data from the interface and it took a long time for database to retrieve the result. I began digging into this by looking at the performance of my database server while the request was running. I discovered that it was reading from the disk for the entire time. I know your first reaction will be to tell me to check my table, index, queries etc...but here is the kicker. After I executed the stored procedure from the front end, I logged onto the database server, opened SQL Studio Management Express, executed the same stored procedure with identical parameters and it returned within a couple of seconds (ALL WHILE the front end was still waiting on the same data!). Does anyone have any experience with a similar problem. Basically, I'm seeing different database behavior from Coldfusion vs. directly against the database (SQL Studio Management Express). ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328059 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: LIST SPEED
I concur. I often get the same delays, but it does seem to be a gmail thing. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/11/5 Dave Watts: Is your account on the list set to send the mail directly to gmail or to another location before going to gmail? I ask because I've never heard of a delay with gmail users. I'd be very concerned if there was a reoccurring delay for mail sent to gmail users. I love Gmail in an almost unnatural way, so it pains me to say this, but yes, there is often a delay for Gmail users. And it's not just your list, other lists have this problem too. I get messages out of order occasionally too, which is a bit disconcerting sometimes, but it's just the way things are - there's so much filtering, etc, going on at Google. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328060 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4