coldfusion

Creating a stored procedure in MySQL5 with ColdFusion 9's <CFQUERY>-Tag

假装没事ソ 提交于 2019-12-13 15:22:49
问题 I wonder if it's possible to create a stored procedure in MySQL5 via ColdFusion's <cfquery> -tag. I've never done anything with storedprocedures before... I was trying to set a function which replaces like MySQL's REPLACE but case insensitive. I wanted to use the function provided here. But first I want to create this function via Coldfusion like: <CFQUERY datasource="#dsn#"> DELIMITER $$ DROP FUNCTION IF EXISTS `replace_ci`$$ CREATE FUNCTION `replace_ci` ( str TEXT,needle CHAR(255),str_rep

Which EncodeFor should be used for location?

和自甴很熟 提交于 2019-12-13 14:19:12
问题 Which EncodeFor should be used location() ? If I want to push some data via location, what should it look like? location("obtainBDK.cfm?message=#ErrorMessage#", false); // nothing OR location("obtainBDK.cfm?message=#EncodeForHTMLAttribute(ErrorMessage)#", false); OR location("obtainBDK.cfm?message=#EncodeForURL(ErrorMessage)#", false); OR Something else? 回答1: cflocation / location sets the Location HTTP header. The browser reads this value and requests the mentioned resource via HTTP GET.

What version of Hibernate does CFML use?

我们两清 提交于 2019-12-13 14:16:17
问题 The Hibernate docs sometimes refers to differences between different versions. What versions of Hibernate do ColdFusion 10 use? Is it the same in ColdFusion 9? Does Railo stable/bleeding edge use different versions? 回答1: All current engines use version 3.5 , but there are different point releases between CF and Railo. The latest CF beta comes with version 4.1 . ColdFusion 11 BETA uses 4.1.10-Final ColdFusion 10 uses 3.5.2-Final (verified on u11) ColdFusion 9 uses 3.5.2-Final (verified on 9,0

What is the best way to allow someone to export a webpage to PDF for readability?

点点圈 提交于 2019-12-13 13:59:15
问题 I have an online document which shows a report built dynamically from database values and application values. What type of report it shows to the user is based on various security permissions that a user has. So generally a Manager can see a full report, but a Customer Service adviser will only see part of that same report. It does this just fine. But now the same report that is seen 'online' also needs a PDF version. I have started to build a new .CFM template which should handle rendering a

SQL ID from table posts same ID to all other coldfusion entries per transaction

倖福魔咒の 提交于 2019-12-13 13:24:52
问题 How do I trigger my ID from my Transaction table to be the same on all entries to each table per session? I am trying to insert a lot of information to many tables but trying to keep all tables linked together by TransactionID and am struggling on how it creates the TransactionID with the first entry then grabbing that entry and using it on all other table entries. (This is my insert to create the Transaction. This should automatically create an ID in my Transaction table since ID is my

Content-disposition being ignored in IE 9 and Firefox 13

a 夏天 提交于 2019-12-13 13:11:26
问题 I am trying to dynamically create an inline PDF that, when the user chooses to save it, prompts with my custom filename. According to the documentation, the saveasname attribute should do what I want. (format="PDF" only) The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser. However, what is happening in both IE 9 and in Firefox 13.0.1 is that the filename that appears in the SaveAs dialog is the same as my CF template, but with a PDF extension.

In ColdFusion, is there a way to determine what server the code is running on?

£可爱£侵袭症+ 提交于 2019-12-13 12:24:12
问题 Is there any way in ColdFusion code to determine on what server the code is executing? I have few load-balanced ColdFusion servers. I want to be able to know on which server the code is running when I catch an exception, so I can include that information in the logging / reporting code. The servers are Windows 2003/IIS, if that matters. I'd love to know how to do it in Linux/Apache too. :-) 回答1: This may help you further... <cfscript> machineName = createObject("java", "java.net.InetAddress")

How Can I Output a Remark Column with rowspan Without Duplicates for same group in Coldfusion (Re formated)

社会主义新天地 提交于 2019-12-13 11:27:15
问题 I am writing a Software for a company. Please friends, I want you to help me. This company is a paint company that has different Product Type and Paint Type and colors. A way bill will be generated showing the item no, the description, the quantity, and the remark. I am sorting by the Product Type and the Paint Type. I am also grouping the output. Here, I want the remark to rowspan all the paint with the same Product Type and Paint Type. For instance, if the Product Type is Honey, and the

how to get USPS shipping rate in coldfusion?

痴心易碎 提交于 2019-12-13 11:23:56
问题 i am using coldfusion and i want to get USPS Shipping charges in my application/website. Is there any function to get usps shipping rates from usps in coldfusion. Thanks Yugal 回答1: First result on google for usps ColdFusion CFC http://uspscfc.riaforge.com 来源: https://stackoverflow.com/questions/10397363/how-to-get-usps-shipping-rate-in-coldfusion

Removing Code by using rereplace

只谈情不闲聊 提交于 2019-12-13 11:16:12
问题 Hi Have the following code, I am using the following code to remove the contents from the page which i do not know: I am using regex, and i cannot use jsoup, please do not provide any jsoup link or code because that will be useless to use here for me.. <cfset removetitle = rereplacenocase(cfhttp.filecontent, '<title[^>]*>(.+)</title>', "\1")> Now above the same way, i want to use the follwoing things: 1. <base href="http://search.google.com"> 2. <link rel="stylesheet" href="mystyle.css"> 3.