Questions
Als letztes aktiv
I am working on a real estate application. I am having difficulty with the pulling down the information from my MLS Server (Hawaii in case your wondering).I have looked through the site and have played with the different snippets of code that are on different sites and have played with error after error. Is there anyone out there that can guide me in the right direction?
We regularly have to run webinspect scans on our CF servers. Recently, we started getting CSRF findings on both our new CF11 servers as well as our one remaining CF9 server. After doing research, it appears that with CF10 and later, there are tags to remediate this. My questions are:- is this the only method to remediate? Are we really going to have to add this token logic to every form that the scan finds, which could be hundreds?- is there not some administrator parameter that can remediate this across the server?Thanks in advance for any assistance...
I have a database table where users have indicated their interests, and I'd like to understand the simplest way to generate a graph of the data.Most of the data in this survey was gathered in the form of checkboxes, and in the database I entered a "1" if they checked the item, or a "0" if they didn't. So the table might look like this:field valueapples 1oranges 0pineapples 0bananas 0dogs 1cats 0birds 0The user above only likes apples.(for fruits) and only likes dogs (for pets)Is there a simple way for me to display the results for all users in the database
Hi All,We are creating a query using <cfset QueryAddrow(qryMasterFile) />At the time to insert the data to oracle db we do:<cftransaction action = "begin"> <cftry> <cfquery name="deleteMasterFile" datasource="#application.str_dsn#"> DELETE FROM master_file WHERE my_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.my_id#"> </cfquery> <cfoutput query = "qryMasterFile"> <cfquery name = "insertData" datasource = "#application.str_dsn#"> INSERT INTO MASTER_FILE ( list o
The error I receive is "•Invalid extension of the file name. Valid extensions are :log,txt. I did read that in such instances that I am to work with c:\ColdFusion 11\cfusion\lib\neo-cron.xml. I would appreciate any insight that can be provided on working with this xml file.
With sandbox enabled, the following error appears:Severe: error deploying web application archiveJava.lang.illegalstateexception: containerbase.addchild: start: prg.apache.catalina.lifecyclexception: failed to start componentIf sandbox is turned off, the archive deploys with no problem.
Hi,We have a requirement to extract the content of an uploaded PDF and then show it in a text area with the same formatting. Our application runs on CF10. We used cfpdf however the extracted text is a single paragraph with No formatting . Is there any way in coldfusion to read pdf as text retaining the source formatting ( 100% accuracy not expected) .Note:1. We tried itext and it works very well however it comes with a licensing cost which I dont want to spend as I'm only going to use this single feature from the budle that itext is providing.2. Tried PDFbox but the formatting is not retained.Thanks,Devlosh
I successfully moved from CF9 to CF11 on Windows 7 environment with no problems. However, I'm trying to move from CF10 to CF11 in another Windows 7 machine but cannot. After a successful install of CF11, I'm still actually running 10,0,0,283922 as confirmed with a <cfdump var="#SERVER#">. I'm still mapped to the CF10 admin, etc. Does anybody know the best thing to do here? Many thanks for your help.
I have 3 <cflayoutarea> tags within like this: <cflayout type="border" fittowindow="true" > <cflayoutarea name="headerArea" align="center" position="top" size="75" overflow="hidden" style="letter-spacing:10px; font-size:34px;"> </cflayoutarea> <cflayoutarea name="contentArea" align="center" position="center" style="border: 3px green solid;" > <img src="img/hd04.jpg"/> </cflayoutarea> <cflayoutarea align="center" position="bottom" size="75" overflow="hidden" style="bottom:0px; height:100px"> </cflayoutarea> </cflayout>My issue/question is as follows:How do I make the center <cflayoutarea> take up 100% of the remaining height? In most browsers, the center <cflayoutarea> is too large and scrolls. Odd
I am using ColdFusion 9 version 9,0,2,282541. I do not have the option to add JVM parameters from the administrator console as the option "Java and JVM " is not available. So if i want add parameters how to proceed furthur?.If we add it in the JVM.conf in the server is that enough or what else has to be done.
Estou rodando uma procedure meio lenta que gera um relatório, ou seja ela retorna vários valores, e está estourando um erro de timeout: The request has exceeded the allowable time limit Tag: CFSTOREDPROCJá tentei utilizar <cfsetting RequestTimeOut='100000' > na página mas infelizmente não funcionou.Como estou utilizando a versão 7 do Coldfusion a tag timeout ainda não funciona para a cfstoredproc. Acredito que isso só funciona na versão 10.Minha pergunta é, o que fazer??? Além de tentar otimizar a procedure, tenho mais alguma opção/alternativa/solução ?
Hi. Is there a way to set timeout for the tag <CFSTOREDPROC>? I mean, for cfquery, it has a parameter timeout in seconds. How about for CFSTOREDPROC? I tried using <cfset startproc = GetTickCount()> <cfsetting requesttimeout = "20" /> <CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds"> cfprorparams here......... </CFSTOREDPROC> <cfset proc_execute = GetTickCount() - startproc > proc_execute returns about 30,000 ms which is 30 s. But the timeout needs to end it in 20 s. It seems requesttimeout doesn't include the time it took for the stored procedure executing. That is why I'm looking for a timeout in cfstoredproc. Any suggestions? I don't wanna go to the Oracle server and set the timeout settings. I want it done in Coldfusion. Thanks.
I am experiencing an error trying to run the following ColdFusion code:<cfif IsDefined('FORM.add_button.y')><cfquery datasource="#sDSN#"> INSERT INTO lcf_event(event_id, event_date_time, title, description, type, use
Hi,Im thinking of enabling the alerts on our production servers and would like to clarify something.Will enabling the Alerts for (Server Slow, Unresponsive Server, JVM Monitoring) affect performance in a negative regard? Would like to hear from guys experiences on thisAppreciate any responses
Hi. I just have a simple drop down menu. I would just like to have one of the options be a link. How do I do that? I thought I found something yesterday that would work, but it doesn't. Here's what I found:<select name="Socket_Adapter_Choice" onchange="location = this.options[this.selectedIndex].value;"> <option selected value=""></option> <option value="Add_Socket_App.cfm">Add Socket Application</option> <option value="Add_Adapter_App.cfm">Add Adapter Application</option> </select>Thanks.Andy
I have installed CF9 with many files deployed on my server, now I need to migrate to version 11 as I do not have Enterprise Edition I can't do the migration through CAR files. I wonder if there is another method to migrate files and settings from the server. or if the syntax changes that between these versions.
By selecting this option, you can choose the IP address through which you can access the Add-on Services (PDFG/Solr)...I tried 127.0.0.1 and I got an error for using a local IP address! Why?
<script> function myFunction() { document.getElementById("demo").innerHTML += "<select><option value='1'>option1</option><option value='1'>Option2</option><option value='1'>Option3</option><option value='1'>Option4</option><option value='1'>Option5</option></select>"; var select = document.createElement("select"); //replace this second dropdown with the coldfusion query in below place var option = document.createElement("option"); option.value = "SubOption1"; option.text = "SubOption"; select.appendChild(option); document.getElementById("demob").appendChild(select); return false; } </script> The above javascript shows dropdown with 5 options, when any of that is selected, the second dropdown shows and list "SubOption1" as the second dropdown options. My question or where i need further help is, i have a coldfusion queryHide &n
Hi everyone. My company would like to set up a 2 page site with an online order form to purchase a product we are selling. We would like to accept credit cards on here. I know there are sites out there that we can download the script for a shopping cart, but I don't think our server is up to date for the requirements of what these plugins need to work and we don't want to have to pay for a hosting plan. So we were just going to set up 2 simple pages for the customer to choose what they want and a price would go into a shopping cart form where they could enter their credit card information. This page would be an HTTPS page. I'm just wondering if I create a page that is secured this way, is it secure or not? Or do I need to go through one of those web sites that has a shopping cart built already so it's more secure? We were not going to insert this info. into a database. We were going to email it to our info email using Cold Fusion. Will that email being sent to us, be secure? Does
Hi,First, the code :LOCAL.fileName = lsDateFormat(now(), 'yyyymmdd') & '.csv';LOCAL.filePath = "example_file";LOCAL.ftpService = new FTP();LOCAL.ftpService.setServer('sftpr.emv2.com');LOCAL.ftpService.setPort('22');LOCAL.ftpService.setUserName('example_user');LOCAL.ftpService.setSecure('true');LOCAL.ftpService.setKey(example_key.ppk");LOCAL.ftpService.setStopOnError(true);LOCAL.ftpService.setRemoteFile('example_remote_file');LOCAL.ret = LOCAL.ftpService.open();writeDump(LOCAL.ret);LOCAL.doInsert = 0;if(LOCAL.ret.getPrefix().succeeded){ LOCAL.testExists = LOCAL.ftpService.existsFile(); writeDump(LOCAL.testExists); if(LOCAL.testExists.getPrefix().returnValue){ LOCAL.doInsert = 1; LOCAL.ftpService.setLocalFile(LOCAL.filePath); LOCAL.ftpService.setFailIfEx
Hello, all,We have a server in production that is not co-operating when sandbox security is switched on. If sandbox is off, everything works great. But we are not supposed to run this without sandbox.I have to redact the log information, a bit, but I have the following that happens whenever sandbox is turned on.SEVERE: The web application with context path [/xxxx/projectshare] was not deployed because it contained a deployment descriptor [META-INF/context.xml] which may include configuration necessary for the secure deployment of the application but processing of deployment descriptors is prevented by the deployXML setting of this host. An appropriate descriptor should be created at to deploy this application.Aug 6, 2015 9:42:24 AM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive X:\webapps\xxxx#projectshare.warAug 6, 2015 9:42:24 AM org.apache.catalina.core.ContainerBase addChildInternalSEVERE: ContainerBase.addChild: start:org.apach
I have some Ajax stuff that will just error from time to time due to database timeouts, etc. I need to turn off the dialog that comes up that says there was an error and to turn on debugging. It just freaks end users out... It would be nice if such errors were just reported in firebug with no "Click OK" popup dialog! Maybe a try/catch is in order??
When using CF10 and the CFSpreadsheet tag, we're receiving the following error:Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.WorkbookThe simple code works on other servers, so I think there is something wrong with the server config. Any ideas?
Hello,Perhaps I'm a bit paranoic, but, is possible to modify adminapi/base.cfc in order to not show the version information?When you call http://[server]/CFIDE/adminapi/base.cfc?wsdl it displays a template with a comment like <!--WSDL created by ColdFusion version 10,0,14,291717-->, and I would prefer to not disclose that information.Thanks in advance,
We recently upgraded to CF11 from CF9 and have ran into a challenge. I understand this is probably very fundamental but I am at a loss to figure it out because our cart worked so well for years before. I pass a url variable to the cart containing the sku number and it populates my preorder table with a quantity of one unless I also pass the quantity variable in the same string at which I use if isdefined to detect. My cart works but upon page refresh or if the back button is hit, it will increment one to the quantity field. Can someone tell me the way to eliminate this issue? In the address box of the old cart we hid the variable in the url string when passing the call to the cart but the same code not with CF11 does indeed show the variable(sku) in the url which is passed causing the cart to update. Looking for help here please?Thanks
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.