Re: Packing directory output to a list
thanks, i'll work on it and get back to you ~| 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:326529 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Issue converting to Application.cfc from Application.cfm having UDF's
I need help in converting application.cfm to application.cfc. I have few functions defined in my current application.cfm, out of which few are called within application.cfm only. One of the function I have in my application.cfm is like as below: cffunction name=loadAppCFC access=public displayname=Load CFC module hint=Load CFCs into the application scope cfargument name=ObjectName REQUIRED=Yes TYPE=variableName cfargument name=LocalName type=variableName default=#Arguments.ObjectName# cfargument name=Reload type=string default=n cfif Arguments.Reload eq y OR NOT IsDefined (Application.Obj.#Arguments.ObjectName#) OR ISDefined (Application.CFCReload.#Arguments.ObjectName#) CFTRACE text=Reloading cfc object #Arguments.ObjectName# - #ISDefined('Application.CFCReload.#Arguments.ObjectName#')# cflock timeout=5 throwontimeout=Yes name=#Arguments.ObjectName# type=EXCLUSIVE cfobject name=Application.Obj.#Arguments.LocalName# component=\CMP\#Arguments.ObjectName# CFIF IsDefined(Application.CFCReload) cfset StructDelete(Application.CFCReload, Arguments.ObjectName, True) /CFIF /cflock /cfif cfset Variables[Arguments.LocalName] = evaluate (Application.Obj.#Arguments.LocalName#) /cffunction In my Application.cfm loadAppCFC is used as below: CFSET loadAppCFC(comUDF, comUDF, Application.ini.debug.ReloadObjects) comUDF is again a CFC file containg UDF's. Now when I am converting the code to application.cfc I inlcuded onApplicationStart, OnSessionStart and OnRequest events. I separated all the udf's into one file (all_udf.cfm) and I am including them as below: cffunction name=onRequest cfargument name=targetPage type=string required=yes cfinclude template=all_udf.cfm cfinclude template=#targetPage# /cffunction I also included that file under onApplicationStart as below: cffunction name=onApplicationStart returntype=boolean cfinclude template=all_udf.cfm But I am still getting the error as COMUDF is undefined. Please see if anyone can provide any pointers in this regard.. Thanks! Sanjeev Singla ~| 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:326530 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF jQuery - How to delay ajax completion until images are processed...
Rick I think the exact problem area I the code above is the call to the function fnGetRentalProperties(), which goes out to another cfc method and constructs HTML for display before all the data is finished processing. Have you tried invoking the fnGetRentalProperties() as a callback function?. check out this link for a simple example, http://www.swish-db.com/tutorials/view.php/tid/621 I think Ajaxcomplete does the same thing, have not tested. RV ~| 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:326531 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
(My apologies to everyone on the list...when I started this thread, I didn't know if this would be more of a CF or jQuery issue...turns out, at least for now, it looks like the solution is client-side) It looks like the code falls within that pattern... Here's what I'm using: $.ajax ({ cache:false, type: 'post', url: 'rentalProperties.cfc?method=mAddRentalPropertyreturnFormat=json', dataType: 'json', data: values, async:false, success: function(response) { if ( response.STATUS == 'Success' ) { var rentalPropertyAddDialogHTML = 'rentalPropertyAddDialogHTML.cfm?' + new Date().getTime(); $('.rentalPropertyAddDialog').fadeOut(100); $('.rentalPropertyAddDialog').empty(); $('.rentalPropertyAddResponseDialog').fadeIn(100); fnGetRentalProperties(); } else { alert('Failed to add new property'); } } etc... What may be complicating this is the fact that since images can't be submitted via true AJAX, then an iframe has to be used to intercept the submission and handle it. That's modified code that Ben Nadel wrote for this purpose...I'm not totally clear on how it interacts with the $.ajax call. Here's the code that reacts when the form is submitted. $(document).ready(function() { $('#addButton').live('click', function() { $('.rentalPropertyAddDialog').hide(); processAddRentalPropertyForm(); }); }); function processAddRentalPropertyForm() { var addNewRentalPropertyForm = $('#addNewRentalPropertyForm'); addNewRentalPropertyForm.submit(function(objEvent){ var jThis = $(this); var strName = (uploader + (new Date()).getTime()); var jFrame = $(iframe name=\ + strName + \ src=about:blank\ / ); jFrame.css(display, none); jFrame.load(function(objEvent){ var objUploadBody = window.frames[strName].document.getElementsByTagName(body)[0]; var jBody = $(objUploadbody); }); $(body:first).append(jFrame); jThis .attr(action, rentalProperties.cfc?method=mAddRentalPropertyreturnFormat=json) .attr(method, post) .attr(enctype, multipart/form-data) .attr(encoding, multipart/form-data) .attr(target, strName); var dialogPosition = $(window).scrollTop(); var dialogPosition = dialogPosition + 100; $('.rentalPropertyAddResponseDialog').css('top', dialogPosition); $('.rentalPropertyAddResponseDialog').fadeIn(250); }); } -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Wednesday, September 23, 2009 12:06 AM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... async: false should be doing the job. To be sure, your code looks something like that example: jQuery.ajax({ url:'http://example.com/catalog/create/' + targetNode.id + '?name=' + encode(to.inp[0].value), success: function(result) { if(result.isOk == false) alert(result.message); }, async: false }); right? ~| 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:326532 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF jQuery - How to delay ajax completion until images are processed...
Thanks, Raj...I'll have a look at doing that. I think the veil has been lifted from my eyes, however, regarding what's happening with my code. If you saw my last post, including the additional code that is actually intercepting the form submission, it's clear that the ajax call isn't actually handling the form submission. And the code that's intercepting the call isn't ajax, but just a straight js submission. It seems that the modification needed to achieve the desired results will need to be in the second section of code (see my post just before this one). Rick -Original Message- From: Raj Vijay [mailto:vraajku...@rediffmail.com] Sent: Wednesday, September 23, 2009 8:37 AM To: cf-talk Subject: Re: CF jQuery - How to delay ajax completion until images are processed... Rick I think the exact problem area I the code above is the call to the function fnGetRentalProperties(), which goes out to another cfc method and constructs HTML for display before all the data is finished processing. Have you tried invoking the fnGetRentalProperties() as a callback function?. check out this link for a simple example, http://www.swish-db.com/tutorials/view.php/tid/621 I think Ajaxcomplete does the same thing, have not tested. RV ~| 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:326533 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: HoF invaded
On Tuesday 15 Sep 2009, Jacob wrote: Format C: - Reinstall apps - restore data from backup. Although probably OK in this case, note that malware could be hiding in the BIOS, Intel vPro etc. etc., especially if you have been target specifically. -- Helping to efficiently establish market-driven experiences as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.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:326534 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Issue converting to Application.cfc from Application.cfm having UDF's
Why don't you just but your UDF's in your Application.cfc directly? Then those functions are automatically available from anywhere within your Application.cfc. Otherwise, I would put those functions within a utility cfc, which you could place in an APPLICATION scoped variable inside your onApplicationStart() method, which you could then access from anywhere within your application. Either method should force you to re-evaluate how you set and reset your scope variables, and you will probably find better ways of doing these things than you may have used in the past. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 9/23/2009 6:36 AM, SANJEEV SINGLA wrote: I need help in converting application.cfm to application.cfc. I have few functions defined in my current application.cfm, out of which few are called within application.cfm only. One of the function I have in my application.cfm is like as below: cffunction name=loadAppCFC access=public displayname=Load CFC module hint=Load CFCs into the application scope cfargument name=ObjectName REQUIRED=Yes TYPE=variableName cfargument name=LocalName type=variableName default=#Arguments.ObjectName# cfargument name=Reload type=string default=n cfif Arguments.Reload eq y OR NOT IsDefined (Application.Obj.#Arguments.ObjectName#) OR ISDefined (Application.CFCReload.#Arguments.ObjectName#) CFTRACE text=Reloading cfc object #Arguments.ObjectName# - #ISDefined('Application.CFCReload.#Arguments.ObjectName#')# cflock timeout=5 throwontimeout=Yes name=#Arguments.ObjectName# type=EXCLUSIVE cfobject name=Application.Obj.#Arguments.LocalName# component=\CMP\#Arguments.ObjectName# CFIF IsDefined(Application.CFCReload) cfset StructDelete(Application.CFCReload, Arguments.ObjectName, True) /CFIF /cflock /cfif cfset Variables[Arguments.LocalName] = evaluate (Application.Obj.#Arguments.LocalName#) /cffunction In my Application.cfm loadAppCFC is used as below: CFSET loadAppCFC(comUDF, comUDF, Application.ini.debug.ReloadObjects) comUDF is again a CFC file containg UDF's. Now when I am converting the code to application.cfc I inlcuded onApplicationStart, OnSessionStart and OnRequest events. I separated all the udf's into one file (all_udf.cfm) and I am including them as below: cffunction name=onRequest cfargument name=targetPage type=string required=yes cfinclude template=all_udf.cfm cfinclude template=#targetPage# /cffunction I also included that file under onApplicationStart as below: cffunction name=onApplicationStart returntype=boolean cfinclude template=all_udf.cfm But I am still getting the error as COMUDF is undefined. Please see if anyone can provide any pointers in this regard.. Thanks! Sanjeev Singla ~| 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:326535 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Form Output Iteration/Looping Question
Hi, Thank you for taking a minute to look at my post... In the form output section below, I'm wondering how to dynamically add the number at the end of the id (form.vendor_id* form.nvc_id*). I should be able to loop and dynamically create the output section below instead of hardcoding the numbers like I have. The ID numbera (4-19) represents the recordkey in the db. * FORM INPUT * input type=hidden id=vendor_id name=vendor_id#recordkey# value=td#vendor#/tdtd#item_id#/tdtd#description#/td cfinput type=Text name=nvc_id#recordkey# maxlength=100 required=yes size=3 * FORM OUTPUT * cfelseif form.ID eq ont_count trtdPlant: /tdtd#form.plant#/td/tr tr#form.vendor_id4#td#form.nvc_id4#/td/tr tr#form.vendor_id5#td#form.nvc_id5#/td/tr tr#form.vendor_id6#td#form.nvc_id6#/td/tr tr#form.vendor_id7#td#form.nvc_id7#/td/tr tr#form.vendor_id8#td#form.nvc_id8#/td/tr tr#form.vendor_id9#td#form.nvc_id9#/td/tr tr#form.vendor_id10#td#form.nvc_id10#/td/tr tr#form.vendor_id11#td#form.nvc_id11#/td/tr tr#form.vendor_id12#td#form.nvc_id12#/td/tr tr#form.vendor_id13#td#form.nvc_id13#/td/tr tr#form.vendor_id14#td#form.nvc_id14#/td/tr tr#form.vendor_id15#td#form.nvc_id15#/td/tr tr#form.vendor_id16#td#form.nvc_id16#/td/tr tr#form.vendor_id17#td#form.nvc_id17#/td/tr tr#form.vendor_id18#td#form.nvc_id18#/td/tr tr#form.vendor_id19#td#form.nvc_id19#/td/tr /cfif Hope you have all the info you need. If you have any questions, please ask. Thank you again for looking at this post. ~| 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:326536 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 Output Iteration/Looping Question
You could always use bracket notation: form[vendor_id#i#], where i is the index of your iteration. On 2009-09-23, at 11:05, patrick buch patrick.b...@verizon.com wrote: Hi, Thank you for taking a minute to look at my post... In the form output section below, I'm wondering how to dynamically add the number at the end of the id (form.vendor_id* form.nvc_id*). I should be able to loop and dynamically create the output section below instead of hardcoding the numbers like I have. The ID numbera (4-19) represents the recordkey in the db. * FORM INPUT * input type=hidden id=vendor_id name=vendor_id#recordkey# value=td#vendor#/tdtd#item_id#/tdtd#description#/td cfinput type=Text name=nvc_id#recordkey# maxlength=100 required=yes size=3 * FORM OUTPUT * cfelseif form.ID eq ont_count trtdPlant: /tdtd#form.plant#/td/tr tr#form.vendor_id4#td#form.nvc_id4#/td/tr tr#form.vendor_id5#td#form.nvc_id5#/td/tr tr#form.vendor_id6#td#form.nvc_id6#/td/tr tr#form.vendor_id7#td#form.nvc_id7#/td/tr tr#form.vendor_id8#td#form.nvc_id8#/td/tr tr#form.vendor_id9#td#form.nvc_id9#/td/tr tr#form.vendor_id10#td#form.nvc_id10#/td/tr tr#form.vendor_id11#td#form.nvc_id11#/td/tr tr#form.vendor_id12#td#form.nvc_id12#/td/tr tr#form.vendor_id13#td#form.nvc_id13#/td/tr tr#form.vendor_id14#td#form.nvc_id14#/td/tr tr#form.vendor_id15#td#form.nvc_id15#/td/tr tr#form.vendor_id16#td#form.nvc_id16#/td/tr tr#form.vendor_id17#td#form.nvc_id17#/td/tr tr#form.vendor_id18#td#form.nvc_id18#/td/tr tr#form.vendor_id19#td#form.nvc_id19#/td/tr /cfif Hope you have all the info you need. If you have any questions, please ask. Thank you again for looking at this post. ~| 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:326537 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 Output Iteration/Looping Question
Something bothers me about your code below... tr#form.vendor_id5#td#form.nvc_id5#/td/tr Shouldn't there be a td after the tr Anyway, you could do the same thing like so... cfoutput cfloop from=4 to=49 index=x trtd#form['vendor_id' x]#/tdtd#form['nvc_id' x]#/td/tr /cfloop /cfoutput Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: patrick buch [mailto:patrick.b...@verizon.com] Sent: Wednesday, September 23, 2009 9:59 AM To: cf-talk Subject: Form Output Iteration/Looping Question Hi, Thank you for taking a minute to look at my post... In the form output section below, I'm wondering how to dynamically add the number at the end of the id (form.vendor_id* form.nvc_id*). I should be able to loop and dynamically create the output section below instead of hardcoding the numbers like I have. The ID numbera (4-19) represents the recordkey in the db. * FORM INPUT * input type=hidden id=vendor_id name=vendor_id#recordkey# value=td#vendor#/tdtd#item_id#/tdtd#description#/td cfinput type=Text name=nvc_id#recordkey# maxlength=100 required=yes size=3 * FORM OUTPUT * cfelseif form.ID eq ont_count trtdPlant: /tdtd#form.plant#/td/tr tr#form.vendor_id4#td#form.nvc_id4#/td/tr tr#form.vendor_id5#td#form.nvc_id5#/td/tr tr#form.vendor_id6#td#form.nvc_id6#/td/tr tr#form.vendor_id7#td#form.nvc_id7#/td/tr tr#form.vendor_id8#td#form.nvc_id8#/td/tr tr#form.vendor_id9#td#form.nvc_id9#/td/tr tr#form.vendor_id10#td#form.nvc_id10#/td/tr tr#form.vendor_id11#td#form.nvc_id11#/td/tr tr#form.vendor_id12#td#form.nvc_id12#/td/tr tr#form.vendor_id13#td#form.nvc_id13#/td/tr tr#form.vendor_id14#td#form.nvc_id14#/td/tr tr#form.vendor_id15#td#form.nvc_id15#/td/tr tr#form.vendor_id16#td#form.nvc_id16#/td/tr tr#form.vendor_id17#td#form.nvc_id17#/td/tr tr#form.vendor_id18#td#form.nvc_id18#/td/tr tr#form.vendor_id19#td#form.nvc_id19#/td/tr /cfif Hope you have all the info you need. If you have any questions, please ask. Thank you again for looking at this post. ~| 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:326538 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Database Deadlock with Multi-Server CF Config?
Hello, This is less about getting a specific answer and more about just finding out how to diagnose the problem. Client has an ColdFusion application in a multi-server instance behind a hardware load balancer. The ColdFusion server are on separate machines but talk to the same MS-SQL db. Within the last few days users have started to see ColdFusion errors saying that: [Macromedia][SQLServer JDBC Driver][SQLServer]Transaction (Process ID 102) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. Any clues what this might be in regards to? How do I go about trying to track this down? And does this have anything to do with the multi-server setup or is it just a more vanilla problem with an update occurring slowly with the server? An insight would be much appreciated. Matthew Reinbold Creative Principal, Vox Pop Design, http://voxpopdesign.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:326539 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 Output Iteration/Looping Question
Thanks Francois Mark on the bracket info... I was not aware of that and yes, it is working great. Mark, to answer your question on the code, I have the TD in the hidden input. Hi, Thank you for taking a minute to look at my post... In the form output section below, I'm wondering how to dynamically add the number at the end of the id (form.vendor_id* form.nvc_id*). I should be able to loop and dynamically create the output section below instead of hardcoding the numbers like I have. The ID numbera (4-19) represents the recordkey in the db. * FORM INPUT * input type=hidden id=vendor_id name=vendor_id#recordkey# value=td#vendor#/tdtd#item_id#/tdtd#description#/td cfinput type=Text name=nvc_id#recordkey# maxlength=100 required=yes size=3 * FORM OUTPUT * cfelseif form.ID eq ont_count trtdPlant: /tdtd#form.plant#/td/tr tr#form. vendor_id4#td#form.nvc_id4#/td/tr tr#form.vendor_id5#td#form.nvc_id5#/td/tr tr#form.vendor_id6#td#form.nvc_id6#/td/tr tr#form.vendor_id7#td#form.nvc_id7#/td/tr tr#form.vendor_id8#td#form.nvc_id8#/td/tr tr#form.vendor_id9#td#form.nvc_id9#/td/tr tr#form.vendor_id10#td#form.nvc_id10#/td/tr tr#form.vendor_id11#td#form.nvc_id11#/td/tr tr#form.vendor_id12#td#form.nvc_id12#/td/tr tr#form.vendor_id13#td#form.nvc_id13#/td/tr tr#form.vendor_id14#td#form.nvc_id14#/td/tr tr#form.vendor_id15#td#form.nvc_id15#/td/tr tr#form.vendor_id16#td#form.nvc_id16#/td/tr tr#form.vendor_id17#td#form.nvc_id17#/td/tr tr#form.vendor_id18#td#form.nvc_id18#/td/tr tr#form.vendor_id19#td#form.nvc_id19#/td/tr /cfif Hope you have all the info you need. If you have any questions, please ask. Thank you again for looking at this post. ~| 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:326540 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Database Deadlock with Multi-Server CF Config?
This is a locking problem in the database. Probably two different cfm pages are attempting to edit the same database records at the same time. Troubleshooting deadlocks in SQL Server is a big subject. I'd start searching the SQL server Books online and go from there. Steve -Original Message- From: Matthew Reinbold [mailto:matthew.reinb...@voxpopdesign.com] Sent: Wednesday, September 23, 2009 12:00 PM To: cf-talk Subject: Database Deadlock with Multi-Server CF Config? Hello, This is less about getting a specific answer and more about just finding out how to diagnose the problem. Client has an ColdFusion application in a multi-server instance behind a hardware load balancer. The ColdFusion server are on separate machines but talk to the same MS-SQL db. Within the last few days users have started to see ColdFusion errors saying that: [Macromedia][SQLServer JDBC Driver][SQLServer]Transaction (Process ID 102) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. Any clues what this might be in regards to? How do I go about trying to track this down? And does this have anything to do with the multi-server setup or is it just a more vanilla problem with an update occurring slowly with the server? An insight would be much appreciated. Matthew Reinbold Creative Principal, Vox Pop Design, http://voxpopdesign.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:326541 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Database Deadlock with Multi-Server CF Config?
It's less a CF issue, and more about a traffic and simultaneous reads/writes. Make good use of WITH NOLOCK on database reads where you can. It's not always a single record that is locking. Depending on how your tables are indexed and a variety of other factors, a page (SQL page) could be locked, or the whole table could be locked -- just for a read. Also, the users shouldn't be seeing that error at all, right? (site-wide error handler...) Cheers, Kris This is less about getting a specific answer and more about just finding out how to diagnose the problem. Client has an ColdFusion application in a multi-server instance behind a hardware load balancer. The ColdFusion server are on separate machines but talk to the same MS-SQL db. Within the last few days users have started to see ColdFusion errors saying that: [Macromedia][SQLServer JDBC Driver][SQLServer]Transaction (Process ID 102) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. Any clues what this might be in regards to? How do I go about trying to track this down? And does this have anything to do with the multi-server setup or is it just a more vanilla problem with an update occurring slowly with 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:326542 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Getting URL from URL address bar!
Hello, My company needs to track when users type either one domain or the other to get to the final page, for example a person types www.xyz.com or www.abc.com to be redirected to www.finalsite.com. I know how to do the redirect, but how can I capture the address they typed to finally get to the site. I need to know also when the user clicks the link from a search engine. Thanks, David ~| 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:326543 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
Do it on the app sever. Accept requests for xyz.com and abc.com, log the request, and then redirect to finalsite.com. Just make sure you do a 302 so search engines won't correct themselves. cheers, barneyb On Wed, Sep 23, 2009 at 10:54 AM, David Torres djt...@yahoo.com wrote: Hello, My company needs to track when users type either one domain or the other to get to the final page, for example a person types www.xyz.com or www.abc.com to be redirected to www.finalsite.com. I know how to do the redirect, but how can I capture the address they typed to finally get to the site. I need to know also when the user clicks the link from a search engine. Thanks, David ~| 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:326544 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Getting URL from URL address bar!
Check the cgi scope. I recommend cgi.http_referer and cgi.server_name. ~Brad Original Message Subject: Getting URL from URL address bar! From: David Torres djt...@yahoo.com Date: Wed, September 23, 2009 12:54 pm To: cf-talk cf-talk@houseoffusion.com Hello, My company needs to track when users type either one domain or the other to get to the final page, for example a person types www.xyz.com or www.abc.com to be redirected to www.finalsite.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:326545 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Getting URL from URL address bar!
Hmm... should it be a 301? -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, September 23, 2009 11:02 AM To: cf-talk Subject: Re: Getting URL from URL address bar! Do it on the app sever. Accept requests for xyz.com and abc.com, log the request, and then redirect to finalsite.com. Just make sure you do a 302 so search engines won't correct themselves. cheers, barneyb On Wed, Sep 23, 2009 at 10:54 AM, David Torres djt...@yahoo.com wrote: Hello, My company needs to track when users type either one domain or the other to get to the final page, for example a person types www.xyz.com or www.abc.com to be redirected to www.finalsite.com. I know how to do the redirect, but how can I capture the address they typed to finally get to the site. I need to know also when the user clicks the link from a search engine. Thanks, David ~| 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:326546 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
301 is permanent, which tells people they can safely skip xyz.com and go right to finalsite.com. I.e. that it's safe to never actually hit xyz.com and just automatically do the rewrite without an HTTP request. You don't want that if you want to track the traffic on xyz.com. cheers, barneyb On Wed, Sep 23, 2009 at 11:12 AM, Jacob ja...@excaliburfilms.com wrote: Hmm... should it be a 301? -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, September 23, 2009 11:02 AM To: cf-talk Subject: Re: Getting URL from URL address bar! Do it on the app sever. Accept requests for xyz.com and abc.com, log the request, and then redirect to finalsite.com. Just make sure you do a 302 so search engines won't correct themselves. cheers, barneyb On Wed, Sep 23, 2009 at 10:54 AM, David Torres djt...@yahoo.com wrote: Hello, My company needs to track when users type either one domain or the other to get to the final page, for example a person types www.xyz.com or www.abc.com to be redirected to www.finalsite.com. I know how to do the redirect, but how can I capture the address they typed to finally get to the site. I need to know also when the user clicks the link from a search engine. Thanks, David ~| 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:326547 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
Thank you guys for the prompt reply, but either application server will do the job, which I haven't tried yet, or my question has misleaded you. I have tried to use CGI variables, but the SERVER_NAME and the HTTP_HOST they both contain the www.finalsite.com when aither url is entered. I need to know a way when the user gets to index.cfm, capture the URL they typed after they hit the ENTER key. The HTTP_REFERER contains information only when the request is coming from a search engine, after that HTTP_REFERER is empty. So in summary: - User types either site www.abc.com or www.xyz.com - index.cfm has the logic to check what the user has typed to get there - redirect happens to www.finalsite.com 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:326548 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ampersands being stripped from query_string
Either cfdump the cgi object or try to clear the cache. That may help. David ~| 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:326549 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Getting URL from URL address bar!
REFERRER isn't just for search engines. It's whatever page they were last on. -Original Message- From: David Torres [mailto:djt...@yahoo.com] Sent: Wednesday, September 23, 2009 1:30 PM To: cf-talk Subject: Re: Getting URL from URL address bar! Thank you guys for the prompt reply, but either application server will do the job, which I haven't tried yet, or my question has misleaded you. I have tried to use CGI variables, but the SERVER_NAME and the HTTP_HOST they both contain the www.finalsite.com when aither url is entered. I need to know a way when the user gets to index.cfm, capture the URL they typed after they hit the ENTER key. The HTTP_REFERER contains information only when the request is coming from a search engine, after that HTTP_REFERER is empty. So in summary: - User types either site www.abc.com or www.xyz.com - index.cfm has the logic to check what the user has typed to get there - redirect happens to www.finalsite.com 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:326550 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
You don't believe me when I said that the referer is empty when the page loads when users type in the url. I did another test, and still is empty. David ~| 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:326551 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
Actually kind of in-between. It's not just search engines... it's the page that _linked_ to your current location. If someone types in the address, there won't be a referrer... but they could have a referrer from some other location other than a search engine. This is from RFC 2616: 14.36 Referer The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained (the referrer, although the header field is misspelled.) The Referer request-header allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance. The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard. Referer= Referer : ( absoluteURI | relativeURI ) Example: Referer: http://www.w3.org/hypertext/DataSources/Overview.html Fielding, et al.Standards Track [Page 140] http://tools.ietf.org/html/rfc2616#page-141 RFC 2616 http://tools.ietf.org/html/rfc2616 HTTP/1.1 June 1999 If the field value is a relative URI, it SHOULD be interpreted relative to the Request-URI. The URI MUST NOT include a fragment. See section 15.1.3 http://tools.ietf.org/html/rfc2616#section-15.1.3 for security considerations. Short version is... _if_ the browser is compliant (not guaranteed) then you'll get the referrer if they come in from a link. They won't from typing in anything. I think the question here is: how are you handling the referral? If that's something you have control over, you could do something like this: User comes in to site a: site a generates a uuid, then sends them a cflocation url= http://www.finalsite.com?ref=#UUID#; Or just a simple cflocation url= http://www.finalsite.com?ref=#urlencode(cgi.http_host)# At your arriving page you test for the existence of the url.ref and go from there? On Wed, Sep 23, 2009 at 3:37 PM, Andy Matthews li...@commadelimited.comwrote: REFERRER isn't just for search engines. It's whatever page they were last on. -Original Message- From: David Torres [mailto:djt...@yahoo.com] Sent: Wednesday, September 23, 2009 1:30 PM To: cf-talk Subject: Re: Getting URL from URL address bar! Thank you guys for the prompt reply, but either application server will do the job, which I haven't tried yet, or my question has misleaded you. I have tried to use CGI variables, but the SERVER_NAME and the HTTP_HOST they both contain the www.finalsite.com when aither url is entered. I need to know a way when the user gets to index.cfm, capture the URL they typed after they hit the ENTER key. The HTTP_REFERER contains information only when the request is coming from a search engine, after that HTTP_REFERER is empty. So in summary: - User types either site www.abc.com or www.xyz.com - index.cfm has the logic to check what the user has typed to get there - redirect happens to www.finalsite.com 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:326552 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
If you're responding to Andy, he's 100% correct. Referer isn't just for search engines, it's whatever page they were last on. IF they were last on a page. When you type in the URL, referer will be empty because there was no referrer. Similarly, if you access the page from a bookmark, there will be no referer value. But it's not by any means specific to search engines. On Wed, Sep 23, 2009 at 12:45 PM, David Torres djt...@yahoo.com wrote: You don't believe me when I said that the referer is empty when the page loads when users type in the url. I did another test, and still is empty. David ~| 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:326553 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Getting URL from URL address bar!
Barney already gave the exact description of how to handle this, but since it is painfully obvious that his instructions were not understood, I will attempt to spell it out again. 1) Set up your web server (Apache/IIS/Resin/Whatever) to respond to requests for each of the three domains in question. 2) Have Application.cfm/cfc use CGI variables (cgi.server_name I believe) to sniff out the requested domain. If it is one of the two fake names, record the request and then cflocation to the real domain. (If the request is made to the real domain, do nothing... it will process like normal.) Now then, on the CGI.HTTP_REFERRER variable If you type the address into your address bar, guess what? It will be empty! Why? Because you were not *referred* to the page. You typed it in! That's the way it works! To be more specific: any time someone arrives at your site by either directly typing in the URL or by way of a bookmark, the CGI.HTTP_REFERRER variable **will be empty**. Hopefully that helps. If not, please read the entire thread again. Over and over and over again until it sinks in. The answers have all been given multiple times. ~| 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:326554 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Getting URL from URL address bar!
If what you need is not in the referrer you have two options. 1) Make whatever is doing the redirect also do the logging the fact that someone came through redirect URL #17 2) Make whatever is doing the redirect add something into the URL that can can use to report off of. (http://www.a.com redirects to http://www.b.com?referrer=www.a.com) ~Brad Original Message Subject: Re: Getting URL from URL address bar! From: David Torres djt...@yahoo.com Date: Wed, September 23, 2009 2:45 pm To: cf-talk cf-talk@houseoffusion.com You don't believe me when I said that the referer is empty when the page loads when users type in the url. I did another test, and still is empty. David ~| 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:326555 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
Thank you all for the replies so far, but this is getting more complicated that I was expecting. I did have another option using javascript though, but I didn't want to implement it because I don't know if search engines will penalize you to have this type of redirect done like this. Here is my code in index.cfm: html body script type=text/javascript if (document.URL==www.abc.com || document.URL==www.xyz.com) window.location.href='http://www.myfinalsite.com/NIhits.html'; else window.location.href='http://www.myfinalsite.com/index.shtml'; /script /body /html NIhist.html has another redirect: html head script type=text/javascript window.location.href='http://www.myfinalsite.com/index.shtml'; /script /head Having this other page NIhits.html, I can utilize the page statistic from my hostsite, and see the statcs from users keying one web site or the other. If you see this is a poorly way to way to implement this let me know, with your suggestions of course,and if the search engines could penalize you for doing this. 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:326556 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
I did have another option using javascript though, but I didn't want to implement it because I don't know if search engines will penalize you to have this type of redirect done like this. Here is my code in index.cfm: html body script type=text/javascript if (document.URL==www.abc.com || document.URL==www.xyz.com) window.location.href='http://www.myfinalsite.com/NIhits.html'; else window.location.href='http://www.myfinalsite.com/index.shtml'; /script /body /html NIhist.html has another redirect: html head script type=text/javascript window.location.href='http://www.myfinalsite.com/index.shtml'; /script /head Having this other page NIhits.html, I can utilize the page statistic from my hostsite, and see the statcs from users keying one web site or the other. If you see this is a poorly way to way to implement this let me know, with your suggestions of course,and if the search engines could penalize you for doing this. Search engines will not follow JavaScript redirects. You really need to do this the way Barney suggested. Your redirect page should do the following: 1. Log the current URL. 2. Log HTTP_REFERER, which may well be empty. 3. Redirect using CFLOCATION. 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 info ~| 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:326557 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFLoop: Problem with variable wrapped in double quotes
I have the following code below (codeblock 01), which outputs the following three lines correctly: CFSET varMergeFile1 = c:\inetpub\uploads\pdf\resume_1.pdf CFSET varMergeFile2 = c:\inetpub\uploads\pdf\resume_2.pdf CFSET varMergeFile3 = c:\inetpub\uploads\pdf\resume_3.pdf [CODEBLOCK 01: BEGIN] !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfloop index=i from=#x# to=#listLength# step=1 cfoutputCFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf/cfoutputbr / /cfloop [CODEBLOCK 01: END] When I activate the cfset tag with angle brackets: CFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf, I get this error: Invalid CFML construct found on line 11 at column 38. ColdFusion was looking at the following text: # I then wrap double quotes around varMergeFile#i#, and receive no error, but the file I'm outputting is invalid and I believe that variable is not being defined correctly. Is their another way to write the above where varMergeFile#i# is not required to be wrapped by double quotes? Thanks, Dakota ~| 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:326558 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Is Infusion Still In Business?
Do you mean Coolfusion (makers of Infusion Mail Server)? http://www.coolfusion.com/ Their web site is still up. On Tue, Sep 22, 2009 at 9:20 AM, Robert Forsyth r...@wjla.com wrote: Is Infusion still in business? I have a couple of their servers installed and want to add another one. There shopping cart is broken and they have not returned any emails for info/support. Did they join the deadpool? I hope not. - Robert ~| 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:326559 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFLoop: Problem with variable wrapped in double quotes
use associative array notation: cfset variables['varMergerFile' i] = c:\inetpub\uploads\pdf\resume_#i#.pdf Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 24/09/2009 04:44, Dakota Burns wrote: I have the following code below (codeblock 01), which outputs the following three lines correctly: CFSET varMergeFile1 = c:\inetpub\uploads\pdf\resume_1.pdf CFSET varMergeFile2 = c:\inetpub\uploads\pdf\resume_2.pdf CFSET varMergeFile3 = c:\inetpub\uploads\pdf\resume_3.pdf [CODEBLOCK 01: BEGIN] !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfloop index=i from=#x# to=#listLength# step=1 cfoutputCFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf/cfoutputbr / /cfloop [CODEBLOCK 01: END] When I activate the cfset tag with angle brackets: CFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf, I get this error: Invalid CFML construct found on line 11 at column 38. ColdFusion was looking at the following text: # I then wrap double quotes around varMergeFile#i#, and receive no error, but the file I'm outputting is invalid and I believe that variable is not being defined correctly. Is their another way to write the above where varMergeFile#i# is not required to be wrapped by double quotes? Thanks, Dakota ~| 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:326560 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFLoop: Problem with variable wrapped in double quotes
If you're trying to dynamically generate code to put in a file, you can't do it that way. Do this instead: !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfset out = cfloop index=i from=#x# to=#listLength# step=1 cfset out = out 'CFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf' /cfloop cfoutput#out#/cfoutput Of course you won't see the output because it won't render ... but you can write the contents of the out variable to a file or put it in a DB or whatever. ALTERNATIVELY, if what you're actually tring to do is set the variables, do this: !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfset out = cfloop index=i from=#x# to=#listLength# step=1 CFSET variables[varMergeFile#i#] = c:\inetpub\uploads\pdf\resume_#i#.pdf !--- or, god forbit --- cfset setVariable(varMergeFile#i#, c:\inetpub\uploads\pdf\resume_#i#.pdf) /cfloop -- Rick Root CFFM - Open Source Coldfusion File Manager http://www.opensourcecf.com/cffm ~| 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:326561 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Getting URL from URL address bar!
When you say do this in the app server, this mean the application.cfc? ~| 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:326562 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Is Infusion Still In Business?
I have not been able to find Howie to date and parts of the website is non-functional. I can still use the product and all, but... On Wed, Sep 23, 2009 at 5:02 PM, Rick Root rick.r...@webworksllc.com wrote: Do you mean Coolfusion (makers of Infusion Mail Server)? http://www.coolfusion.com/ Their web site is still up. On Tue, Sep 22, 2009 at 9:20 AM, Robert Forsyth r...@wjla.com wrote: Is Infusion still in business? I have a couple of their servers installed and want to add another one. There shopping cart is broken and they have not returned any emails for info/support. Did they join the deadpool? I hope not. - Robert ~| 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:326563 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Getting URL from URL address bar!
What has not been said: Often, these redirects are handled by the Domain Name Server, so that the redirect happens before the request has even touched your server - in which case you cannot log this (unless, and I am entirely ignorant here, the DNS provider can log this). The alternative is to handle the redirect by your app server which means that all 3 domains must point straight to your server and then you follow the advice given here - cflocation should work fine. Dominic 2009/9/23 David Torres djt...@yahoo.com When you say do this in the app server, this mean the application.cfc? ~| 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:326564 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFLoop: Problem with variable wrapped in double quotes
Excellent advise -- thank you both for taking the time to respond. Best Regards, Dakota On Wed, Sep 23, 2009 at 4:11 PM, Rick Root rick.r...@webworksllc.comwrote: If you're trying to dynamically generate code to put in a file, you can't do it that way. Do this instead: !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfset out = cfloop index=i from=#x# to=#listLength# step=1 cfset out = out 'CFSET varMergeFile#i# = c:\inetpub\uploads\pdf\resume_#i#.pdf' /cfloop cfoutput#out#/cfoutput Of course you won't see the output because it won't render ... but you can write the contents of the out variable to a file or put it in a DB or whatever. ALTERNATIVELY, if what you're actually tring to do is set the variables, do this: !--- GET LIST LENGTH --- cfset printIt = 1212,1549,2003 cfset listLength = ListLen(#printIt#) !--- DISPLAY EVERY ELEMENT IN LIST --- cfset x = 1 cfset out = cfloop index=i from=#x# to=#listLength# step=1 CFSET variables[varMergeFile#i#] = c:\inetpub\uploads\pdf\resume_#i#.pdf !--- or, god forbit --- cfset setVariable(varMergeFile#i#, c:\inetpub\uploads\pdf\resume_#i#.pdf) /cfloop -- Rick Root CFFM - Open Source Coldfusion File Manager http://www.opensourcecf.com/cffm ~| 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:326565 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4