coldfusion

Using CFQUERY and CFSELECT to pull multiple values based on selection

a 夏天 提交于 2020-01-17 13:49:06
问题 I have a CFQUERY pulling three columns. The following CFSELECT allows the user to make a selection from various results based on the 'display' parameter, and sets the value to the 'value' parameter. I would like to pass the third unused value of that record to a variable to be used in a later query. I cannot set the 'value' field to the column I need since that value is needed in a query following this one (queries populate based on previous drop down selections). Is there a way to do this?

Looping Columns in coldfusion along with values in correct order

北城余情 提交于 2020-01-17 05:54:10
问题 Instead of hardcoding the columns from a query into a table I prefer to do it dynamically. This is code I tweaked from another source. What I want to do is not only get the Columns in order, but also get the row values for each column as well. I can't seem to find an attribute that shows the actual row values for each column using this method, just the column names and type. In the two cfloops the top one will represent the column name, while the bottom one will present the row value for that

Can a div be partially transparent in cfdocument pdfs? How?

[亡魂溺海] 提交于 2020-01-17 02:47:08
问题 Need a div to partially show the image behind it, is this even possible? Tried: opacity:.5; AND filter:alpha(opacity=50); Both produce a solid div. Any help would be much appreciated. 回答1: From a wondrous pure guess in a comment, I managed to find a working answer: Did you try using a semi-transparent .png ? Yay! 回答2: Right you are, thirtydot! You gotta toss a thumbs-up for cfdocument, eh? I've confirmed this works in CF9. I do wonder whether this example is backward compatible. Can anyone

coldfusion salting my hash

徘徊边缘 提交于 2020-01-16 19:40:44
问题 In ColdFusion, What is the best best of doing a user login password comparison with the database that will encrypt the password between the client and server? I noticed there's a javascript version at http://pajhome.org.uk/crypt/md5/index.html but what can be done for users without javascript enabled? 回答1: These points are not specific to coldfusion, but I feel I must state them: Do the hash server-side. The point of hashing is to make it really hard to figure out what to send the server in

How to send data from MYSQL/PHP to a Coldfusion component?

▼魔方 西西 提交于 2020-01-16 19:39:11
问题 I'm trying to create functionality to output pages generated from MYSQL queries in PHP as PDF files. To do this I need a way of wrapping up this data that is placed into dynamic tables and placing it between the tags, so it can be converted into a clean PDF. I'm not sure where to start with this other than the coldfusion component will be called from the PHP page, rather than the other way round as I originally envisaged. 回答1: I would pull the dynamic content from your php scripts like this:

How to send data from MYSQL/PHP to a Coldfusion component?

百般思念 提交于 2020-01-16 19:38:32
问题 I'm trying to create functionality to output pages generated from MYSQL queries in PHP as PDF files. To do this I need a way of wrapping up this data that is placed into dynamic tables and placing it between the tags, so it can be converted into a clean PDF. I'm not sure where to start with this other than the coldfusion component will be called from the PHP page, rather than the other way round as I originally envisaged. 回答1: I would pull the dynamic content from your php scripts like this:

How can i extract field name and values on a form easily

社会主义新天地 提交于 2020-01-16 04:57:08
问题 I am in need of parsing field name and values from an html form to add to my db. I know i can go and do a find "input name='" then start another find to find the closing "'" and get the data via mid function then do the same for value via find "value='" I was wondering if there is an easier way to loop the doc and extract all input names and the associated values ? Below is a sample of what my page to parse looks like <input name='a_glare' value='B' class='inputbox-highlighted-false' size='1'

Format <cfspreadsheet> as table

前提是你 提交于 2020-01-16 03:43:04
问题 I'm using <cfspreadsheet> to output a database query to an Excel spreadsheet. When these spreadsheets are created manually it is possible to highlight all the cells and 'Format as table' . This means when the table header is clicked, the user can sort the table ascending and descending. Is it possible to specify this formatting in the ColdFusion code when generating the Excel file? 回答1: If you are on Coldfusion 9, you can use SpreadSheetNew, then SpreadSheetAddRow, SpreadSheetFormat functions

cfxml vs cfsavecontent - unable to build xml using cfxml

杀马特。学长 韩版系。学妹 提交于 2020-01-16 01:07:33
问题 I'm trying build a custom XML file and splitting the building into separate functions, but I'm having trouble doing this with cfxml. This example is obviously simplified. This works fine: <cfcomponent accessors="true"> <cfproperty name="Name" /> <cfproperty name="Model" /> <cfproperty name="Make" /> <cffunction name="BuildCarXML" output="false"> <cfsavecontent variable="xmlCar"> <cfoutput> <?xml version="1.0" encoding="UTF-8" ?> <car> <name>#variables.Name#</name> #AddMakeElement()# </car> <

Coldfusion 9 Flash Multifile Upload Widget fails due to unrelated code

落爺英雄遲暮 提交于 2020-01-16 00:49:10
问题 This issue continues along with the inability to run the remaining parts of the process in the application, namely the file sorting by file type and the compression capability. I'm running into the issue that my pdf compression code is causing the multifile uploader to freeze up at 99%, still successfully uploading the first file but preventing subsequent files from uploading. Issue 1: File upload fails when I try to exclude the pdf files from the list. Issue 2: The presence of the query and