getting path of not existent directory
I am trying to use a custom 404 to serve more se friendly pages. Using application.cfc, I can properly serve this page, using the onMissingTemplate method: domain.com/art/paintings-21/index.cfm I am parsing the path obtained from #arguments.template# to get the key(21) and display the page by calling /404.cfm with the template info. I am having trouble doing the same with this, though: domain.com/art/paintings-21/ It does not seem to invoke the onMissingTemplate method, and rather calls /404.cfm directly. So in the CGI scope, I have: SCRIPT_NAME=/404.cfm PATH_INFO= How can I access the /art/paintings-21/ to get the info I need? I would like the page displayed for both: domain.com/art/paintings-21/index.cfm domain.com/art/paintings-21/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336179 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: getting path of not existent directory
Any way you could provide an example? I am looking here but did not see how to do what you stated. http://httpd.apache.org/docs/2.0/misc/rewriteguide.html On Wed, Aug 11, 2010 at 6:32 AM, Michael Grant mgr...@modus.bz wrote: You could also use urlrewrite to rewrite /myDir/ to /myDir/index.cfm which should then meet your criteria. On Wed, Aug 11, 2010 at 7:25 AM, Gert Franz gert.fr...@railo.ch wrote: 2 Solutions: 1. either you handle it in the 404.cfm in the identical way 2. the problem might be that the directory call isn't actually calling the index.cfm. Have you checked the default document that is called? If yes, and you use IIS please go to IIS and check under the properties of the website in question whether the verify that file exists checkbox is activated. It is located under Properties/Website/configuration (for IIS 6) and somewhere under Handler Mappings for IIS7. HTH Greetings from Switzerland Gert Franz Railo Technologies Professional Open Source skype: gert.franz g...@getrailo.com +41 76 5680 231 www.getrailo.com -Ursprüngliche Nachricht- Von: Matthew P. Smith [mailto:m...@smithwebdesign.net] Gesendet: Mittwoch, 11. August 2010 13:12 An: cf-talk Betreff: getting path of not existent directory I am trying to use a custom 404 to serve more se friendly pages. Using application.cfc, I can properly serve this page, using the onMissingTemplate method: domain.com/art/paintings-21/index.cfm I am parsing the path obtained from #arguments.template# to get the key(21) and display the page by calling /404.cfm with the template info. I am having trouble doing the same with this, though: domain.com/art/paintings-21/ It does not seem to invoke the onMissingTemplate method, and rather calls /404.cfm directly. So in the CGI scope, I have: SCRIPT_NAME=/404.cfm PATH_INFO= How can I access the /art/paintings-21/ to get the info I need? I would like the page displayed for both: domain.com/art/paintings-21/index.cfm domain.com/art/paintings-21/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336202 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
getting started with application.cfc
I am (finally) transitioning to Application.cfc, as we have just upgraded to CF 9. In my old Application.cfm, I am serving several sites/apps with conditional code, something like this: cfset currentSiteDomain = cgi.server_name cfif findNoCase(domain1,currentSiteDomain,1) cfset request.currentSiteName = www_domain1_com cfset request.applicationname = www_domain1_com /cfif cfapplication name=#request.applicationname# clientmanagement=Yes sessionmanagement=Yes setclientcookies=Yes Should this code go in onrequeststart, or at the top of the cfc definition? Thank you. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336159 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
output of my 404.cfm
I am trying to serve pages using both onMissingTemplate and a custom 404 page. This works: domain.com/not-there/index.cfm It seems to properly be using the onMissingTemplate method. This does not: domain.com/not-there/ From the debug, I can see that: CGI.SCRIPT_NAME=/404.cfm However, in the execution time, the template does not show: *Execution Time* *Total Time* *Avg Time**Count* *Template*0 ms 0 ms1 CFC[ \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc | onRequest(/404.cfm) ] from \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc 0 ms0 ms 1CFC[ \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc | onRequestStart(/404.cfm) ] from \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc *5 ms* *STARTUP, PARSING, COMPILING, LOADING, SHUTDOWN* *5 ms* *TOTAL EXECUTION TIME* At this point, I am just trying to display the output 404 called. I have made sure it is within cfoutput tags, and verified that cfsetting enablecfoutputonly=no is set under onRequestStart. Not sure what is going on. As I stated in my other post, I am just transitioning to Application.cfc, so I am sure it has to do with that. 404.cfm was working properly with Application.cfm. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336164 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: output of my 404.cfm
No, the directory does not exist at all. Thank you. On Tue, Aug 10, 2010 at 12:44 PM, Andy Matthews li...@commadelimited.comwrote: Is there by chance an index.html file in that directory? Or any other file that IIS or Apache might be looking for first? andy -Original Message- From: Matthew P. Smith [mailto:m...@smithwebdesign.net] Sent: Tuesday, August 10, 2010 12:39 PM To: cf-talk Subject: output of my 404.cfm I am trying to serve pages using both onMissingTemplate and a custom 404 page. This works: domain.com/not-there/index.cfm It seems to properly be using the onMissingTemplate method. This does not: domain.com/not-there/ From the debug, I can see that: CGI.SCRIPT_NAME=/404.cfm However, in the execution time, the template does not show: *Execution Time* *Total Time* *Avg Time**Count* *Template*0 ms 0 ms1 CFC[ \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc | onRequest(/404.cfm) ] from \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc 0 ms0 ms 1CFC[ \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc | onRequestStart(/404.cfm) ] from \\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc *5 ms* *STARTUP, PARSING, COMPILING, LOADING, SHUTDOWN* *5 ms* *TOTAL EXECUTION TIME* At this point, I am just trying to display the output 404 called. I have made sure it is within cfoutput tags, and verified that cfsetting enablecfoutputonly=no is set under onRequestStart. Not sure what is going on. As I stated in my other post, I am just transitioning to Application.cfc, so I am sure it has to do with that. 404.cfm was working properly with Application.cfm. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
problem with fresh cf9 install on apache
Rebuilt my server, and decided to transition to cf 9. I am using apache on the server with the document root set to //computer-name/inetpub/wwwroot I can get a directory listing of the files under there through: http://192.168.1.2/ http://192.168.1.2/When the cf9 install finished, I tried to open the settings wizard that it offers but it was a bad url. I think it was trying to go to localhost:coldfusion/cfide/administrator/. When I try to go to http://192.168.1.2/CFIDE/administrator/ I get: The web site you are accessing has experienced an unexpected error. Please contact the website administrator. The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request File not found: /CFIDE/administrator/index.cfm Any ideas on what to try? -- Regards, Matthew Smith MS Data Systems, Inc. - Mobile AL http://www.msdatasystems.com Mobile AL Web Design Companyhttp://www.mobile-al-web-design.com/ms-data-systems-mobile-al/mobile-al-web-design/mobile-al-web-design.cfm ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335828 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
won't work on live site, works locally
cfset attributes.form.value = decrypt(attributes.form.value, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding) Can't figure out why. Does it matter where you generate the key? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334668 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
best way to see url vars from cfhttp?
I am trying this: cfhttp method=get url=http://localhost/test.cfm; throwonerror=yes test.cfm: cfmail server=#request.cfmail_struct.server# username=#request.cfmail_struct.from# password=#request.cfmail_struct.password# from=(email) to=(email) subject=cfdump type=html cfdump var=#url# /cfmail I am getting: Connection Failure: Status code unavailable Hosts file on the server has: 192.168.1.2 localhost Which is the servers ip. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334597 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
error with paypal api
I am trying to stay away from the deprecated parameters in the paypal api call to method SetExpressCheckout. I am getting this error with the wall: Order total is missing. L_ERRORCODE0=10400 But I am passing PAYMENTREQUEST_0_AMT which should replace AMT(deprecated). If I add AMT, the call goes through, but when I continue to paypal, I don't get any item details. cffunction access=public name=set_express_checkout output=no returntype=struct cfargument name=app_user_id type=numeric required=yes cfargument name=live_or_sandbox required=yes type=string cfargument name=add_insurance required=yes type=string cfobject component=redhotkittiescfcs.qry name=qry / cfset qry_paypallock_get = qry.qry_paypallock_get( app_user_id=#arguments.app_user_id#) / cfobject component=redhotkittiescfcs.paypal name=paypal cfset paypal_enviroment = structnew() cfset paypal_enviroment = paypal.select_enviroment( live_or_sandbox = #arguments.live_or_sandbox# ) / cfset variables.shipping_cost = 5.00 cfif arguments.add_insurance cfset variables.insuranceamt = 2.00 cfelse cfset variables.insuranceamt = 0 /cfif cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#paypal_enviroment.api_user# cfhttpparam type=url name=pwd value=#paypal_enviroment.api_pwd# cfhttpparam type=url name=signature value=#paypal_enviroment.api_signature# cfhttpparam type=url name=returnurl value=#paypal_enviroment.return_url# cfhttpparam type=url name=cancelurl value=#paypal_enviroment.cancel_url# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=PAYMENTREQUEST_0_PAYMENTACTION value=Sale cfhttpparam type=url name=PAYMENTREQUEST_0_CURRENCYCODE value=USD cfhttpparam type=url name=allownote value=1 cfhttpparam type=url name=version value=60.0 cfhttpparam type=url name=noshipping value=2 cfhttpparam type=url name=PAYMENTREQUEST_0_SHIPPINGAMT value=#numberformat( variables.shipping_cost, .99 )# cfif arguments.add_insurance cfhttpparam type=url name=PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED value=true cfhttpparam type=url name=PAYMENTREQUEST_0_INSURANCEAMT value=#numberformat( variables.insuranceamt, .99 )# /cfif cfset variables.item_total = 0 cfloop query=qry_paypallock_get cfset variables.item_total = variables.item_total + ( qry_paypallock_get.unitprice * qry_paypallock_get.quantity ) cfset variables.paypal_item_row = qry_paypallock_get.currentrow - 1 cfhttpparam type=url name=L_PAYMENTREQUEST_0_NAME#variables.paypal_item_row# value=# qry_paypallock_get.name# cfhttpparam type=url name=L_PAYMENTREQUEST_0_NUMBER#variables.paypal_item_row# value=#qry_paypallock_get.tblproductsfk# cfhttpparam type=url name=L_PAYMENTREQUEST_0_DESC#variables.paypal_item_row# value=#qry_paypallock_get.shortdescription# cfhttpparam type=url name=L_PAYMENTREQUEST_0_AMT#variables.paypal_item_row# value=#numberformat(qry_paypallock_get.unitprice, .99 )# cfhttpparam type=url name=L_PAYMENTREQUEST_0_QTY#variables.paypal_item_row# value=#qry_paypallock_get.quantity# /cfloop cfhttpparam type=url name=PAYMENTREQUEST_0_ITEMAMT value=#numberformat( variables.item_total, .99 )# cfset variables.order_total = variables.item_total + variables.shipping_cost + variables.insuranceamt cfhttpparam type=url name=PAYMENTREQUEST_0_AMT value=#numberformat( variables.order_total, .99 )# /cfhttp cfset variables.response_code = paypal.save_express_checkout( api_response=#cfhttp.FileContent# ) !--- this portion adds the required vars for paypal link creation --- cfset variables.response_code.amt = numberformat( variables.order_total, .99 ) cfset variables.response_code.currency_code = USD cfset variables.response_code.return_url = paypal_enviroment.return_url cfset variables.response_code.cancel_url = paypal_enviroment.cancel_url cfreturn variables.response_code /cffunction ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334587 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
new table columns not showing in query results.
Using a cfc query. Added a couple of columns to a table. Running the query, columns were not there. Rebooting the server fixed this. What is required to refresh the columns in a query? Was the cfc caching something? Was it sql server? Just trying to understand what happened. Never seen this before. Thanks! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Attributes scope in a cfc
Any way to access the attributes scope in a cfc without passing it in as a argument? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334126 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
referencing #application.applicationname#
Does this require a lock? I was reading through the CF WACK, and it has an example like so: cflock name=#application.applicationname#_whatever type=exclusive timeout=10 does reading the app scope require a lock? Would I nest two locks? Or is it not required because the application name does not change? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334128 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
can't get html email to format properly
It is showing up like this: http://yfrog.com/3uorderbcj The totals are not breaking down to the next line. I changed br to br /, looked for unclosed tags, I don't see it. cfsavecontent variable=variables.body cfoutput Thank you for your order from mydomain.com!br / br / Order ID: #arguments.order_info_struct.order_key#br / br / Bill to:br / #decrypt(arguments.order_info_struct.billing_info.billingCardHoldersName, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#br / #decrypt(arguments.order_info_struct.billing_info.billingAddress1, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#br / cfif len(trim(arguments.order_info_struct.billing_info.billingAddress2)) and len(trim(decrypt(arguments.order_info_struct.billing_info.billingAddress2, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding))) #decrypt(arguments.order_info_struct.billing_info.billingAddress2, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#br / /cfif #decrypt(arguments.order_info_struct.billing_info.billingCity, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#, #decrypt(arguments.order_info_struct.billing_info.billingStateOrProvince, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)# #decrypt(arguments.order_info_struct.billing_info.billingPostalCode, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#br / #decrypt(arguments.order_info_struct.billing_info.billingCountry, request.encryption.secretkey, request.encryption.algorithm, request.encryption.encoding)#br / br / br / Ship To:br / #arguments.order_info_struct.shipping_info.first_name# #arguments.order_info_struct.shipping_info.last_name#br / #arguments.order_info_struct.shipping_info.address_line_1#br / cfif len(trim(arguments.order_info_struct.shipping_info.address_line_2)) #arguments.order_info_struct.shipping_info.address_line_2#br / /cfif #arguments.order_info_struct.shipping_info.city#, #arguments.order_info_struct.shipping_info.state_or_province# #arguments.order_info_struct.shipping_info.zip#br / br / br / table align=left border=0 cellpadding=2 cellspacing=2 tr td colspan=4Items In Order/td /tr tr td align=leftQuantity:/td td width=10/td td align=leftItem Name:/td td width=10/td td align=leftUnit Price/td td width=10/td td align=leftItem Subtotal:/td /tr cfloop query=arguments.order_info_struct.cart_info tr td align=right#arguments.order_info_struct.cart_info.cartquantity#/td td width=10/td td align=right# arguments.order_info_struct.cart_info.name#/td td width=10/td td align=right#dollarformat(arguments.order_info_struct.cart_info.unitprice)#/td td width=10/td td align=right#dollarformat(arguments.order_info_struct.cart_info.subtotal)#/td /tr /cfloop /tablebr / br / br / table align=left border=0 cellpadding=2 cellspacing=2 tr td align=left Subtotal for Item(s): /td td align=right #dollarFormat(arguments.order_info_struct.totals.item_subtotal)# /td /tr tr td align=left Shipping Charge: /td td align=right #dollarFormat(arguments.order_info_struct.totals.shipping_total)# /td /tr tr td align=left Total Before Tax: /td td align=right #dollarFormat(arguments.order_info_struct.totals.total_before_tax)# /td /tr tr td align=left Tax: /td td align=right #dollarFormat(arguments.order_info_struct.totals.tax)# /td /tr tr td align=left ORDER TOTAL: /td td align=right #dollarFormat(arguments.order_info_struct.totals.total_total)# /td /tr /tablebr / br / br / /cfoutput /cfsavecontent cfmail type=html server=mail.mydomain.com from=ord...@mydomain.com to=#arguments.order_info_struct.user.emailaddress# subject=Your mydomain.com Order Receipt #variables.body# /cfmail
optimal payments code
Any one have an optimal payments implementation with the current api? I've been using their older one and would like to move to the new version. They don't offer example code for cf. Using cfcs, so bonus for that. Thanks! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334106 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFC = Why isn't this working?
cfobject component=cfcs.qry name=variables.qry / cfset arguments.order_info_struct.order_key = variables.qry.qry_order_commit_1 ( app_user_id = arguments.order_info_struct.user.app_user_id, item_subtotal = arguments.order_info_struct.totals.item_subtotal, tax = arguments.order_info_struct.totals.tax, total_before_tax = arguments.order_info_struct.totals.total_before_tax, total_total = arguments.order_info_struct.totals.total_total )/ cffunction access=public name=qry_order_commit_1 output=no returntype=numeric cfargument name=app_user_id type=numeric required=yes cfargument name=item_subtotal type=numeric required=yes cfargument name=tax type=numeric required=yes cfargument name=total_before_tax type=numeric required=yes cfargument name=total_total type=numeric required=yes cfquery name=qry_order_commit_1 datasource=#variables.datasource# declare@orderKey int INSERT #request.sqlObjectPrefix#tblOrders ( tblPeopleFK ,shippingMethod ,shippingCost ,insurancecost ,shippingtotal ,shippingWeight ,itemSubtotal ,tax ,totalBeforeTax ,total ,orderStatus ) SELECTcfqueryparam value=#val(arguments.app_user_id)# cfsqltype=CF_SQL_INTEGER ,oib.shippingMethod ,oib.shippingCost ,oib.insuranceamount ,( oib.shippingCost + oib.insuranceamount ) ,oib.shippingWeight ,cfqueryparam value=#val(arguments.item_subtotal)# cfsqltype=CF_SQL_MONEY ,cfqueryparam value=#val(arguments.tax)# cfsqltype=CF_SQL_MONEY ,cfqueryparam value=#val(arguments.total_before_tax)# cfsqltype=CF_SQL_MONEY ,cfqueryparam value=#val(arguments.total_total)# cfsqltype=CF_SQL_MONEY ,cfqueryparam value=1 cfsqltype=CF_SQL_INTEGER FROM#request.sqlObjectPrefix#tblOrderInfoBuffer oib WHEREoib.tblPeopleFK = cfqueryparam value=#val(arguments.app_user_id)# cfsqltype=CF_SQL_INTEGER SET NOCOUNT ON SELECT@orderKey = SCOPE_IDENTITY() SET NOCOUNT OFF SELECT @orderKey as orderKey /cfquery cfreturn qry_order_commit_1.orderKey /cffunction arguments.order_info_struct.order_key remains undefined. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333963 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cflocation in cfc
bad idea? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333919 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfc accessing session scope - bad?
Is it a bad practice to have a cfc access a session variable? Should the session variable be passed in as an argument instead? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333834 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
payment gateway options
Looking for a payment gateway that offers a low transaction cost/percentage per sale. These will be high-value transaction, ~1000 monthly per customer. The standard paypal pricing is between %1.9 and %2.9, which is quite a bit. I looked at authorize.net, and they are charging only $0.10/transaction with no mention of a percentage. Is that right? Now, here is the thing: The client REFUSES to sign as a guarantor on the account. So I need a solution that will allow the service without that. Options? 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:333220 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: payment gateway options
The chances of chargebacks is slim to none; I would be HIGHLY surprised if there ever was a single one. This is for customers under contract for a service, who are already happily paying monthly. We just want to give them a way to pay online, rather than by check. This is for a corporate entity, and the top people balked when told they would have to be guarantors. Maybe the corporate officers don't understand what they are agreeing to. I suppose I could have something in the proposal that explores the issue and makes it less scary, but at this point I would like to provide the information they asked for, one of the requirements being no guarantors. Perhaps if I could find a gateway that will discuss the option of both, I could present the price difference between the two and let them decide. I just need to know who will do it so I can start the dialog. Thank you. On Wed, Apr 28, 2010 at 11:37 PM, Justin Scott jscott-li...@gravityfree.com wrote: Now, here is the thing: The client REFUSES to sign as a guarantor on the account. As an aside, HUGE red flag there. Why won't they guarantee their own merchant account? Are they expecting high rates of complaints or chargebacks? If they won't do it, you certainly should NOT do it for them. Many merchant providers won't service a new business without a guarantor, and those that will are going to be looking hard at the kinds of products they sell to gauge risk and you can expect higher fees and percentages or even a reserve balance requirement as a result. -Justin ~| 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:333223 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Security Header is Not Valid - Paypal
Thank you for spotting that. Unfortunately, I am still getting the same error. cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pwd value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=paymentaction value=Authorization cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 /cfhttp Am I passing everything that is required? On Tue, Apr 27, 2010 at 5:10 AM, Scott Brady dsbr...@gmail.com wrote: Is this a direct copy of your code? If so, this appears to be your problem: cfhttpparam type=url name=pdw value=#urlencodedformat(paypal_enviroment.api_pwd)# You misspelled pwd in the name attribute. Scott On Mon, Apr 26, 2010 at 6:16 PM, Matthew P. Smith m...@smithwebdesign.net wrote: I am getting the following: TIMESTAMP=2010%2d04%2d26T23%3a43%3a12ZCORRELATIONID=b2b38432aa389ACK=FailureVERSION=0%2e00BUILD=1268624L_ERRORCODE0=10002L_SHORTMESSAGE0=Security%20errorL_LONGMESSAGE0=Security%20header%20is%20not%20validL_SEVERITYCODE0=Error Please note I have replaced api_user, api_pwd, api_sig with the proper values. I have tried commenting out the cfloop but it changes nothing. cfset paypal_enviroment = structnew() cfset paypal_enviroment.api_url = https://api-3t.paypal.com/nvp; cfset paypal_enviroment.api_user =(user) cfset paypal_enviroment.api_pwd =(pwd) cfset paypal_enviroment.api_signature =(sig) cfset paypal_enviroment.return_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.return/index.cfm cfset paypal_enviroment.cancel_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.cancel/index.cfm cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pdw value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 cfloop query=qry_paypallock_get cfset variables.paypal_item_row = qry_paypallock_get.currentrow - 1 cfhttpparam type=url name=L_NAME#variables.paypal_item_row# value=# qry_paypallock_get.name# cfhttpparam type=url name=L_NUMBER#variables.paypal_item_row# value=#qry_paypallock_get.tblproductsfk# cfhttpparam type=url name=L_DESC#variables.paypal_item_row# value=#qry_paypallock_get.shortdescription# cfhttpparam type=url name=L_AMT#variables.paypal_item_row# value=#qry_paypallock_get.unitprice# /cfloop /cfhttp cfdump var=#cfhttp.filecontent# cfabort -- - Scott Brady http://www.scottbrady.net/ ~| 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:333162 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Security Header is Not Valid - Paypal
Ok, after testing further, it looks like the issue is with the cfhttpparams. This works: cfset testurl = #paypal_enviroment.api_url#?user=#urlencodedformat(paypal_enviroment.api_user)#pwd=#urlencodedformat(paypal_enviroment.api_pwd)#signature=#urlencodedformat(paypal_enviroment.api_signature)#method=SetExpressCheckoutpaymentaction=Authorizationcurrencycode=USDallownote=1version=60.0 cfhttp method=get url=#testurl# throwonerror=yes / cfdump var=#testurl#brbr cfdump var=#cfhttp.filecontent#brbr This does not. What am I doing wrong? cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pwd value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=paymentaction value=Authorization cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 cfhttpparam type=url name=version value=60.0 /cfhttp cfdump var=#cfhttp.filecontent#brbr cfdump var=#paypal_enviroment#brbr Is there any benefit/difference between the two methods? On Tue, Apr 27, 2010 at 5:10 AM, Scott Brady dsbr...@gmail.com wrote: Is this a direct copy of your code? If so, this appears to be your problem: cfhttpparam type=url name=pdw value=#urlencodedformat(paypal_enviroment.api_pwd)# You misspelled pwd in the name attribute. Scott On Mon, Apr 26, 2010 at 6:16 PM, Matthew P. Smith m...@smithwebdesign.net wrote: I am getting the following: TIMESTAMP=2010%2d04%2d26T23%3a43%3a12ZCORRELATIONID=b2b38432aa389ACK=FailureVERSION=0%2e00BUILD=1268624L_ERRORCODE0=10002L_SHORTMESSAGE0=Security%20errorL_LONGMESSAGE0=Security%20header%20is%20not%20validL_SEVERITYCODE0=Error Please note I have replaced api_user, api_pwd, api_sig with the proper values. I have tried commenting out the cfloop but it changes nothing. cfset paypal_enviroment = structnew() cfset paypal_enviroment.api_url = https://api-3t.paypal.com/nvp; cfset paypal_enviroment.api_user =(user) cfset paypal_enviroment.api_pwd =(pwd) cfset paypal_enviroment.api_signature =(sig) cfset paypal_enviroment.return_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.return/index.cfm cfset paypal_enviroment.cancel_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.cancel/index.cfm cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pdw value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 cfloop query=qry_paypallock_get cfset variables.paypal_item_row = qry_paypallock_get.currentrow - 1 cfhttpparam type=url name=L_NAME#variables.paypal_item_row# value=# qry_paypallock_get.name# cfhttpparam type=url name=L_NUMBER#variables.paypal_item_row# value=#qry_paypallock_get.tblproductsfk# cfhttpparam type=url name=L_DESC#variables.paypal_item_row# value=#qry_paypallock_get.shortdescription# cfhttpparam type=url name=L_AMT#variables.paypal_item_row# value=#qry_paypallock_get.unitprice# /cfloop /cfhttp cfdump var=#cfhttp.filecontent# cfabort -- - Scott Brady http://www.scottbrady.net/ ~| 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:333163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Security Header is Not Valid - Paypal
Yes, that was it. Thank you so much, Dave. Are there any other tags that do that automatically? On Tue, Apr 27, 2010 at 12:22 PM, Dave Watts dwa...@figleaf.com wrote: Ok, after testing further, it looks like the issue is with the cfhttpparams. This works: cfset testurl = #paypal_enviroment.api_url#? user=#urlencodedformat(paypal_enviroment.api_user)#pwd=#urlencodedformat(paypal_enviroment.api_pwd)# signature=#urlencodedformat(paypal_enviroment.api_signature)#method=SetExpressCheckoutpaymentaction=Authorization currencycode=USDallownote=1version=60.0 cfhttp method=get url=#testurl# throwonerror=yes / cfdump var=#testurl#brbr cfdump var=#cfhttp.filecontent#brbr This does not. What am I doing wrong? cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pwd value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=paymentaction value=Authorization cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 cfhttpparam type=url name=version value=60.0 /cfhttp cfdump var=#cfhttp.filecontent#brbr cfdump var=#paypal_enviroment#brbr Is there any benefit/difference between the two methods? The CFHTTPPARAM tag automatically encodes URL parameters unless you turn that off, so you're double-encoding some of them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, o ~| 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:333168 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
number format mask
#numberformat(variables.ordertotal, .99)# Does this limit the left of the decimal place to 4 digits? Or am I good no matter how large the number. Sorry, the CFWACK docs are a bit off i think. ~| 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:333170 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
best way to extract these values
Response from paypal api: TOKEN=EC%2d56976134UR2195446TIMESTAMP=2010%2d04%2d27T22%3a22%3a01ZCORRELATIONID=e719ae821503cACK=SuccessVERSION=60%2e0BUILD=1268624 What is the easiest/best way to get each of these values? ~| 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:333174 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: best way to extract these values
Awesome. Thank you. On Tue, Apr 27, 2010 at 5:28 PM, Dorioo dor...@gmail.com wrote: Here is what I use. - Gabriel !-- Create struct to hold values --- cfset responseStruct = structNew() !--- Treat the string as a list delimited by ampersands --- cfloop list=#nvpString# index=aNVPPair delimiters= !--- Treat each pair as a list delimited by equal signs. The key is the first position and the value is the second position --- cfset aNVPPair_key = listGetAt(aNVPPair,1,=) cfset aNVPPair_value = listGetAt(aNVPPair,2,=) !--- URL Decode the individual values --- cfset aNVPPair_key = URLDecode(aNVPPair_key) cfset aNVPPair_value = URLDecode(aNVPPair_value) !--- Add these items to the response struct --- cfset structInsert(responseStruct,aNVPPair_key,aNVPPair_value) /cfloop On Tue, Apr 27, 2010 at 6:23 PM, Matthew P. Smith m...@smithwebdesign.net wrote: Response from paypal api: TOKEN=EC%2d56976134UR2195446TIMESTAMP=2010%2d04%2d27T22%3a22%3a01ZCORRELATIONID=e719ae821503cACK=SuccessVERSION=60%2e0BUILD=1268624 What is the easiest/best way to get each of these values? ~| 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:333176 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Security Header is Not Valid - Paypal
I am getting the following: TIMESTAMP=2010%2d04%2d26T23%3a43%3a12ZCORRELATIONID=b2b38432aa389ACK=FailureVERSION=0%2e00BUILD=1268624L_ERRORCODE0=10002L_SHORTMESSAGE0=Security%20errorL_LONGMESSAGE0=Security%20header%20is%20not%20validL_SEVERITYCODE0=Error Please note I have replaced api_user, api_pwd, api_sig with the proper values. I have tried commenting out the cfloop but it changes nothing. cfset paypal_enviroment = structnew() cfset paypal_enviroment.api_url = https://api-3t.paypal.com/nvp; cfset paypal_enviroment.api_user =(user) cfset paypal_enviroment.api_pwd =(pwd) cfset paypal_enviroment.api_signature =(sig) cfset paypal_enviroment.return_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.return/index.cfm; cfset paypal_enviroment.cancel_url = https://site/index.cfm/fuseaction/SECUREPaypalCheckout.cancel/index.cfm; cfhttp method=get url=#paypal_enviroment.api_url# throwonerror=yes cfhttpparam type=url name=user value=#urlencodedformat(paypal_enviroment.api_user)# cfhttpparam type=url name=pdw value=#urlencodedformat(paypal_enviroment.api_pwd)# cfhttpparam type=url name=signature value=#urlencodedformat(paypal_enviroment.api_signature)# cfhttpparam type=url name=method value=SetExpressCheckout cfhttpparam type=url name=currencycode value=USD cfhttpparam type=url name=allownote value=1 cfloop query=qry_paypallock_get cfset variables.paypal_item_row = qry_paypallock_get.currentrow - 1 cfhttpparam type=url name=L_NAME#variables.paypal_item_row# value=# qry_paypallock_get.name# cfhttpparam type=url name=L_NUMBER#variables.paypal_item_row# value=#qry_paypallock_get.tblproductsfk# cfhttpparam type=url name=L_DESC#variables.paypal_item_row# value=#qry_paypallock_get.shortdescription# cfhttpparam type=url name=L_AMT#variables.paypal_item_row# value=#qry_paypallock_get.unitprice# /cfloop /cfhttp cfdump var=#cfhttp.filecontent# cfabort ~| 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:333143 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: help - CFMX creates class files... my C:\ drive is filling up!
I'm not sure if there is a config somewhere that you can set that for a current install, but a quick fix might be to just uninstall and then reinstall cfmx on the d drive.It might be more pain than it is worth depending on how much you have set up in there(data sources and such), but even that might not be so bad if you can find out where all that is stored in the current install and just copy those files over. -Original Message- From: Jon Block [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 3:01 PM To: CF-Talk Subject: help - CFMX creates class files... my C:\ drive is filling up! My C:\ drive doesn't have lots of space and I see that CFMX wants to store lots of .class files in.. C:\CFusionMX\wwwroot\WEB-INF\cfclasses\ Is there somewhere where I can tell CFMX to store them in D:\cfclasses instead? Thanks, Jon _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: date diff help
You are getting a 0 for both because there's less than 24hrs difference between then and now. IIRC, datediff does something like count the seconds between the two datetimes and then returns the integer part of that time divided by the number of seconds in the span you specified (i.e. 3600 for 'h'). Thanks, Ben, good info. It seems a little counterintuitive, but I guess it makes sense as many other languages take seconds or milliseconds for timeouts and the like. If that last sentence made sense at all, I'll be amazed. But my tired brain just can't explain it better. Oh, I understand. I read through the docs and the WACK on this a couple of times, and my mind just wouldn't see what I was reading. Long week. Thanks again for the help. Matt -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 4:53 PM To: CF-Talk Subject: RE: date diff help You are getting a 0 for both because there's less than 24hrs difference between then and now. IIRC, datediff does something like count the seconds between the two datetimes and then returns the integer part of that time divided by the number of seconds in the span you specified (i.e. 3600 for 'h'). If that last sentence made sense at all, I'll be amazed. But my tired brain just can't explain it better. -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Smith, Matthew P -CONT(DYN) [mailto:[EMAIL PROTECTED]] : Sent: Thursday, February 06, 2003 5:28 PM : To: CF-Talk : Subject: date diff help : : : I need a conditional that will reveal a link starting at midnight tonight. : My brain seems a bit fired right now, and I can't get this working. : : Doing this: : #datediff( d , {ts '2003-02-07 00:00:01'} , now() )# : : gives me a 0 : : but so does this: : #datediff( d , {ts '2003-02-06 00:00:00'} , now() )# : : (with a 6 instead of a 7 for the day) : : I've also tried y. : : Can anyone provide the syntax to do what I need. : : It'll just be in a simple cfif. : : Last thing for today, then I can go home, and I rather not come : in tonight. : : Thanks, all. : Matthew P. Smith : Web Developer, Object Oriented : Naval Education Training Professional : Development Technology Center : (NETPDTC) : (850)452-1001 ext. 1245 : [EMAIL PROTECTED] : : : ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cf mx install
Should you shut down the ms-sql and/or iis services during a cfmx install? Or is it better to leave them on so cf can find them during install? t/ Matt ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: cf mx install
I did an add/remove programs on cfmx after shutting down the three mx services. Clean boot and then install. Thanks for the help, Matt -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 9:30 PM To: CF-Talk Subject: RE: cf mx install you can leave them on just fine, you must only make sure to shut down the cf application service. tony -Original Message- From: Matthew P. Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 10:21 PM To: CF-Talk Subject: cf mx install Should you shut down the ms-sql and/or iis services during a cfmx install? Or is it better to leave them on so cf can find them during install? t/ Matt ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Pausing a script
That will work, but will also cause 100% cpu utilization for the duration of the pause, IIRC. -Original Message- From: Luis Lebron [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 4:38 PM To: CF-Talk Subject: RE: Pausing a script I found this code in Ben Forta's book. It seems to do the trick. cfset InitialTime= Now() cfloop Condition=DateDiff('s', InitialTime, Now()) LT 2/cfloop ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
datasource problem with mx
I am getting this error first time I hit a cfquery: Error Occurred While Processing Request Data source foo could not be found. Thing is, it verifies fine in cfadministrator. I have installed the latest cf server update, and restarted the box several times. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Flash and CF Integration
So much good info! I struggled with just trying to load from a text file, but this gives me a few gotchas to check out. I might actually get it to work this time. -Original Message- From: Jason Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 6:35 PM To: CF-Talk Subject: Re: Flash and CF Integration you use a loadVariables( http://www.syourdomain.com/page.cfm; http://www.syourdomain.com/page.cfm , _root); command. Things to note. Do a search on LoadVarsNum and LoadVars - you'll wind up using needing to know when to use which and why. Also - notice my _root. - well in some instances that may work as _level0. depending on setup of your movie. But if all the boxes are simply on root timeline - then you reference a loaded var from cf string name=Dennis as _root.name in the text properties box. It is better practice to load the vars up into a MC - In that case change that statement way up top to the instance name. Create an MC with all your form fields in it. Place it on the stage. Remember to name it in instance properites and load them into that MC. Say the MC was - MyStuff. then you reference it simply as _root.MyStuff.name Follow? Also - important you CAN NOT use data on the same frame you loaded it. This will save you alot of time. Parse a variable to look for at the end of the cfm string. like EOF=True Then in flash - the frame after your loadVars - do something like this if (EOF == 1) { EOF = 0; gotoAndPlay(3); } else { gotoAndPlay(1); } So it only proceeds IF the end of the string is received. Flash takes care of everything else. That should get you started. actionscript.org flashcfm.com are great resources with out too much noise. Jason Miller dennis baldwin wrote: Also, please feel free to check out www.devmx.com http://www.devmx.com for more info on Flash/CF integration. Regards, Dennis -Original Message- From: Samuel R. Neff [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, November 26, 2002 9:48 AM To: CF-Talk Subject: Re: Flash and CF Integration Yes, this can be done in Flash. We're working on a very similar application where it maps items to a grid and then draws connectors between related items. Regarding layers, the first thing to remember is that they are only used for z-order and organization. AFAIK, they don't actually exist in the final SWF (only in the FLA). That said, it is crucial to app maintainability that all items be on a separate later, or at the very least all unrelated items (so a box and it's outline can be on a layer, but other boxes should be on a different layer). However, for dynamic layout like this, it's far easier to add items to the timeline programmatically with attachMovie--when dealing with this many boxes, you should find it improves maintainability. BTW, since these questions are not really related to CF, this thread would probably be best served on a Flash forum. http://webforums.macromedia.com/flash http://webforums.macromedia.com/flash or http://chattyfig.figleaf.com/ http://chattyfig.figleaf.com/ HTH, Sam At 06:16 AM 11/26/2002, you wrote: I'm doing my first Flash and CF integration app and have a list of questions. I have to dynamically display data in 14 text boxes as well as have up to 36 dynamic lines connecting the boxes based on query results. Im not sure if this is possible with flash. I have my template done in flash but everything is on 1 layer. Do I need to put things on different layers? Can anyone tell me if this is possible? There will be at least 15 queries that have to be run to populate this template with the correct data. Any suggestions? Help? If you would like to see the fla file, please email me. TIA ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
cycle services
How can I cycle the cf services? I found this in the macromedia forums, but it doesn't work on my server: c:\winnt\system32\net.exe stop Cold Fusion Application Server c:\winnt\system32\net.exe stop Cold Fusion Executive c:\winnt\system32\net.exe stop Cold Fusion RDS c:\winnt\system32\net.exe stop ColdFusion Graphing Server c:\winnt\system32\net.exe start Cold Fusion Application Server c:\winnt\system32\net.exe start Cold Fusion Executive c:\winnt\system32\net.exe start Cold Fusion RDS c:\winnt\system32\net.exe start ColdFusion Graphing Server I couldn't find net.exe in that directory. The server is win2k and cf 5. Id there another way to do it? Thanks for any help. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
cf_upsprice connection failure on local box only
I'm developing an ecommerce site on my local server, and I'm using cf_upsprice to get shipping rates. It has been working fine, but has suddenly stopped working. I only get a connection failure. I can cfhttp to a different url on the server, and the ups tag works fine on my live server(crystaltech). I have tried restarting the cf service and even rebooting the box. Any ideas? Could my ip have been banned for some reason? I can't think of any other reason. This is frustrating, as it is stopping work for a silly reason. Thanks for any help. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm