coldfusion

RegEx - How to get rid of everything between these two brackets, including the brackets?

拥有回忆 提交于 2020-01-04 09:19:32
问题 I am making NO headway in writing a regular expression and need some help. I need to get rid of everything between two brackets including the two brackets. I have tried everything I could think of with no luck. <cfscript> MyString = "Eat some [pizza] with beer."; MyString = reReplaceNoCase(MyString, "", "", "all"); writeOutput(MyString); </cfscript> In a text editor, I was using the following string and it worked perfectly well, but I can't get it working in ColdFusion. ^[*^] Can you help me?

What are the proper permissions for ColdFusion 9 on IIS 7.5 with Windows Authentication

和自甴很熟 提交于 2020-01-04 09:05:18
问题 We are running ColdFusion 9 on IIS 7.5. Our intranet website uses Windows Authentication with the Negotiate provider. We have set up an Active Directory user group (Web Developers) and assigned the permissions to the web source directory. Everything works fine for one particular user group. We created a new group (General Staff) and assigned the permissions to the source directory. After restarting all of the services involved we end up with 401.3 errors which are Authenticated but Access is

in coldfusion, variables in what scope can be passed to and iframe page?

白昼怎懂夜的黑 提交于 2020-01-04 08:14:22
问题 i wrote 2 pages to test this problem, but the server complaints error. i don't know why, anyone can explaint it? great thanks. this is 1.cfm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Page Title</title> </head> <body> <cfscript> a="aaaaaaaaaaa"; b="bbbbbbbbbbb"; request.r1="rrrrrrr111111111"; request.r2="rrrrrrrr222222222"; session.s1=

Issues with CFZip functionality

橙三吉。 提交于 2020-01-04 06:35:53
问题 I have the following which is working half way. I am trying to CFZip the contents of a downloaded Excel file but there is one problem involved. The code below shows that there are 3 tickets. 1 main ticket and 2 tickets that are the extended answers of the main ticket. Attachments are allowed on all tickets, the main ones and the children's too. When I try to download the Excel file, I am also trying to download two folders that should be inside the Zip file. One that should be pointing to the

Coldfusion using onRequestEnd() with Application.cfm files

最后都变了- 提交于 2020-01-04 06:04:32
问题 I'm working in a legacy app that was built upon the use of Application.cfm files rather than Application.cfc files. There is a need to be able to run code after a request has processed. (Basically, I am wanting to use the <cfhtmlhead> tag to inject some Javascript and CSS files into every loaded document. Before I was doing this with a GreaseMonkey user script, but something server-side would be best.) From what I read, I think I should be able to do this with the onRequestEnd() function,

Converting cURL call to Coldfusion (cfhttp)

北慕城南 提交于 2020-01-04 04:40:12
问题 This may be pretty simple, not entirely sure. Is there a way to take this cURL call below (it's from Big Commerce's API) and rewrite the same function using cfhttp? I know cfhttp acts (or can act like) a form/method="post" type deal, but I'm not sure what params (or what their names should be) to use within a cfhttp tag. Any help would be appreciated...my goal is to be able to use Coldfusion to call a list of products, at which point I can arrange/export to a list/excel/whatever, but setting

How to test for null/empty string in Coldfusion query of query?

橙三吉。 提交于 2020-01-04 04:31:30
问题 I've been looking online for a solution, but none's come up. I have a column in a coldfusion query, "date_hired". If I do a cfdump of the query, it shows as a date if its a date or as [empty string] if not. There are 8 records in the query; and some have dates for date_hired and some don't. If I try to do a q of q on this resultset: SELECT date_hired FROM myQuery WHERE date_hired = '' I get an error message saying: Comparison exception while executing =. Unsupported Type Comparison Exception:

How to make HTTP call with action=PATCH using CFHTTP ( ColdFusion 10 )

拥有回忆 提交于 2020-01-04 04:10:10
问题 I was integrating a REST API of iCIMS and found some of the REST API calls need the http verb PATCH. However, it seems ColdFusion 10 doesn't support that. Is there any way around this? 回答1: This was not added until ColdFusion 11 update 3. Most API services allow you to use POST instead of PATCH. From the docs for iCIMS it appears they accept either POST or PATCH as well. 回答2: Working with iCIMS API also here, but on CF 9, so no support for PATCH. But I did find that you can do a POST and then

Getting the Named Anchor using ColdFusion

怎甘沉沦 提交于 2020-01-04 04:10:07
问题 How can I get the URL using ColdFusion? I tried the following but it did not return the Named Anchor. For example http://www.makeup.edu/test/#abc <cfdump var=#cgi#> 回答1: You can't, 'cause although it is in the URL, it is only meant for the client. It will not be sent to the server, therefore you can never find that in the CGI scope. 回答2: As Henry says, you can't get them with ColdFusion because they are never sent with the request. What you need to do is to pull them out with Javascript

Coldfusion StructDelete creates blank value

末鹿安然 提交于 2020-01-04 04:06:08
问题 I'm using Codlfusion 9's StructDelete() method to remove a value from a cookie. But after using StructDelete(cookie,"selector12") I'm getting a value of [empty string] for cookie.selector12 despite deleting it This is the code I'm using: <cfdump var="#cookie#"> <!--- kill any existing selector cookie when looking at a profile ---> <cfset structDelete(cookie,'selector#URL.clk#')> <cfdump var="selector#URL.clk#"> <cfdump var="#cookie#"> To give the following output: Does StructDelete actually