coldfusion

Can I queryparam a string used in a MySQL IN statement using ColdFusion?

不想你离开。 提交于 2019-12-11 11:13:36
问题 I'm running MySQL 5.0.88 and Coldfusion8. In a form, I'm grabbing a number of record ids from a table and send them to the server. The string will look like so: 9900000002985,9900000003180,9900000003203,9900000003487,9900000003579 I'm then passing this into MySQL, initially like so: SELECT bk.* FROM header AS bk WHERE 1 AND bk.iln_kaeufer IN ( #passed_in_string# ) I have been trying for a while to use cfqueryparam like so: <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#passed_in_string#

MS SQL query within a query ColdFusion environment

时光怂恿深爱的人放手 提交于 2019-12-11 10:50:11
问题 I have 2 tables, one is called Food while the other is FoodCategory. The relation between them is the FoodCatID which contain in both tables. What I try to archive is displaying: Meat Chicken Beef Veg tomatoe potatoe I assume I will need a query within a query? I first try to use Distinct to get the 2 unique FoodCatID: Select Distinct FoodCategory.FoodCatID, FoodCategoryName From Food INNER JOIN FoodCategory ON Food.FoodCatID = FoodCategory.FoodCatID This will give me the 2 categories, but

ColdFusion 2016 - Security service not available

痞子三分冷 提交于 2019-12-11 10:41:08
问题 CF 2016 on windows10 with IIS I've checked other threads on similar issues and they don't appear to apply. My laptop has needed to be crash-started on a number of occasions recently due to the laptop not waking up from sleep mode. A couple of times ColdFusion 2016 didn't start automatically and needed to be manually started. Now, ColdFusion appears to be starting automatically, but now I'm getting an error: HTTP Error 500.0 - The Security service is not available. I'm afraid I have no idea

Many to Many relationship with cfwheels without composite keys

試著忘記壹切 提交于 2019-12-11 10:37:00
问题 I've been following the information from here: cfwheels.org/docs/1-1/chapter/nested-properties I've ended up downloading a sample application which breaks down at the same place code executes fine, in the sense that I get no errors, but the many-many table does not get the new entries, and when I add the entries manually in the database, they are not reflected with the checkboxes and sometimes they are removed when the model is updated. EDIT I found out the issue... just not how to solve it.

How to prevent script tags and other XSS entities from being inserted into the db?

五迷三道 提交于 2019-12-11 10:33:07
问题 I have a form which contains many text boxes. All the text boxes are required fields. As these are textboxes I can not use specific validation except the length. But i do not want to allow the users to insert tags that are vulnerable to xss attacks. I know in ColdFusion i can use htmlEditFormat(),encodeForHTML() while displaying user data for preventing XSS, But I just want to prevent those from inserting to db.'GlobalScriptProtect' option also does not add much security as per my knowledge.

Solr: change default value of MaxFieldLength in <mainIndex>

∥☆過路亽.° 提交于 2019-12-11 10:32:40
问题 Is there a way to change the default <mainIndex><maxFieldLength> value in the solarconfig.xml file, so that when a Solr collection is created ALL collections will use the new value? The default value of 10000 is okay for most applications, but most of the PDFs I am working with are over 100 pages. The client is concerned that the search results do not return EVERY PDF containing the given keywords. Correct me if I'm wrong, but I'm pretty sure that the maxFieldLength is limiting the indexing

Need to Fetch the specific data from external page

泄露秘密 提交于 2019-12-11 10:25:47
问题 I am making a cfhttp call and getting the data back.. Now I am getting a complete page like below: <html><title>MyPage</title><head><link rel="stylesheet" href="style.css"></head> <body> <table></table> <table></table> <table></table> <table></table> <table></table> <table></table> </body> </html> Now the issue I want the code which which is inside the body tag, and also remove the last table tag completely. I am not sure where to start [p.s JSOUP is not an option] tried like below but it did

AnythingSlider: Make Nav Tabs Inactive?

痴心易碎 提交于 2019-12-11 10:25:45
问题 I'm using the AnythingSlider tool and am having some trouble with the css and js on this. Basically, the slider has a number of navigation tabs that help jump from slide to slide. I want to change this so that when a coldfusion conditional runs, certain tabs will either remain in a default state or become inactive (change color of tab to grey, not let anything happen when user clicks on that tab.) So basically, my CF would be something like <cfif #X# is ""> //if true, make tab #2 not

Referencing App.config file through a .NET class library DLL in ColdFusion 9

我们两清 提交于 2019-12-11 10:24:03
问题 I'm currently developing DLLs in .NET that use Entity Framework to access our database. It is my understanding that DLLs do not have ties with the same App.config files as exe applications do. Through a good amount of research, I have learned that DLLs do not contain App.config and are best left agnostic(config) so the program using the DLL can determine the config. I'm receiving this error and am sure that the connection string is defined in my app.config: System.InvalidOperationException:

XML Error: Ill-formed at the Amazon Envelope XML level

雨燕双飞 提交于 2019-12-11 09:37:50
问题 I am trying to get the Amazon Order Fulfillment API working but I ran into an issue. When I submit the HTTP request the response says it was submitted however, when I look at the 'Upload Order Related File' section in Amazon it says there was an error. The error I get is listed below: The XML you submitted is ill-formed at the Amazon Envelope XML level at (or near) line 2, column 18. Here is my XML request <?xml version="1.0" encoding="UTF-8"?> <AmazonEnvelope xsi:noNamespaceSchemaLocation=